Upload fal_flux-klein-9b-virtual-tryon-lora_0.txt with huggingface_hub
Browse files
fal_flux-klein-9b-virtual-tryon-lora_0.txt
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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("fill-in-base-model", dtype=torch.bfloat16, device_map="cuda")
|
| 8 |
+
pipe.load_lora_weights("fal/flux-klein-9b-virtual-tryon-lora")
|
| 9 |
+
|
| 10 |
+
prompt = "Turn this cat into a dog"
|
| 11 |
+
input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png")
|
| 12 |
+
|
| 13 |
+
image = pipe(image=input_image, prompt=prompt).images[0]
|
| 14 |
+
```
|
| 15 |
+
|
| 16 |
+
ERROR:
|
| 17 |
+
Traceback (most recent call last):
|
| 18 |
+
File "/tmp/.cache/uv/environments-v2/45f4f7f80d0e0667/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 720, in hf_raise_for_status
|
| 19 |
+
response.raise_for_status()
|
| 20 |
+
~~~~~~~~~~~~~~~~~~~~~~~~~^^
|
| 21 |
+
File "/tmp/.cache/uv/environments-v2/45f4f7f80d0e0667/lib/python3.13/site-packages/httpx/_models.py", line 829, in raise_for_status
|
| 22 |
+
raise HTTPStatusError(message, request=request, response=self)
|
| 23 |
+
httpx.HTTPStatusError: Client error '404 Not Found' for url 'https://huggingface.co/api/models/fill-in-base-model'
|
| 24 |
+
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404
|
| 25 |
+
|
| 26 |
+
The above exception was the direct cause of the following exception:
|
| 27 |
+
|
| 28 |
+
Traceback (most recent call last):
|
| 29 |
+
File "/tmp/.cache/uv/environments-v2/45f4f7f80d0e0667/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 1598, in download
|
| 30 |
+
info = model_info(pretrained_model_name, token=token, revision=revision)
|
| 31 |
+
File "/tmp/.cache/uv/environments-v2/45f4f7f80d0e0667/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 89, in _inner_fn
|
| 32 |
+
return fn(*args, **kwargs)
|
| 33 |
+
File "/tmp/.cache/uv/environments-v2/45f4f7f80d0e0667/lib/python3.13/site-packages/huggingface_hub/hf_api.py", line 2842, in model_info
|
| 34 |
+
hf_raise_for_status(r)
|
| 35 |
+
~~~~~~~~~~~~~~~~~~~^^^
|
| 36 |
+
File "/tmp/.cache/uv/environments-v2/45f4f7f80d0e0667/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 788, in hf_raise_for_status
|
| 37 |
+
raise _format(RepositoryNotFoundError, message, response) from e
|
| 38 |
+
huggingface_hub.errors.RepositoryNotFoundError: 404 Client Error. (Request ID: Root=1-69a93013-4d525fde00c0cf436f8b3bd2;7657f6b1-fc41-4cc5-8b56-d94301c43434)
|
| 39 |
+
|
| 40 |
+
Repository Not Found for url: https://huggingface.co/api/models/fill-in-base-model.
|
| 41 |
+
Please make sure you specified the correct `repo_id` and `repo_type`.
|
| 42 |
+
If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface.co/docs/huggingface_hub/authentication
|
| 43 |
+
|
| 44 |
+
The above exception was the direct cause of the following exception:
|
| 45 |
+
|
| 46 |
+
Traceback (most recent call last):
|
| 47 |
+
File "/tmp/fal_flux-klein-9b-virtual-tryon-lora_030eEzY.py", line 28, in <module>
|
| 48 |
+
pipe = DiffusionPipeline.from_pretrained("fill-in-base-model", dtype=torch.bfloat16, device_map="cuda")
|
| 49 |
+
File "/tmp/.cache/uv/environments-v2/45f4f7f80d0e0667/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 89, in _inner_fn
|
| 50 |
+
return fn(*args, **kwargs)
|
| 51 |
+
File "/tmp/.cache/uv/environments-v2/45f4f7f80d0e0667/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 829, in from_pretrained
|
| 52 |
+
cached_folder = cls.download(
|
| 53 |
+
pretrained_model_name_or_path,
|
| 54 |
+
...<14 lines>...
|
| 55 |
+
**kwargs,
|
| 56 |
+
)
|
| 57 |
+
File "/tmp/.cache/uv/environments-v2/45f4f7f80d0e0667/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 89, in _inner_fn
|
| 58 |
+
return fn(*args, **kwargs)
|
| 59 |
+
File "/tmp/.cache/uv/environments-v2/45f4f7f80d0e0667/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 1792, in download
|
| 60 |
+
raise EnvironmentError(
|
| 61 |
+
...<3 lines>...
|
| 62 |
+
) from model_info_call_error
|
| 63 |
+
OSError: Cannot load model fill-in-base-model: model is not cached locally and an error occurred while trying to fetch metadata from the Hub. Please check out the root cause in the stacktrace above.
|