Manjushri commited on
Commit
3f791e5
·
verified ·
1 Parent(s): 29ea107

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -21,6 +21,8 @@ pipe = pipe.to(device)
21
  torch.cuda.empty_cache()
22
 
23
  def genie(image):
 
 
24
  frames = pipe(image).images[0]
25
  return frames
26
 
 
21
  torch.cuda.empty_cache()
22
 
23
  def genie(image):
24
+ torch.cuda.max_memory_allocated(device=device)
25
+ torch.cuda.empty_cache()
26
  frames = pipe(image).images[0]
27
  return frames
28