1inkusFace commited on
Commit
5116401
·
verified ·
1 Parent(s): c919ac4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -462,7 +462,7 @@ def generate_30(
462
  del processor5
463
  gc.collect()
464
  #torch.cuda.empty_cache()
465
- torch.cuda.reset_peak_memory_stats()
466
  #expanded = expand_prompt(captions)
467
  new_prompt = prompt + ' ' + captions
468
  print("-- ------------ --")
@@ -591,7 +591,7 @@ def generate_60(
591
  del processor5
592
  gc.collect()
593
  #torch.cuda.empty_cache()
594
- torch.cuda.reset_peak_memory_stats()
595
  #expanded = expand_prompt(captions)
596
  new_prompt = prompt + ' ' + captions
597
  print("-- ------------ --")
@@ -720,7 +720,7 @@ def generate_90(
720
  del processor5
721
  gc.collect()
722
  #torch.cuda.empty_cache()
723
- torch.cuda.reset_peak_memory_stats()
724
  #expanded = expand_prompt(captions)
725
  new_prompt = prompt + ' ' + captions
726
  print("-- ------------ --")
 
462
  del processor5
463
  gc.collect()
464
  #torch.cuda.empty_cache()
465
+ #torch.cuda.reset_peak_memory_stats()
466
  #expanded = expand_prompt(captions)
467
  new_prompt = prompt + ' ' + captions
468
  print("-- ------------ --")
 
591
  del processor5
592
  gc.collect()
593
  #torch.cuda.empty_cache()
594
+ #torch.cuda.reset_peak_memory_stats()
595
  #expanded = expand_prompt(captions)
596
  new_prompt = prompt + ' ' + captions
597
  print("-- ------------ --")
 
720
  del processor5
721
  gc.collect()
722
  #torch.cuda.empty_cache()
723
+ #torch.cuda.reset_peak_memory_stats()
724
  #expanded = expand_prompt(captions)
725
  new_prompt = prompt + ' ' + captions
726
  print("-- ------------ --")