فهرست منبع

add img embedding.py

luojunhui 4 هفته پیش
والد
کامیت
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: