ソースを参照

add img embedding.py

luojunhui 1 ヶ月 前
コミット
3e86a5f79d
1 ファイル変更1 行追加1 行削除
  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: