multimodalart HF staff commited on
Commit
1323497
1 Parent(s): c694422

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -104,7 +104,13 @@ def merge_and_run(prompt, negative_prompt, shuffled_items, lora_1_scale=0.5, lor
104
  #pipe = copy.deepcopy(original_pipe)
105
  start_time = time()
106
  unet = copy.deepcopy(original_pipe.unet)
107
- pipe = StableDiffusionXLPipeline(vae=original_pipe.vae, text_encoder=original_pipe.text_encoder, text_encoder_2=original_pipe.text_encoder_2, scheduler=original_pipe.scheduler, unet=unet)
 
 
 
 
 
 
108
  pickle_time = time() - start_time
109
  print(f"copy time: {pickle_time}")
110
  pipe.to("cuda")
 
104
  #pipe = copy.deepcopy(original_pipe)
105
  start_time = time()
106
  unet = copy.deepcopy(original_pipe.unet)
107
+ pipe = StableDiffusionXLPipeline(vae=original_pipe.vae,
108
+ text_encoder=original_pipe.text_encoder,
109
+ text_encoder_2=original_pipe.text_encoder_2,
110
+ scheduler=original_pipe.scheduler,
111
+ tokenizer=original_pipe.tokenizer,
112
+ tokenizer_2=original_pipe.tokenizer_2,
113
+ unet=unet)
114
  pickle_time = time() - start_time
115
  print(f"copy time: {pickle_time}")
116
  pipe.to("cuda")