Error when using openclip to load model

#1
by mmm-777 - opened

Getting error Entry Not Found for url: https://huggingface.co/laion/CLIP-ViT-B-32-roberta-base-laion2B-s12B-b32k/resolve/main/open_clip_config.json

when using

vision_model_name = 'hf-hub:laion/CLIP-ViT-B-32-roberta-base-laion2B-s12B-b32k'
model, preprocess_train, preprocess = open_clip.create_model_and_transforms(vision_model_name)
tokenizer = open_clip.get_tokenizer(vision_model_name)

mmm-777 changed discussion title from Error to Error when using openclip to load model

@mmm-777 Did you figure out how to load the model/tokenizer?

I have the same problem
OSError: laion/CLIP-ViT-B-32-roberta-base-laion2B-s12B-b32k does not appear to have a file named config.json. Checkout 'https://huggingface.co/laion/CLIP-ViT-B-32-roberta-base-laion2B-s12B-b32k/main' for available files.

Sign up or log in to comment