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 converting models from Huggingface website #371

Closed
ssube opened this issue May 1, 2023 · 0 comments
Closed

error converting models from Huggingface website #371

ssube opened this issue May 1, 2023 · 0 comments
Labels
model/diffusion scope/convert status/fixed issues that have been fixed and released type/bug broken features
Milestone

Comments

@ssube
Copy link
Owner

ssube commented May 1, 2023

MainProcess MainThread onnx_web.convert.diffusion.diffusers: converting Stable Diffusion model stable-diffusion-onnx-v1-5: runwayml/stable-diffusion-v1-5 -> G:\StableDiffusion\\models\stable-diffusion-onnx-v1-5/
[2023-05-01 10:52:35,017] WARNING: MainProcess MainThread onnx_web.convert.diffusion.diffusers: pipeline source not found or not recognized: runwayml/stable-diffusion-v1-5
[2023-05-01 10:52:35,017] ERROR: MainProcess MainThread onnx_web.convert.__main__: error converting diffusion model stable-diffusion-onnx-v1-5
Traceback (most recent call last):
  File "onnx_web\convert\__main__.py", line 356, in convert_models
  File "torch\autograd\grad_mode.py", line 27, in decorate_context
    return func(*args, **kwargs)
  File "onnx_web\convert\diffusion\diffusers.py", line 321, in convert_diffusion_diffusers
ValueError: pipeline source not found or not recognized: runwayml/stable-diffusion-v1-5

This is caused by the new path.exists check when trying to detect if a path is a Diffusers folder or checkpoint file. The pipeline.from_pretrained method downloads the files as they are needed, so they don't exist yet, and the check doesn't know what to do.

@ssube ssube added status/planned issues that have been planned but not started type/bug broken features scope/convert model/diffusion labels May 1, 2023
@ssube ssube added this to the v0.10 milestone May 1, 2023
@ssube ssube added status/fixed issues that have been fixed and released and removed status/planned issues that have been planned but not started labels May 4, 2023
ssube added a commit that referenced this issue May 5, 2023
@ssube ssube closed this as completed Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
model/diffusion scope/convert status/fixed issues that have been fixed and released type/bug broken features
Projects
None yet
Development

No branches or pull requests

1 participant