To set up the environment for StyleCrafter, download the following 3 models and place them in the corresponding paths.
Navigate to the path/to/StyleCrafter directory and download OpenCLIP:
cd ./checkpoints/open_clip
git lfs install
git clone https://huggingface.co/laion/CLIP-ViT-H-14-laion2B-s32B-b79KDownload VideoCrafter checkpoint from huggingface, and put the model.ckpt file in the ./checkpoints/videocrafter_t2v_320_512/;
Download StyleCrafter checkpoint from huggingface, put the adapter_v1.pth and temporal_v1_1.pth files in the ./checkpoints/stylecrafter/
After completing the setup, your directory structure should look like this. This structure helps ensure that the models are correctly loaded and validated:
VideoCrafter
├── checkpoints
│ ├── open_clip
│ │ └── CLIP-ViT-H-14-laion2B-s32B-b79K
│ │ ├── config.json
│ │ ├── merges.txt
│ │ ├── open_clip_config.json
│ │ ├── open_clip_pytorch_model.bin
│ │ ├── preprocessor_config.json
│ │ ├── pytorch_model.bin
│ │ ├── README.md
│ │ ├── special_tokens_map.json
│ │ ├── tokenizer_config.json
│ │ ├── tokenizer.json
│ │ └── vocab.json
│ ├── README.md
│ ├── stylecrafter
│ │ ├── adapter_v1.pth
│ │ └── temporal_v1_1.pth
│ └── videocrafter_t2v_320_512
│ └── model.ckpt
├── configs
├── ...