Upload autoweeb_Qwen-Image-Edit-2509-Photo-to-Anime_0.txt with huggingface_hub
Browse files12345678910111213141516171819202122232425262728293031323334353637383940```CODE: import torchfrom diffusers import DiffusionPipelinefrom diffusers.utils import load_image
# switch to "mps" for apple devicespipe = DiffusionPipeline.from_pretrained("Qwen/Qwen-Image-Edit-2509", dtype=torch.bfloat16, device_map="cuda")pipe.load_lora_weights("autoweeb/Qwen-Image-Edit-2509-Photo-to-Anime")
prompt = "Turn this cat into a dog"input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png")
image = pipe(image=input_image, prompt=prompt).images[0]```
ERROR: Traceback (most recent call last): File "/tmp/autoweeb_Qwen-Image-Edit-2509-Photo-to-Anime_0tLmrPn.py", line 28, in <module> pipe = DiffusionPipeline.from_pretrained("Qwen/Qwen-Image-Edit-2509", dtype=torch.bfloat16, device_map="cuda") File "/tmp/.cache/uv/environments-v2/938fa017b24e3368/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/938fa017b24e3368/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 833, in from_pretrained cached_folder = cls.download( pretrained_model_name_or_path, ...<14 lines>... **kwargs, ) File "/tmp/.cache/uv/environments-v2/938fa017b24e3368/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/938fa017b24e3368/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 1548, in download pipeline_class = _get_pipeline_class( cls, ...<7 lines>... revision=custom_revision, ) File "/tmp/.cache/uv/environments-v2/938fa017b24e3368/lib/python3.13/site-packages/diffusers/pipelines/pipeline_loading_utils.py", line 491, in _get_pipeline_class pipeline_cls = getattr(diffusers_module, class_name) File "/tmp/.cache/uv/environments-v2/938fa017b24e3368/lib/python3.13/site-packages/diffusers/utils/import_utils.py", line 946, in __getattr__ raise AttributeError(f"module {self.__name__} has no attribute {name}")AttributeError: module diffusers has no attribute QwenImageEditPlusPipeline. Did you mean: 'QwenImageEditPipeline'?autoweeb_Qwen-Image-Edit-2509-Photo-to-Anime_0.txtAdded+40