Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when enabling long prompt weighting #224

Closed
bzlibby opened this issue Mar 8, 2023 · 2 comments
Closed

error when enabling long prompt weighting #224

bzlibby opened this issue Mar 8, 2023 · 2 comments
Assignees
Labels
status/progress issues that are in progress and have a branch type/bug broken features
Milestone

Comments

@bzlibby
Copy link
Contributor

bzlibby commented Mar 8, 2023

After my most recent pull from main, I'm no longer able to use long prompt weighting when generating images. Instead, I get an infinite loading spinner in the UI and the following error message in the logs:

[2023-03-08 17:32:28,775] ERROR: onnx-web worker: directml MainThread onnx_web.worker.worker: error while running job: ['Traceback (most recent call last):\n', '  File "C:\\Users\\bzlib\\onnx-web\\api\\onnx_env\\lib\\site-packages\\huggingface_hub\\utils\\_errors.py", line 239, in hf_raise_for_status\n    response.raise_for_status()\n', '  File "C:\\Users\\bzlib\\onnx-web\\api\\onnx_env\\lib\\site-packages\\requests\\models.py", line 1021, in raise_for_status\n    raise HTTPError(http_error_msg, response=self)\n', 'requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://raw.githubusercontent.com/huggingface/diffusers/main/examples/community/D:%5Connx-web%5Capi%5Connx_web%5Cdiffusion.py\n', '\nThe above exception was the direct cause of the following exception:\n\n', 'Traceback (most recent call last):\n', '  File "D:\\onnx-web\\api\\onnx_web\\worker\\worker.py", line 48, in worker_main\n    fn(context, *args, **kwargs)\n', '  File "D:\\onnx-web\\api\\onnx_web\\diffusers\\run.py", line 31, in run_txt2img_pipeline\n    pipe = load_pipeline(\n', '  File "D:\\onnx-web\\api\\onnx_web\\diffusers\\load.py", line 217, in load_pipeline\n    pipe = pipeline.from_pretrained(\n', '  File "C:\\Users\\bzlib\\onnx-web\\api\\onnx_env\\lib\\site-packages\\diffusers\\pipeline_utils.py", line 528, in from_pretrained\n    pipeline_class = get_class_from_dynamic_module(\n', '  File "C:\\Users\\bzlib\\onnx-web\\api\\onnx_env\\lib\\site-packages\\diffusers\\dynamic_modules_utils.py", line 445, in get_class_from_dynamic_module\n    final_module = get_cached_module_file(\n', '  File "C:\\Users\\bzlib\\onnx-web\\api\\onnx_env\\lib\\site-packages\\diffusers\\dynamic_modules_utils.py", line 285, in get_cached_module_file\n    resolved_module_file = cached_download(\n', '  File "C:\\Users\\bzlib\\onnx-web\\api\\onnx_env\\lib\\site-packages\\huggingface_hub\\utils\\_validators.py", line 124, in _inner_fn\n    return fn(*args, **kwargs)\n', '  File "C:\\Users\\bzlib\\onnx-web\\api\\onnx_env\\lib\\site-packages\\huggingface_hub\\file_download.py", line 627, in cached_download\n    hf_raise_for_status(r)\n', '  File "C:\\Users\\bzlib\\onnx-web\\api\\onnx_env\\lib\\site-packages\\huggingface_hub\\utils\\_errors.py", line 280, in hf_raise_for_status\n    raise HfHubHTTPError(str(e), response=response) from e\n', 'huggingface_hub.utils._errors.HfHubHTTPError: 404 Client Error: Not Found for url: https://raw.githubusercontent.com/huggingface/diffusers/main/examples/community/D:%5Connx-web%5Capi%5Connx_web%5Cdiffusion.py\n']

Currently running this commit: 26f4b7e
OS is Windows 10

@ssube ssube added status/progress issues that are in progress and have a branch type/bug broken features labels Mar 9, 2023
@ssube ssube added this to the v0.8 milestone Mar 9, 2023
@ssube
Copy link
Owner

ssube commented Mar 9, 2023

I recently moved a few files around and renamed that directory, looks like I missed a reference.

Please test the fix when you have a chance.

@ssube ssube self-assigned this Mar 9, 2023
@ssube ssube mentioned this issue Mar 9, 2023
99 tasks
@bzlibby
Copy link
Contributor Author

bzlibby commented Mar 9, 2023

Fix looks good to me, Long Prompt Weighting is working for me again!

@bzlibby bzlibby closed this as completed Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/progress issues that are in progress and have a branch type/bug broken features
Projects
None yet
Development

No branches or pull requests

2 participants