Interpause / auto-sd-krita

AUTOMATIC1111 webUI + Krita Plugin with superb Inpainting
MIT License
88 stars 4 forks source link

Key Error: Samplers (Port Conflict?) #19

Closed bnelsey closed 1 year ago

bnelsey commented 1 year ago

Describe the bug When opening Krita after copying the plugin files into pykrita folder, I get a script error (Key Error: Samplers)

To Reproduce Video of how to reproduce bug

Steps to reproduce the behavior:

  1. Open Krita, works fine
  2. copy krita_diff folder and krita_diff.desktop
  3. paste to pykrita folder
  4. Reopen Krita, see error

Expected behavior Krita should actually start without the script error

Screenshots Video

Desktop (please complete the following information):

Additional context

bnelsey commented 1 year ago

update: I can't use the previous plugin anymore after failing to install this one lol (https://github.com/sddebz/stable-diffusion-krita-plugin) image

Not really a problem if I can successfully install your plugin though, but for now I can't use any stable diffusion with Krita so I'll just wait

bnelsey commented 1 year ago

update 2: deleting everything in AppData\Roaming\krita then reinstalling Krita allowed me to use the previous plugin again, since that's how to get a clean reinstall So looks like the main issue i'm having isn't a conflict with other plugins since I started with a clean reinstall of Krita before installing your plugin

Interpause commented 1 year ago

Did you make sure you are using https://github.com/Interpause/auto-sd-krita as the backend instead of https://github.com/sddebz/stable-diffusion-krita-plugin? Our APIs aren't compatible as I chose to unhardcode some of the options.

Sorry for the delay, somehow Github didn't notify me of new issues :/

Interpause commented 1 year ago

Re-open the issue if following https://github.com/Interpause/auto-sd-krita/wiki/Install-Guide#installing-the-webuibackend doesn't work.

Interpause commented 1 year ago

Sorry, I just noticed you indeed downloaded my repository. But I noticed you weren't running webui-user.bat in the background. By right, the plugin shouldn't crash and only give a warning in the status bar that it could not connect to the backend. However, the fact that it reaches my assert checks hints you might have something already running on port 8000 locally that is responding to the plugin. If running webui-user.bat gives a port other than 8000, then that is likely your problem.

Also, try updating the code (since you did not use git, that means downloading everything again and copying the plugin although you should be able to re-use the same venv).

bnelsey commented 1 year ago

yep that did it, thanks! redownloading the repository and reinstalling the plugin pretty much worked right out of the box, awesome

Interpause commented 1 year ago

No problem, if you like the plugin, star the repository & maybe share the demo video I made. Thanks!

bnelsey commented 1 year ago

Did both because I -really- like this plugin, it's pretty much everything I could ask for 👌