Replies: 1 comment 3 replies
-
|
On the first run when the environment does not exist
So they don't actually run again, if they are for you that's something that can looked at. I can understand where you're coming from, as you're someone with an extensive background in UX some of the design decisions might seem a bit odd, but due to the way the project started and the distribution of different guides and communities relying on this repo we've tried to 1) make things extremely simplified and 2) minimize changes to things other than the webui itself to try to avoid breaking anyone's setup. It's taken a few days to get almost everyone onto using webui.cmd which has resolved most installation issues. I am happy to add a separate install and run but will keep the main webui.cmd as is, at least for now |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I had some bugs with this running the latest Anaconda on Windows 11.
The culprit was webui.cmd, it failed to switch the environment, although it is created and visible by conda. So what I did was a one-line START.cmd INSTEAD of webui.cmd. The side effect was that the arguments to webui.py are easier to pass. So I suggest having a separate install.cmd and a run.cmd, so all the pip commands, checks, etc don't need to run again. Also, you can bypass the launcher if you are running locally and want to debug manually.
Cowboy code START.cmd
This is my messy first try at START.cmd:
call %windir%\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy ByPass -NoExit -Command "& 'C:\ProgramData\Anaconda3\shell\condabin\conda-hook.ps1' ; conda activate 'C:\ProgramData\Anaconda3\envs\myld' ; cd C:\local\hlky-stable-diffusion ; python scripts/webui.py --no-half --precision=full"You need to manually replace some string if you want to use it:
"C:\ProgramData\Anaconda3\shell\condabin\conda-hook.ps1" with your default conda hook powershell (should be in condabin, but that can be in C:\Users<username>\anaconda3\shell\condabin\conda-hook.ps1)
'C:\ProgramData\Anaconda3\envs\myld' with the environment you created for this project (can be anything)
'C:\local\hlky-stable-diffusion' with the paths to where you cloned this git repo.
Hope this help.
Example with default Anaconda3 directories
For example if you let the install script run with the default settings it should be something like:
call %windir%\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy ByPass -NoExit -Command "& 'C:\ProgramData\Anaconda3\shell\condabin\conda-hook.ps1' ; conda activate 'C:\Users\<username>\.conda\envs\ldo' ; cd C:\local\hlky-stable-diffusion ; python scripts/webui.py --no-half --precision=full"Why no relauncher?
What the relauncher does is that if the code fails it will relaunch in 0.5 seconds. This is helpful if you run it as a remote server, but locally this makes bugfixing a bit harder, due to the CMD window being full of relaunch messages. The other problem is that if your GPU can support it, I assume you want to run it with
--no-half --precision=fulland that is easier to put it here, than overwriting the relauncher script.Beta Was this translation helpful? Give feedback.
All reactions