Spaces:
Running
error
i get this error idk why
The cache for model files in Transformers v4.22.0 has been updated. Migrating your old cache. This is a one-time only operation. You can interrupt this and resume the migration later on by calling transformers.utils.move_cache()
.
0it [00:00, ?it/s]
0it [00:00, ?it/s]
Running on local URL: http://0.0.0.0:7860
To create a public link, set share=True
in launch()
.
Start downloading: https://civitai.com/api/download/models/807156
[#5d56ea 167MiB/217MiB(77%) CN:16 DL:241MiB]
[#5d56ea 216MiB/217MiB(99%) CN:1 DL:109MiB]
Download Results:
gid |stat|avg speed |path/URI
======+====+===========+=======================================================
5d56ea|OK | 102MiB/s|./Genshin_Impact_3D_Style.safetensors
Status Legend:
(OK):download completed.
Download completed: https://civitai.com/api/download/models/807156
/usr/local/lib/python3.10/site-packages/transformers/models/clip/feature_extraction_clip.py:28: FutureWarning: The class CLIPFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please use CLIPImageProcessor instead.
warnings.warn(
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/diffusers/loaders/single_file.py", line 495, in from_single_file
loaded_sub_model = load_single_file_sub_model(
File "/usr/local/lib/python3.10/site-packages/diffusers/loaders/single_file.py", line 168, in load_single_file_sub_model
raise SingleFileComponentError(
diffusers.loaders.single_file_utils.SingleFileComponentError: Failed to load CLIPTextModel. Weights for this component appear to be missing in the checkpoint.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/gradio/queueing.py", line 536, in process_events
response = await route_utils.call_process_api(
File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 322, in call_process_api
output = await app.get_blocks().process_api(
File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1935, in process_api
result = await self.call_function(
File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1520, in call_function
prediction = await anyio.to_thread.run_sync( # type: ignore
File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2177, in run_sync_in_worker_thread
return await future
File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 859, in run
result = context.run(func, *args)
File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 826, in wrapper
response = f(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 826, in wrapper
response = f(*args, **kwargs)
File "/home/user/app/convert_url_to_diffusers_sdxl_gr.py", line 346, in convert_url_to_diffusers_repo
new_path = convert_url_to_diffusers_sdxl(dl_url, civitai_key, hf_token, is_upload_sf, half, vae, scheduler, lora_dict, False)
File "/home/user/app/convert_url_to_diffusers_sdxl_gr.py", line 264, in convert_url_to_diffusers_sdxl
pipe = StableDiffusionXLPipeline.from_single_file(new_file, use_safetensors=True, torch_dtype=torch.float16)
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/diffusers/loaders/single_file.py", line 510, in from_single_file
raise SingleFileComponentError(
diffusers.loaders.single_file_utils.SingleFileComponentError: Failed to load CLIPTextModel. Weights for this component appear to be missing in the checkpoint.
Please load the component before passing it in as an argument to from_single_file
.
text_encoder = CLIPTextModel.from_pretrained('...')
pipe = StableDiffusionXLPipeline.from_single_file(, text_encoder=text_encoder)
Start downloading: https://civitai.com/api/download/models/807156
Download Results:
gid |stat|avg speed |path/URI
======+====+===========+=======================================================
5db8d3|OK | 0B/s|./Genshin_Impact_3D_Style.safetensors
Status Legend:
(OK):download completed.
Download failed: https://civitai.com/api/download/models/807156
Not found: https://civitai.com/api/download/models/807156
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/gradio/queueing.py", line 536, in process_events
response = await route_utils.call_process_api(
File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 322, in call_process_api
output = await app.get_blocks().process_api(
File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1945, in process_api
data = await self.postprocess_data(block_fn, result["prediction"], state)
File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1717, in postprocess_data
self.validate_outputs(block_fn, predictions) # type: ignore
File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1691, in validate_outputs
raise ValueError(
ValueError: An event handler (convert_url_to_diffusers_repo) didn't receive enough output values (needed: 2, received: 1).
Wanted outputs:
[<gradio.components.checkboxgroup.CheckboxGroup object at 0x7f0d995e5030>, <gradio.components.markdown.Markdown object at 0x7f0d995e5180>]
Received outputs:
[""]
Start downloading: https://civitai.com/api/download/models/807156
Download Results:
gid |stat|avg speed |path/URI
======+====+===========+=======================================================
8f6847|OK | 0B/s|./Genshin_Impact_3D_Style.safetensors
Status Legend:
(OK):download completed.
Download failed: https://civitai.com/api/download/models/807156
Not found: https://civitai.com/api/download/models/807156
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/gradio/queueing.py", line 536, in process_events
response = await route_utils.call_process_api(
File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 322, in call_process_api
output = await app.get_blocks().process_api(
File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1945, in process_api
data = await self.postprocess_data(block_fn, result["prediction"], state)
File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1717, in postprocess_data
self.validate_outputs(block_fn, predictions) # type: ignore
File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1691, in validate_outputs
raise ValueError(
ValueError: An event handler (convert_url_to_diffusers_repo) didn't receive enough output values (needed: 2, received: 1).
Wanted outputs:
[<gradio.components.checkboxgroup.CheckboxGroup object at 0x7f0d995e5030>, <gradio.components.markdown.Markdown object at 0x7f0d995e5180>]
Received outputs:
[""]
Start downloading: https://civitai.com/api/download/models/807156
[#c31460 0B/0B CN:1 DL:0B]
Download Results:
gid |stat|avg speed |path/URI
======+====+===========+=======================================================
c31460|OK | 0B/s|./Genshin_Impact_3D_Style.safetensors
Status Legend:
(OK):download completed.
Download failed: https://civitai.com/api/download/models/807156
Not found: https://civitai.com/api/download/models/807156
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/gradio/queueing.py", line 536, in process_events
response = await route_utils.call_process_api(
File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 322, in call_process_api
output = await app.get_blocks().process_api(
File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1945, in process_api
data = await self.postprocess_data(block_fn, result["prediction"], state)
File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1717, in postprocess_data
self.validate_outputs(block_fn, predictions) # type: ignore
File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1691, in validate_outputs
raise ValueError(
ValueError: An event handler (convert_url_to_diffusers_repo) didn't receive enough output values (needed: 2, received: 1).
Wanted outputs:
[<gradio.components.checkboxgroup.CheckboxGroup object at 0x7f0d995e5030>, <gradio.components.markdown.Markdown object at 0x7f0d995e5180>]
Received outputs:
[""]
Start downloading: https://civitai.com/api/download/models/807156
Download Results:
gid |stat|avg speed |path/URI
======+====+===========+=======================================================
18c94a|OK | 0B/s|./Genshin_Impact_3D_Style.safetensors
Status Legend:
(OK):download completed.
Download failed: https://civitai.com/api/download/models/807156
Not found: https://civitai.com/api/download/models/807156
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/gradio/queueing.py", line 536, in process_events
response = await route_utils.call_process_api(
File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 322, in call_process_api
output = await app.get_blocks().process_api(
File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1945, in process_api
data = await self.postprocess_data(block_fn, result["prediction"], state)
File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1717, in postprocess_data
self.validate_outputs(block_fn, predictions) # type: ignore
File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1691, in validate_outputs
raise ValueError(
ValueError: An event handler (convert_url_to_diffusers_repo) didn't receive enough output values (needed: 2, received: 1).
Wanted outputs:
[<gradio.components.checkboxgroup.CheckboxGroup object at 0x7f0d995e5030>, <gradio.components.markdown.Markdown object at 0x7f0d995e5180>]
Received outputs:
[""]
That's a LoRA file, not a model file, so it can't be converted to Diffusers format. Or rather, you can upload it as it is without conversion and write a few lines of README.md to make it usable.
I think it's hard to understand how to write README.md, so I'll summarize it a little later.
https://huggingface.co/John6666/iniverse-mix-xl-sfwnsfw-guofen-v15-sdxl/discussions/1
I'm using this place as a BBS, so effectively this is a quote...
- Create a new model repo https://huggingface.co/new
- Upload the LoRA file
- Write README.md (Model Card) as follows
- Done!
---
base_model: cagliostrolab/animagine-xl-3.1
instance_prompt: null
license: other
language:
- en
tags:
- text-to-image
- lora
- diffusers
- template:sd-lora
---
test
It is even better if you set the base model appropriate for that LoRA file to base_model: and the LoRA trigger word to instance_prompt:.
i see