ali-vilab / VGen

Official repo for VGen: a holistic video generation ecosystem for video generation building on diffusion models
https://i2vgen-xl.github.io
2.75k stars 243 forks source link

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. #21

Open A-Salty-Fish opened 6 months ago

A-Salty-Fish commented 6 months ago

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/')

Steven-SWZhang commented 6 months ago

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

sayakpaul commented 5 months ago

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.

himali94 commented 5 months ago

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

LJ-lijian commented 4 months ago

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

wuguowuge commented 2 months ago

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

zhenglinpan commented 2 months ago

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.

h-pal commented 4 hours ago

@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