VGen icon indicating copy to clipboard operation
VGen copied to clipboard

Exception: Failed to init class <class 'tools.modules.clip_embedder.FrozenOpenCLIPTtxtVisualEmbedder'>, with Pretrained weights (models/open_clip_pytorch_model.bin) not found for model ViT-H-14.

Open A-Salty-Fish opened this issue 1 year ago • 7 comments

RuntimeError: Pretrained weights (models/open_clip_pytorch_model.bin) not found for model ViT-H-14.

I have runned the following code successfully: from modelscope.hub.snapshot_download import snapshot_download model_dir = snapshot_download('damo/I2VGen-XL', cache_dir='models/')

A-Salty-Fish avatar Dec 17 '23 08:12 A-Salty-Fish

Have you placed the downloaded models in the "models" directory?

Steven-SWZhang avatar Dec 18 '23 02:12 Steven-SWZhang

It still happens. My models directory has:

doc                          README.md  stable_diffusion_image_key_temporal_attention_x1.json
i2vgen_xl_00854500.pth       README.MD  v2-1_512-ema-pruned.ckpt
open_clip_pytorch_model.bin  source

Now, when I run:

python inference.py --cfg configs/i2vgen_xl_infer.yaml

It results in the error.

sayakpaul avatar Jan 09 '24 10:01 sayakpaul

Same error Exception: Failed to init class <class 'tools.modules.clip_embedder.FrozenOpenCLIPTtxtVisualEmbedder'>, with Model config for VIT-H-14 not found.

himali94 avatar Jan 10 '24 09:01 himali94

I got the same error, did someone solve this problem?

LJ-lijian avatar Mar 01 '24 01:03 LJ-lijian

I got the same error +1, did someone solve this problem?

wuguowuge avatar Apr 19 '24 11:04 wuguowuge

I cloned original ViT-H-14 from huggingface which provides both model & config file, merged with model folder, looked fine tho.

Hope repository owner make this clear.

zhenglinpan avatar Apr 19 '24 18:04 zhenglinpan

@zhenglinpan I cloned the same VIT-H-14 from huggingface but im getting Exception: Failed to invoke function <function train_t2v_entrance at 0x151a326d6af0>, with Failed to init class <class 'tools.modules.clip_embedder.FrozenOpenCLIPTextVisualEmbedder'>, with invalid load key, 'v'. any help is appreciated

h-pal avatar Jul 04 '24 01:07 h-pal