Upload meituan-longcat_LongCat-Video-Avatar_0.txt with huggingface_hub
Browse files1234567891011121314151617181920212223242526272829```CODE: import torchfrom diffusers import DiffusionPipeline
# switch to "mps" for apple devicespipe = DiffusionPipeline.from_pretrained("meituan-longcat/LongCat-Video-Avatar", dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"image = pipe(prompt).images[0]```
ERROR: Traceback (most recent call last): File "/tmp/meituan-longcat_LongCat-Video-Avatar_0EpjOEa.py", line 27, in <module> pipe = DiffusionPipeline.from_pretrained("meituan-longcat/LongCat-Video-Avatar", dtype=torch.bfloat16, device_map="cuda") File "/tmp/.cache/uv/environments-v2/e01ccec0f7786985/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) File "/tmp/.cache/uv/environments-v2/e01ccec0f7786985/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 829, in from_pretrained cached_folder = cls.download( pretrained_model_name_or_path, ...<14 lines>... **kwargs, ) File "/tmp/.cache/uv/environments-v2/e01ccec0f7786985/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) File "/tmp/.cache/uv/environments-v2/e01ccec0f7786985/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 1641, in download if custom_pipeline is None and isinstance(config_dict["_class_name"], (list, tuple)): ~~~~~~~~~~~^^^^^^^^^^^^^^^KeyError: '_class_name'meituan-longcat_LongCat-Video-Avatar_0.txtAdded+29