fffiloni commited on
Commit
ebf010c
·
1 Parent(s): e76c0b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -29,7 +29,8 @@ def infer(prompt, init_image):
29
  num_inference_steps=50,
30
  generator=generator)
31
 
32
- torch.cuda.empty_cache()
 
33
 
34
  res = pipe(alpha=1)
35
 
 
29
  num_inference_steps=50,
30
  generator=generator)
31
 
32
+ with torch.no_grad():
33
+ torch.cuda.empty_cache()
34
 
35
  res = pipe(alpha=1)
36