Giter Club home page Giter Club logo

Comments (21)

heartlocket avatar heartlocket commented on August 28, 2024

Trying to install and getting stuck in a module not found loop.

System info: Windows 11 Pro 64 bit 21H2 22000.856
I have a fresh anaconda install from a few days ago.
git4windows installed
I had the previous model installed elsewhere
I already have the full version of anaconda installed, made sure that the script locations match the paths in webui. I followed instructions closely but every time i try and run webui i get stuck in an error loop:

Traceback (most recent call last):
File "C:\Users\heart\Desktop\DEV\stable-diffusion-main\stable-diffusion-main\scripts\webui.py", line 2, in
import gradio as gr
ModuleNotFoundError: No module named 'gradio'
Relauncher: Process is ending. Relaunching in 0.5s...

I have tried 'pip install gradio' before running it, this didnt help either.
help!!

my bad feel free to close my other issue reposting here

from sygil-webui.

hlky avatar hlky commented on August 28, 2024

@heartlocket post all the requested information

from sygil-webui.

ShinkoNet avatar ShinkoNet commented on August 28, 2024

Run webuildm.cmd instead of webui.cmd and see if that works.

Else, did you change your environment.yaml's first line from ldm to something else?
If so, that's a step that should be removed from the rentry instructions.
For now, edit the texts in both in webui.cmd and ldm.cmd and change any mention of ldo or ldm there to the word you changed in environment.yaml

from sygil-webui.

hlky avatar hlky commented on August 28, 2024

and ldm.cmd

Is it possible people are ignoring the instructions and trying to mix the shortcut and webui.cmd?

The shortcut (and ldm.cmd) is for ldm, webui.cmd is ldo, webuildm.cmd is ldm

Like you and I have already said, it seems likely that this issue is due to the instruction to change the environment.yaml, combined with the old guides still existing, and certain people's inability to read and follow the instructions

Some people could be 'updating' by copying the files from hlky/stable-diffusion to the directory they had previously used

Alternatively, considering at least 2 (or 1 if its the same person) is having the issue with Windows 11, that it's a Windows 11 issue

Honestly it's impossible to tell because the people having issues all seem to be completely incapable of following instructions, and won't provide all the information requested

from sygil-webui.

ShinkoNet avatar ShinkoNet commented on August 28, 2024

It could be possible. I remember another guide had the environment set to ldx or lda.
We should ask what environment is installed on their system (shown in the env path in their condabin)

from sygil-webui.

heartlocket avatar heartlocket commented on August 28, 2024

I was able to fix it with a fresh conda install. So I don't think its windows 11. I must have missed something, but no idea what it is. sorry~!

from sygil-webui.

hlky avatar hlky commented on August 28, 2024

Some user was running webui.cmd from conda, so that's another possible fix for anyone else, just double click it in the folder, or run it from cmd/powershell (I asked for this way for debugging because it would show all the output easier, and the output is still accessible - if the .cmd were to unexpectedly close the output is gone)

Glad to hear it's fixed though

from sygil-webui.

heartlocket avatar heartlocket commented on August 28, 2024

Thanks!

from sygil-webui.

MarcusMcNut avatar MarcusMcNut commented on August 28, 2024

Here are the following changes that I needed to make to the yaml to get the WebUI to work. I hope others will find this helpful. I added gradio and pynvml to the pips and an -e git+https://github.com/hlky/k-diffusion-sd#egg=k_diffusion`

removed to avoid confusion

from sygil-webui.

hlky avatar hlky commented on August 28, 2024

You needed to just use the environment.yaml, you must have been using an old repo, it already has all of that, and gfpgan, you're missing gfpgan from that.

I've removed that part of your comment to avoid confusion

from sygil-webui.

MarcusMcNut avatar MarcusMcNut commented on August 28, 2024

from sygil-webui.

hlky avatar hlky commented on August 28, 2024

you can't use webui.py with that repo, this is a fork that has made several changes to the environment.yaml to enable support for the new features added
Remove any old environment with conda env remove -n also just delete any stable-diffusion folders, dont forget to move the model.ckpt out beforehand otherwise you'll have to download it again, then start following the guide again from scratch
i'll ask the guide maintainer to clarify all of this in the guide to try and prevent these kind of issues occurring

from sygil-webui.

MarcusMcNut avatar MarcusMcNut commented on August 28, 2024

from sygil-webui.

hlky avatar hlky commented on August 28, 2024

Like I said you didn't need to change environment.yaml, if you downloaded stable-diffusion from hlky/stable-diffusion it already has everything required

hlky/stable-diffusion-webui repo specifically is for the development of the webui and changes are synced to hlky/stable-diffusion soon after being pushed here, a small delay allows for any bug fixes that are found after a push

i have asked the guide maintainer to not link directly to this repo because it's mainly for developers and evidently is causing issues where people think they can drop webui.py from hlky/stable-diffusion-webui in anywhere and expect it to work (and also claim they followed the instructions to the letter, conveniently leaving out the part where they didn't)

from sygil-webui.

MarcusMcNut avatar MarcusMcNut commented on August 28, 2024

from sygil-webui.

Muskelmagier avatar Muskelmagier commented on August 28, 2024

I now know what in my case was the problem You have to type in "conda activate ldo" that fixes the whole problem.

from sygil-webui.

MarcusMcNut avatar MarcusMcNut commented on August 28, 2024

@hlky thank you for your help last night, I'm making sure to share the information with folks in the discord when they're running into the same issues as I, to be sure to use your stable-diffusion fork repo not this one.

from sygil-webui.

TwistedFromArma avatar TwistedFromArma commented on August 28, 2024

i too have the issue. I have used latest version and lmo change in the file.

from sygil-webui.

lozenge avatar lozenge commented on August 28, 2024

I just solved this problem on my own machine (Windows 10 Pro 20H2) by installing OpenSSL.

I specifically installed the "Win64 OpenSSL v1.1.1q Light" version from https://slproweb.com/products/Win32OpenSSL.html.

Hopefully this helps!

from sygil-webui.

hlky avatar hlky commented on August 28, 2024

Discussion for this will move to 'Discussions'
Info to the Wiki

from sygil-webui.

ThisIsJustARandomGuy avatar ThisIsJustARandomGuy commented on August 28, 2024

This just happened to me after doing a conda clean --all right after the first install. Deleting z_version_env.tmp and running update_to_latest.cmd solved it for me, in case anyone else runs into this.

from sygil-webui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.