Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -59,7 +59,7 @@ for ratio in PRUNING_RATIOS:
|
|
| 59 |
try:
|
| 60 |
print(f"Loading {ratio}% pruned model...")
|
| 61 |
model_file = hf_hub_download(
|
| 62 |
-
repo_id="LWZ19/
|
| 63 |
filename=f"pruned_model_{ratio}.pkl"
|
| 64 |
)
|
| 65 |
|
|
@@ -83,7 +83,7 @@ for ratio in PRUNING_RATIOS:
|
|
| 83 |
try:
|
| 84 |
print(f"Loading {ratio}% LoRA weights...")
|
| 85 |
lora_file = hf_hub_download(
|
| 86 |
-
repo_id="LWZ19/
|
| 87 |
filename=f"lora/prune_{ratio}/{LORA_WEIGHT_NAME_SAFE}"
|
| 88 |
)
|
| 89 |
lora_weights[ratio] = os.path.dirname(lora_file)
|
|
@@ -96,7 +96,7 @@ for ratio in PRUNING_RATIOS:
|
|
| 96 |
try:
|
| 97 |
print(f"Loading {ratio}% full weights...")
|
| 98 |
full_file = hf_hub_download(
|
| 99 |
-
repo_id="LWZ19/
|
| 100 |
filename=f"full/prune_{ratio}/unet/{SAFETENSORS_WEIGHTS_NAME}"
|
| 101 |
)
|
| 102 |
full_weights[ratio] = load_file(full_file)
|
|
|
|
| 59 |
try:
|
| 60 |
print(f"Loading {ratio}% pruned model...")
|
| 61 |
model_file = hf_hub_download(
|
| 62 |
+
repo_id="LWZ19/ecodiff_sdxl_prune",
|
| 63 |
filename=f"pruned_model_{ratio}.pkl"
|
| 64 |
)
|
| 65 |
|
|
|
|
| 83 |
try:
|
| 84 |
print(f"Loading {ratio}% LoRA weights...")
|
| 85 |
lora_file = hf_hub_download(
|
| 86 |
+
repo_id="LWZ19/ecodiff_sdxl_retrain_weights",
|
| 87 |
filename=f"lora/prune_{ratio}/{LORA_WEIGHT_NAME_SAFE}"
|
| 88 |
)
|
| 89 |
lora_weights[ratio] = os.path.dirname(lora_file)
|
|
|
|
| 96 |
try:
|
| 97 |
print(f"Loading {ratio}% full weights...")
|
| 98 |
full_file = hf_hub_download(
|
| 99 |
+
repo_id="LWZ19/ecodiff_sdxl_retrain_weights",
|
| 100 |
filename=f"full/prune_{ratio}/unet/{SAFETENSORS_WEIGHTS_NAME}"
|
| 101 |
)
|
| 102 |
full_weights[ratio] = load_file(full_file)
|