This commit is contained in:
Yuwei Guo
2023-07-20 14:37:31 +08:00
parent 11f8e3313e
commit c34de4d6b0

41
app.py
View File

@@ -65,7 +65,7 @@ examples = [
], ],
# 5-RealisticVision # 5-RealisticVision
[ [
"realisticVisionV20_v20.safetensors", "realisticVisionV40_v20Novae.safetensors",
"mm_sd_v15.ckpt", "mm_sd_v15.ckpt",
"photo of coastline, rocks, storm weather, wind, waves, lightning, 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3", "photo of coastline, rocks, storm weather, wind, waves, lightning, 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3",
"blur, haze, deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime, mutated hands and fingers, deformed, distorted, disfigured, poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, disconnected limbs, mutation, mutated, ugly, disgusting, amputation", "blur, haze, deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime, mutated hands and fingers, deformed, distorted, disfigured, poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, disconnected limbs, mutation, mutated, ugly, disgusting, amputation",
@@ -74,27 +74,28 @@ examples = [
] ]
# clean unrelated ckpts # clean unrelated ckpts
# ckpts = [ ckpts = [
# "realisticVisionV20_v20.safetensors", "realisticVisionV40_v20Novae.safetensors",
# "majicmixRealistic_v5Preview.safetensors", "majicmixRealistic_v5Preview.safetensors",
# "rcnzCartoon3d_v10.safetensors", "rcnzCartoon3d_v10.safetensors",
# "lyriel_v16.safetensors", "lyriel_v16.safetensors",
# "toonyou_beta3.safetensors" "toonyou_beta3.safetensors"
# ] ]
# for path in glob(os.path.join("models", "DreamBooth_LoRA", "*.safetensors")): for path in glob(os.path.join("models", "DreamBooth_LoRA", "*.safetensors")):
# for ckpt in ckpts: for ckpt in ckpts:
# if path.endswith(ckpt): break if path.endswith(ckpt): break
# else: else:
# print(f"### Cleaning {path} ...") print(f"### Cleaning {path} ...")
# os.system(f"rm -rf {path}") os.system(f"rm -rf {path}")
os.system(f"rm -rf {os.path.join('models', 'DreamBooth_LoRA', '*.safetensors')}")
os.system(f"bash download_bashscripts/1-ToonYou.sh") # os.system(f"rm -rf {os.path.join('models', 'DreamBooth_LoRA', '*.safetensors')}")
os.system(f"bash download_bashscripts/2-Lyriel.sh")
os.system(f"bash download_bashscripts/3-RcnzCartoon.sh") # os.system(f"bash download_bashscripts/1-ToonYou.sh")
os.system(f"bash download_bashscripts/4-MajicMix.sh") # os.system(f"bash download_bashscripts/2-Lyriel.sh")
os.system(f"bash download_bashscripts/5-RealisticVision.sh") # os.system(f"bash download_bashscripts/3-RcnzCartoon.sh")
# os.system(f"bash download_bashscripts/4-MajicMix.sh")
# os.system(f"bash download_bashscripts/5-RealisticVision.sh")
# clean Grdio cache # clean Grdio cache
print(f"### Cleaning cached examples ...") print(f"### Cleaning cached examples ...")