Manjushri commited on
Commit
db9534c
·
verified ·
1 Parent(s): 108b1be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -14,6 +14,7 @@ pipe.enable_xformers_memory_efficient_attention()
14
  torch.cuda.empty_cache()
15
 
16
  def genie (Prompt, negative_prompt, height, width, scale, steps, seed):
 
17
  torch.cuda.empty_cache()
18
  generator = np.random.seed(0) if seed == 0 else torch.manual_seed(seed)
19
  int_image = pipe(Prompt, negative_prompt=negative_prompt, height=height, width=width, num_inference_steps=steps, guidance_scale=scale, output_type="latent").images
 
14
  torch.cuda.empty_cache()
15
 
16
  def genie (Prompt, negative_prompt, height, width, scale, steps, seed):
17
+ torch.cuda.max_memory_allocated(device=device)
18
  torch.cuda.empty_cache()
19
  generator = np.random.seed(0) if seed == 0 else torch.manual_seed(seed)
20
  int_image = pipe(Prompt, negative_prompt=negative_prompt, height=height, width=width, num_inference_steps=steps, guidance_scale=scale, output_type="latent").images