mirror of
https://github.com/guoyww/AnimateDiff.git
synced 2025-12-21 10:49:32 +01:00
update
This commit is contained in:
33
app.py
33
app.py
@@ -74,20 +74,27 @@ examples = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
# clean unrelated ckpts
|
# clean unrelated ckpts
|
||||||
ckpts = [
|
# ckpts = [
|
||||||
"realisticVisionV20_v20.safetensors",
|
# "realisticVisionV20_v20.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"bash download_bashscripts/2-Lyriel.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 ...")
|
||||||
|
|||||||
Reference in New Issue
Block a user