Spaces:
Sleeping
Sleeping
Kevin
commited on
Commit
•
2116eea
1
Parent(s):
a40952a
Fix fix_lora mode
Browse files
app.py
CHANGED
@@ -44,9 +44,9 @@ def run_diffmorpher(
|
|
44 |
run_id = datetime.now().strftime("%H%M") + "_" + datetime.now().strftime("%Y%m%d")
|
45 |
os.makedirs(output_path, exist_ok=True)
|
46 |
morpher_pipeline = DiffMorpherPipeline.from_pretrained(model_path, torch_dtype=torch.float32).to("cuda")
|
47 |
-
if lora_mode == "Fix LoRA
|
48 |
fix_lora = 0
|
49 |
-
elif lora_mode == "Fix LoRA
|
50 |
fix_lora = 1
|
51 |
else:
|
52 |
fix_lora = None
|
|
|
44 |
run_id = datetime.now().strftime("%H%M") + "_" + datetime.now().strftime("%Y%m%d")
|
45 |
os.makedirs(output_path, exist_ok=True)
|
46 |
morpher_pipeline = DiffMorpherPipeline.from_pretrained(model_path, torch_dtype=torch.float32).to("cuda")
|
47 |
+
if lora_mode == "Fix LoRA A":
|
48 |
fix_lora = 0
|
49 |
+
elif lora_mode == "Fix LoRA B":
|
50 |
fix_lora = 1
|
51 |
else:
|
52 |
fix_lora = None
|