This commit is contained in:
Saifeddine ALOUI 2024-03-19 21:36:29 +01:00
parent 8463a927c9
commit 53a2c12faf

View File

@ -64,14 +64,13 @@ def install_sd(lollms_app:LollmsApplication):
if sd_folder.exists():
if show_yes_no_dialog("warning!","I have detected that there is a previous installation of stable diffusion.\nShould I remove it and continue installing?"):
shutil.rmtree(sd_folder)
elif show_yes_no_dialog("warning!","Continue installation?"):
ASCIIColors.cyan("Installing autosd conda environment with python 3.10")
create_conda_env("autosd","3.10")
ASCIIColors.cyan("Done")
return
else:
elif not show_yes_no_dialog("warning!","Continue installation?"):
return
ASCIIColors.cyan("Installing autosd conda environment with python 3.10")
create_conda_env("autosd","3.10")
ASCIIColors.cyan("Done")
subprocess.run(["git", "clone", "https://github.com/ParisNeo/stable-diffusion-webui.git", str(sd_folder)])
subprocess.run(["git", "clone", "https://github.com/ParisNeo/SD-CN-Animation.git", str(sd_folder/"extensions/SD-CN-Animation")])
if show_yes_no_dialog("warning!","Do you want to install a model from civitai?\nIsuggest dreamshaper xl."):