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 with nod.ai SHARK 20231005.978 #1875

Open
Joly0 opened this issue Oct 7, 2023 · 8 comments
Open

Error with nod.ai SHARK 20231005.978 #1875

Joly0 opened this issue Oct 7, 2023 · 8 comments

Comments

@Joly0
Copy link

Joly0 commented Oct 7, 2023

Hey, i am trying to get SHARK working. I started the programm using the exe and didnt change anything except the model to juggernautXL i downloaded from civitai, but as soon as i try to generate anything with it (as i said, i left anythign else on stock, even the default prompts), i get this error:

Loading diffusers' pipeline from original stable diffusion checkpoint
Traceback (most recent call last):
  File "gradio\queueing.py", line 388, in call_prediction
  File "gradio\route_utils.py", line 219, in call_process_api
  File "gradio\blocks.py", line 1437, in process_api
  File "gradio\blocks.py", line 1123, in call_function
  File "gradio\utils.py", line 503, in async_iteration
  File "gradio\utils.py", line 496, in __anext__
  File "anyio\to_thread.py", line 33, in run_sync
  File "anyio\_backends\_asyncio.py", line 877, in run_sync_in_worker_thread
  File "anyio\_backends\_asyncio.py", line 807, in run
  File "gradio\utils.py", line 479, in run_sync_iterator_async
  File "gradio\utils.py", line 629, in gen_wrapper
  File "ui\txt2img_ui.py", line 163, in txt2img_inf
  File "apps\stable_diffusion\src\pipelines\pipeline_shark_stable_diffusion_utils.py", line 359, in from_pretrained
  File "apps\stable_diffusion\src\models\model_wrappers.py", line 164, in __init__
  File "apps\stable_diffusion\src\utils\utils.py", line 596, in preprocessCKPT
  File "diffusers\pipelines\stable_diffusion\convert_from_ckpt.py", line 1627, in download_from_original_stable_diffusion_ckpt
TypeError: StableDiffusionPipeline.__init__() got an unexpected keyword argument 'text_encoder_2'

I even tried to let SHARK download that model from civitai and entered the download url and set models to none, but even then, the error is exactly the same. I t starts doing things, downloading the model, and then comes the error

@ase1590
Copy link

ase1590 commented Oct 8, 2023

Quick google seems to point towards this being related to the StableDiffusion XL pipeline, which I don't think shark has yet.

@monorimet
Copy link
Collaborator

Right, we have an implementation in the works to enable StableDiffusionXL in SHARK, but until #1731 is landed any of these XL models from HF/diffusers/CivitAI will see this same issue.

@Joly0
Copy link
Author

Joly0 commented Oct 19, 2023

Hey @monorimet i have seen the pr you mentioned is merged, does that mean sdxl is now available in shark or will be very soon? :)

@monorimet
Copy link
Collaborator

Merged and reverted unfortunately. It's still in progress! @Abhishek-Varma will know best what's left to be done for SDXL support.

@Joly0
Copy link
Author

Joly0 commented Nov 12, 2023

Hey @monorimet @Abhishek-Varma What is the current state of this? :)

@monorimet
Copy link
Collaborator

It's on the way #1941

custom SDXL models is still up to a week or two out... it's quite a chunky model and the UX needs quite a bit of polish. We'll add it incrementally.

@Joly0
Copy link
Author

Joly0 commented Nov 14, 2023

Nice, great to hear there is progess and active development behind it. I think alot of people are waiting for sdxl support :D

@Kikillervortlex
Copy link

I just saw that SDXL support has been merged in the main. Do you know when the stable release will include this change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants