Error to loading pretrained model
#3
by
jiahuikchen
- opened
I get ValueError: learned_classifier_free_sampling_embeddings/vq_diffusion.py as defined in
model_index.json does not exist in microsoft/vq-diffusion-ithq and is not a module in 'diffusers/pipelines'.
when trying to load the model with the code in the model card.
I'm using diffusers Version: 0.29.0
Full trace:
File "/private/home/jiahuikchen/t2i_eval_reports/mllm_agent/interact_1.py", line 201, in main
t2i_model = VQDiffusionPipeline.from_pretrained("microsoft/vq-diffusion-ithq").to(SD_DEVICE)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/home/jiahuikchen/.conda/envs/eval_reports/lib/python3.12/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/private/home/jiahuikchen/.conda/envs/eval_reports/lib/python3.12/site-packages/diffusers/pipelines/pipeline_utils.py", line 702, in from_pretrained
cached_folder = cls.download(
^^^^^^^^^^^^^
File "/private/home/jiahuikchen/.conda/envs/eval_reports/lib/python3.12/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/private/home/jiahuikchen/.conda/envs/eval_reports/lib/python3.12/site-packages/diffusers/pipelines/pipeline_utils.py", line 1344, in download
raise ValueError(
ValueError: learned_classifier_free_sampling_embeddings/vq_diffusion.py as defined in `model_index.json` does not exist in microsoft/vq-diffusion-ithq and is not a module in 'diffusers/pipelines'.