Spaces:
Running
on
L40S
Running
on
L40S
Update app.py
Browse files
app.py
CHANGED
@@ -86,7 +86,7 @@ def infer(image_path, prompt, orbit_type, progress=gr.Progress(track_tqdm=True))
|
|
86 |
# Generate a timestamp for adapter_name
|
87 |
adapter_timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
|
88 |
|
89 |
-
pipe.load_lora_weights(lora_path, weight_name=weight_name)
|
90 |
pipe.fuse_lora(lora_scale=1 / lora_rank)
|
91 |
pipe.to("cuda")
|
92 |
|
@@ -105,7 +105,6 @@ def infer(image_path, prompt, orbit_type, progress=gr.Progress(track_tqdm=True))
|
|
105 |
)
|
106 |
|
107 |
find_and_move_object_to_cpu()
|
108 |
-
pipe.to("cpu")
|
109 |
clear_gpu()
|
110 |
|
111 |
# Generate a timestamp for the output filename
|
|
|
86 |
# Generate a timestamp for adapter_name
|
87 |
adapter_timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
|
88 |
|
89 |
+
pipe.load_lora_weights(lora_path, weight_name=weight_name, adapter_name=f"{adapter_timestamp}")
|
90 |
pipe.fuse_lora(lora_scale=1 / lora_rank)
|
91 |
pipe.to("cuda")
|
92 |
|
|
|
105 |
)
|
106 |
|
107 |
find_and_move_object_to_cpu()
|
|
|
108 |
clear_gpu()
|
109 |
|
110 |
# Generate a timestamp for the output filename
|