Skip to content

An error occurred when running the animation static mesh, indicating that the CLIP model download failed. How can I resolve this? #28

@sdfsgegdsc

Description

@sdfsgegdsc

(animateanymesh) root@autodl-container-2b27469955-705ee126:~/autodl-tmp/AnimateAnyMesh# python test_drive.py --data_dir ./examples --vae_dir ./checkpoints --rf_model_dir ./checkpoints --json_dir ./checkpoints/dvae_factors --rf_exp rf_model --rf_epoch f --seed 666 --test_name dragon --prompt "The object is flying" --export_format fbx
Loading unified training configuration...
Configuration loaded successfully.
Loading DyMeshVAE...
Loading checkpoint from: ./checkpoints/dvae/dvae_f.pth
Model weights loaded successfully.
DyMeshVAE loaded!!!
Loading RF Model...
text_encoder%2Fconfig.json: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 617/617 [00:00<00:00, 2.59MB/s]
text_encoder/model.safetensors: 0%| | 0.00/492M [00:12<?, ?B/s]
Traceback (most recent call last):
File "/root/miniconda3/envs/animateanymesh/lib/python3.11/site-packages/transformers/modeling_utils.py", line 1179, in _get_resolved_checkpoint_files
resolved_archive_file = cached_file(pretrained_model_name_or_path, filename, **cached_file_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/envs/animateanymesh/lib/python3.11/site-packages/transformers/utils/hub.py", line 321, in cached_file
file = cached_files(path_or_repo_id=path_or_repo_id, filenames=[filename], **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/envs/animateanymesh/lib/python3.11/site-packages/transformers/utils/hub.py", line 567, in cached_files
raise e
File "/root/miniconda3/envs/animateanymesh/lib/python3.11/site-packages/transformers/utils/hub.py", line 479, in cached_files
hf_hub_download(
File "/root/miniconda3/envs/animateanymesh/lib/python3.11/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/envs/animateanymesh/lib/python3.11/site-packages/huggingface_hub/file_download.py", line 1007, in hf_hub_download
return _hf_hub_download_to_cache_dir(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/envs/animateanymesh/lib/python3.11/site-packages/huggingface_hub/file_download.py", line 1168, in _hf_hub_download_to_cache_dir
_download_to_tmp_and_move(
File "/root/miniconda3/envs/animateanymesh/lib/python3.11/site-packages/huggingface_hub/file_download.py", line 1720, in _download_to_tmp_and_move
xet_get(
File "/root/miniconda3/envs/animateanymesh/lib/python3.11/site-packages/huggingface_hub/file_download.py", line 626, in xet_get
download_files(
RuntimeError: Data processing error: CAS service error : Reqwest Error: HTTP status client error (401 Unauthorized), domain: https://cas-server.xethub.hf.co/reconstructions/4e7380d25abc80168fe0db5f0d6e0edab1872d32797745e24a57c1278d956b73

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/root/autodl-tmp/AnimateAnyMesh/test_drive.py", line 177, in
main(opt)
File "/root/autodl-tmp/AnimateAnyMesh/test_drive.py", line 84, in main
rf_model = model_from_config(rf_config, device)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/autodl-tmp/AnimateAnyMesh/networks/configs.py", line 6, in model_from_config
return DyMeshMMDiT(device=device, dtype=torch.float32, **config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/autodl-tmp/AnimateAnyMesh/networks/transformer.py", line 254, in init
self.clip_text_model = CLIPTextModel.from_pretrained("sd-legacy/stable-diffusion-v1-5", subfolder="text_encoder").to(device)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/envs/animateanymesh/lib/python3.11/site-packages/transformers/modeling_utils.py", line 317, in _wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/envs/animateanymesh/lib/python3.11/site-packages/transformers/modeling_utils.py", line 4923, in from_pretrained
checkpoint_files, sharded_metadata = _get_resolved_checkpoint_files(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/envs/animateanymesh/lib/python3.11/site-packages/transformers/modeling_utils.py", line 1297, in _get_resolved_checkpoint_files
raise OSError(
OSError: Can't load the model for 'sd-legacy/stable-diffusion-v1-5'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'sd-legacy/stable-diffusion-v1-5' is the correct path to a directory containing a file named pytorch_model.bin, tf_model.h5, model.ckpt or flax_model.msgpack.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions