mirror of
https://github.com/Sygil-Dev/sygil-webui.git
synced 2024-12-14 14:05:36 +03:00
a00d827cd8
* #715 #699 #698 #663 #625 #617 #611 #604 (#716) * Update README.md * Add sampler name to metadata (#695) Co-authored-by: EliEron <example@example.com> * old-dev-merge Co-authored-by: EliEron <subanimehd@gmail.com> Co-authored-by: EliEron <example@example.com> * img2img-fix (#717) * Revert "img2img-fix (#717)" This reverts commit70d4b1ca2a
. * img2img fixes * Revert "img2img fixes" This reverts commite66eddc621
. * Revert "Revert "img2img-fix (#717)"" This reverts commitbf08b617d4
. * img2img fixed * - Removed duplicated calls to save_sample. - Change variables and arguments to be more self-explanatory and easier to understand what they do. * Moved streamlit files to their proper location, before they were incorrectly added to the repository root folder. * Added retry dependency for the streamlit version. * Added .cmd file for easy running and updating the streamlit version of the UI. * Removed duplicated entry for streamlit on the environment.yaml file. * Removed some unnecessary lines from the the webui_streamlit.cmd file. * add gfpgan folder to gitignore, auto gen by imglab * added placeholder text similar to gradio * added auto conversion for 4 channel PNG to RGB * fix: regex escape characters * Update Readme links to sd-webui when appropriate (#781) * Update link to sd-webui when appropriate * added LDSR instruction per devilismyfriend guide * fix: stack overflow during recursion call (#784) * Added option to set default sampler name from config file, will be useful for those wanting to change the default sampler and have it persist even when closing the UI and opening it again. * Added try and except block to handle basic errors like StopException which is raised by streamlit when you hit the stop button and KeyError which happens also when stopping the generation because it tries to check the model at the end which is not loaded at that time, this can be ignored and so thats the reason for the exception. * separate css to external file * Added "git pull" and "git stash" to the commands run by the cmd scripts when launching the UI, this should make it so people who use it can automatically update the code from the repo and be up to date without manually using those commands everytime. * resolve conflict with master Co-authored-by: EliEron <subanimehd@gmail.com> Co-authored-by: EliEron <example@example.com> Co-authored-by: ZeroCool <ZeroCool940711@users.noreply.github.com> Co-authored-by: ZeroCool940711 <alejandrogilelias940711@gmail.com> Co-authored-by: Hafiidz <3688500+Hafiidz@users.noreply.github.com> Co-authored-by: Thomas Mello <work.mello@gmail.com>
54 lines
1.5 KiB
Batchfile
54 lines
1.5 KiB
Batchfile
@echo off
|
|
|
|
set conda_env_name=ldm
|
|
|
|
:: Put the path to conda directory after "=" sign if it's installed at non-standard path:
|
|
set custom_conda_path=
|
|
|
|
IF NOT "%custom_conda_path%"=="" (
|
|
set paths=%custom_conda_path%;%paths%
|
|
)
|
|
:: Put the path to conda directory in a file called "custom-conda-path.txt" if it's installed at non-standard path:
|
|
FOR /F %%i IN (custom-conda-path.txt) DO set custom_conda_path=%%i
|
|
|
|
set paths=%ProgramData%\miniconda3
|
|
set paths=%paths%;%USERPROFILE%\miniconda3
|
|
set paths=%paths%;%ProgramData%\anaconda3
|
|
set paths=%paths%;%USERPROFILE%\anaconda3
|
|
|
|
for %%a in (%paths%) do (
|
|
IF NOT "%custom_conda_path%"=="" (
|
|
set paths=%custom_conda_path%;%paths%
|
|
)
|
|
)
|
|
|
|
for %%a in (%paths%) do (
|
|
if EXIST "%%a\Scripts\activate.bat" (
|
|
SET CONDA_PATH=%%a
|
|
echo anaconda3/miniconda3 detected in %%a
|
|
goto :foundPath
|
|
)
|
|
)
|
|
|
|
IF "%CONDA_PATH%"=="" (
|
|
echo anaconda3/miniconda3 not found. Install from here https://docs.conda.io/en/latest/miniconda.html
|
|
exit /b 1
|
|
)
|
|
|
|
call git stash
|
|
call git pull
|
|
|
|
:foundPath
|
|
call "%CONDA_PATH%\Scripts\activate.bat"
|
|
call conda env create -n "%conda_env_name%" -f environment.yaml
|
|
call conda env update -n "%conda_env_name%" --file environment.yaml --prune
|
|
call "%CONDA_PATH%\Scripts\activate.bat" "%conda_env_name%"
|
|
python "%CD%"\scripts\relauncher.py
|
|
|
|
:PROMPT
|
|
set SETUPTOOLS_USE_DISTUTILS=stdlib
|
|
IF EXIST "models\ldm\stable-diffusion-v1\model.ckpt" (
|
|
python scripts/relauncher.py
|
|
) ELSE (
|
|
ECHO Your model file does not exist! Place it in 'models\ldm\stable-diffusion-v1' with the name 'model.ckpt'.
|
|
) |