Przeglądaj źródła

add img embedding.py

luojunhui 1 miesiąc temu
rodzic
commit
3e86a5f79d
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      applications/clip_embedding/embedding.py

+ 1 - 1
applications/clip_embedding/embedding.py

@@ -8,7 +8,7 @@ from PIL import Image
 from .clip_model import get_model
 
 # init model
-model, processor, DEVICE, DTYPE, MAX_BATCH = get_model()
+model, image_processor, tokenizer, DEVICE, DTYPE, MAX_BATCH = get_model()
 
 
 def _normalize(x: torch.Tensor) -> torch.Tensor: