ariG23498 HF Staff commited on
Commit
76a98d8
·
verified ·
1 Parent(s): b9550f8

Upload iitolstykh_VIBE-Image-Edit_0.txt with huggingface_hub

Browse files
Files changed (1) hide show
  1. iitolstykh_VIBE-Image-Edit_0.txt +40 -0
iitolstykh_VIBE-Image-Edit_0.txt ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ```CODE:
2
+ import torch
3
+ from diffusers import DiffusionPipeline
4
+ from diffusers.utils import load_image
5
+
6
+ # switch to "mps" for apple devices
7
+ pipe = DiffusionPipeline.from_pretrained("iitolstykh/VIBE-Image-Edit", dtype=torch.bfloat16, device_map="cuda")
8
+
9
+ prompt = "Turn this cat into a dog"
10
+ input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png")
11
+
12
+ image = pipe(image=input_image, prompt=prompt).images[0]
13
+ ```
14
+
15
+ ERROR:
16
+ Traceback (most recent call last):
17
+ File "/tmp/iitolstykh_VIBE-Image-Edit_0ODkKht.py", line 28, in <module>
18
+ pipe = DiffusionPipeline.from_pretrained("iitolstykh/VIBE-Image-Edit", dtype=torch.bfloat16, device_map="cuda")
19
+ File "/tmp/.cache/uv/environments-v2/b1ef3dc1778ed83e/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
20
+ return fn(*args, **kwargs)
21
+ File "/tmp/.cache/uv/environments-v2/b1ef3dc1778ed83e/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 829, in from_pretrained
22
+ cached_folder = cls.download(
23
+ pretrained_model_name_or_path,
24
+ ...<14 lines>...
25
+ **kwargs,
26
+ )
27
+ File "/tmp/.cache/uv/environments-v2/b1ef3dc1778ed83e/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
28
+ return fn(*args, **kwargs)
29
+ File "/tmp/.cache/uv/environments-v2/b1ef3dc1778ed83e/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 1637, in download
30
+ custom_components, folder_names = _get_custom_components_and_folders(
31
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
32
+ pretrained_model_name, config_dict, filenames, variant
33
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34
+ )
35
+ ^
36
+ File "/tmp/.cache/uv/environments-v2/b1ef3dc1778ed83e/lib/python3.13/site-packages/diffusers/pipelines/pipeline_loading_utils.py", line 1071, in _get_custom_components_and_folders
37
+ raise ValueError(
38
+ f"{candidate_file} as defined in `model_index.json` does not exist in {pretrained_model_name} and is not a module in 'diffusers/pipelines'."
39
+ )
40
+ ValueError: transformer/vibe.transformer.vibe_sana_editing.py as defined in `model_index.json` does not exist in iitolstykh/VIBE-Image-Edit and is not a module in 'diffusers/pipelines'.