multimodalart HF staff commited on
Commit
599d91a
·
1 Parent(s): ffede06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -102,6 +102,7 @@ def merge_and_run(prompt, negative_prompt, shuffled_items, lora_1_scale=0.5, lor
102
  print(f"State Dict time: {state_dict_time}")
103
  #pipe = copy.deepcopy(original_pipe)
104
  start_time = time()
 
105
  pipe.unet = copy.deepcopy(original_pipe.unet)
106
  pickle_time = time() - start_time
107
  print(f"copy time: {pickle_time}")
 
102
  print(f"State Dict time: {state_dict_time}")
103
  #pipe = copy.deepcopy(original_pipe)
104
  start_time = time()
105
+ pipe = original_pipe
106
  pipe.unet = copy.deepcopy(original_pipe.unet)
107
  pickle_time = time() - start_time
108
  print(f"copy time: {pickle_time}")