Linoy Tsaban commited on
Commit
6b46943
1 Parent(s): dcf7f47

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,8 +21,8 @@ unet = UNet2DConditionModel.from_pretrained(model_id, subfolder="unet", revision
21
  torch_dtype=torch.float16).to(device)
22
 
23
  # pipe for TokenFlow
24
- pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16).to("cuda")
25
- pipe.enable_xformers_memory_efficient_attention()
26
 
27
  def randomize_seed_fn():
28
  seed = random.randint(0, np.iinfo(np.int32).max)
 
21
  torch_dtype=torch.float16).to(device)
22
 
23
  # pipe for TokenFlow
24
+ tokenflow_pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16).to("cuda")
25
+ tokenflow_pipe.enable_xformers_memory_efficient_attention()
26
 
27
  def randomize_seed_fn():
28
  seed = random.randint(0, np.iinfo(np.int32).max)