Spaces:
Runtime error
Runtime error
guoyww
commited on
Commit
·
2e9515a
1
Parent(s):
54facc1
update
Browse files- .gitignore +2 -0
- app.py +22 -22
.gitignore
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
models/
|
| 2 |
+
__pycache__/
|
app.py
CHANGED
|
@@ -74,28 +74,28 @@ examples = [
|
|
| 74 |
]
|
| 75 |
|
| 76 |
# clean unrelated ckpts
|
| 77 |
-
ckpts = [
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
]
|
| 84 |
-
|
| 85 |
-
for path in glob(os.path.join("models", "DreamBooth_LoRA", "*.safetensors")):
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
os.system(f"bash download_bashscripts/1-ToonYou.sh")
|
| 95 |
-
os.system(f"bash download_bashscripts/2-Lyriel.sh")
|
| 96 |
-
os.system(f"bash download_bashscripts/3-RcnzCartoon.sh")
|
| 97 |
-
os.system(f"bash download_bashscripts/4-MajicMix.sh")
|
| 98 |
-
os.system(f"bash download_bashscripts/5-RealisticVision.sh")
|
| 99 |
|
| 100 |
# clean Grdio cache
|
| 101 |
print(f"### Cleaning cached examples ...")
|
|
|
|
| 74 |
]
|
| 75 |
|
| 76 |
# clean unrelated ckpts
|
| 77 |
+
# ckpts = [
|
| 78 |
+
# "realisticVisionV40_v20Novae.safetensors",
|
| 79 |
+
# "majicmixRealistic_v5Preview.safetensors",
|
| 80 |
+
# "rcnzCartoon3d_v10.safetensors",
|
| 81 |
+
# "lyriel_v16.safetensors",
|
| 82 |
+
# "toonyou_beta3.safetensors"
|
| 83 |
+
# ]
|
| 84 |
+
|
| 85 |
+
# for path in glob(os.path.join("models", "DreamBooth_LoRA", "*.safetensors")):
|
| 86 |
+
# for ckpt in ckpts:
|
| 87 |
+
# if path.endswith(ckpt): break
|
| 88 |
+
# else:
|
| 89 |
+
# print(f"### Cleaning {path} ...")
|
| 90 |
+
# os.system(f"rm -rf {path}")
|
| 91 |
+
|
| 92 |
+
os.system(f"rm -rf {os.path.join('models', 'DreamBooth_LoRA', '*.safetensors')}")
|
| 93 |
+
|
| 94 |
+
# os.system(f"bash download_bashscripts/1-ToonYou.sh")
|
| 95 |
+
# os.system(f"bash download_bashscripts/2-Lyriel.sh")
|
| 96 |
+
# os.system(f"bash download_bashscripts/3-RcnzCartoon.sh")
|
| 97 |
+
# os.system(f"bash download_bashscripts/4-MajicMix.sh")
|
| 98 |
+
# os.system(f"bash download_bashscripts/5-RealisticVision.sh")
|
| 99 |
|
| 100 |
# clean Grdio cache
|
| 101 |
print(f"### Cleaning cached examples ...")
|