Gengzigang commited on
Commit ·
ecfb347
1
Parent(s): b5d4148
fix typo
Browse files56 unmodified lines5758596061626361626465656667666768696970717256 unmodified lines```Retrieval```pythonimport osos.environ["CUDA_VISIBLE_DEVICES"] = "0"
from PIL import Imagefrom transformers import AutoModel, AutoConfig, AutoTokenizerfrom transformers import CLIPImageProcessorimport torchfrom llm2vec import LLM2Vecimport os
os.environ["CUDA_VISIBLE_DEVICES"] = "0"from transformers import AutoModel, AutoConfig, AutoTokenizerfrom transformers import CLIPImageProcessor
processor = CLIPImageProcessor.from_pretrained("openai/openai/clip-vit-base-patch16")processor = CLIPImageProcessor.from_pretrained("openai/clip-vit-base-patch16")model_name_or_path = "microsoft/LLM2CLIP-Openai-B-16" # or /path/to/local/LLM2CLIP-Openai-B-16model = AutoModel.from_pretrained( model_name_or_path, README.md+6-6