ariG23498 HF Staff commited on
Commit
08cb51a
·
verified ·
1 Parent(s): e582523

Upload Photoroom_prx-1024-t2i-beta_0.txt with huggingface_hub

Browse files
Files changed (1) hide show
  1. Photoroom_prx-1024-t2i-beta_0.txt +37 -0
Photoroom_prx-1024-t2i-beta_0.txt ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ```CODE:
2
+ import torch
3
+ from diffusers import DiffusionPipeline
4
+
5
+ # switch to "mps" for apple devices
6
+ pipe = DiffusionPipeline.from_pretrained("Photoroom/prx-1024-t2i-beta", dtype=torch.bfloat16, device_map="cuda")
7
+
8
+ prompt = "A close-up portrait in a photography studio, multiple soft light sources creating gradients of shadow on her face, minimal background, cinematic 4 K realism, artistic focus on light and emotion rather than glamour."
9
+ image = pipe(prompt).images[0]
10
+ ```
11
+
12
+ ERROR:
13
+ Traceback (most recent call last):
14
+ File "/tmp/Photoroom_prx-1024-t2i-beta_0ayiOqw.py", line 27, in <module>
15
+ pipe = DiffusionPipeline.from_pretrained("Photoroom/prx-1024-t2i-beta", dtype=torch.bfloat16, device_map="cuda")
16
+ File "/tmp/.cache/uv/environments-v2/42b1c635ea4813b7/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
17
+ return fn(*args, **kwargs)
18
+ File "/tmp/.cache/uv/environments-v2/42b1c635ea4813b7/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 833, in from_pretrained
19
+ cached_folder = cls.download(
20
+ pretrained_model_name_or_path,
21
+ ...<14 lines>...
22
+ **kwargs,
23
+ )
24
+ File "/tmp/.cache/uv/environments-v2/42b1c635ea4813b7/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
25
+ return fn(*args, **kwargs)
26
+ File "/tmp/.cache/uv/environments-v2/42b1c635ea4813b7/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 1522, in download
27
+ custom_components, folder_names = _get_custom_components_and_folders(
28
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
29
+ pretrained_model_name, config_dict, filenames, variant
30
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31
+ )
32
+ ^
33
+ File "/tmp/.cache/uv/environments-v2/42b1c635ea4813b7/lib/python3.13/site-packages/diffusers/pipelines/pipeline_loading_utils.py", line 1051, in _get_custom_components_and_folders
34
+ raise ValueError(
35
+ f"{candidate_file} as defined in `model_index.json` does not exist in {pretrained_model_name} and is not a module in 'diffusers/pipelines'."
36
+ )
37
+ ValueError: text_encoder/prx.py as defined in `model_index.json` does not exist in Photoroom/prx-1024-t2i-beta and is not a module in 'diffusers/pipelines'.