소스 검색

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: