Upload fal_flux-klein-9b-virtual-tryon-lora_0.txt with huggingface_hub
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263```CODE: import torchfrom diffusers import DiffusionPipelinefrom diffusers.utils import load_image
# switch to "mps" for apple devicespipe = DiffusionPipeline.from_pretrained("fill-in-base-model", dtype=torch.bfloat16, device_map="cuda")pipe.load_lora_weights("fal/flux-klein-9b-virtual-tryon-lora")
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/.cache/uv/environments-v2/45f4f7f80d0e0667/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 720, in hf_raise_for_status response.raise_for_status() ~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/tmp/.cache/uv/environments-v2/45f4f7f80d0e0667/lib/python3.13/site-packages/httpx/_models.py", line 829, in raise_for_status raise HTTPStatusError(message, request=request, response=self)httpx.HTTPStatusError: Client error '404 Not Found' for url 'https://huggingface.co/api/models/fill-in-base-model'For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/tmp/.cache/uv/environments-v2/45f4f7f80d0e0667/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 1598, in download info = model_info(pretrained_model_name, token=token, revision=revision) File "/tmp/.cache/uv/environments-v2/45f4f7f80d0e0667/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 89, in _inner_fn return fn(*args, **kwargs) File "/tmp/.cache/uv/environments-v2/45f4f7f80d0e0667/lib/python3.13/site-packages/huggingface_hub/hf_api.py", line 2842, in model_info hf_raise_for_status(r) ~~~~~~~~~~~~~~~~~~~^^^ File "/tmp/.cache/uv/environments-v2/45f4f7f80d0e0667/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 788, in hf_raise_for_status raise _format(RepositoryNotFoundError, message, response) from ehuggingface_hub.errors.RepositoryNotFoundError: 404 Client Error. (Request ID: Root=1-69a93013-4d525fde00c0cf436f8b3bd2;7657f6b1-fc41-4cc5-8b56-d94301c43434)
Repository Not Found for url: https://huggingface.co/api/models/fill-in-base-model.Please make sure you specified the correct `repo_id` and `repo_type`.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
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/tmp/fal_flux-klein-9b-virtual-tryon-lora_030eEzY.py", line 28, in <module> pipe = DiffusionPipeline.from_pretrained("fill-in-base-model", dtype=torch.bfloat16, device_map="cuda") File "/tmp/.cache/uv/environments-v2/45f4f7f80d0e0667/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 89, in _inner_fn return fn(*args, **kwargs) File "/tmp/.cache/uv/environments-v2/45f4f7f80d0e0667/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/45f4f7f80d0e0667/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 89, in _inner_fn return fn(*args, **kwargs) File "/tmp/.cache/uv/environments-v2/45f4f7f80d0e0667/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 1792, in download raise EnvironmentError( ...<3 lines>... ) from model_info_call_errorOSError: 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.fal_flux-klein-9b-virtual-tryon-lora_0.txtAdded+63