JadenFK commited on
Commit
506478b
1 Parent(s): 5349660
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -46,13 +46,9 @@ class Demo:
46
 
47
  checkpoint = torch.load(model_path)
48
 
49
- del self.finetuner
50
-
51
- torch.cuda.empty_cache()
52
-
53
  self.finetuner = FineTunedModel.from_checkpoint(self.diffuser, checkpoint)
54
 
55
-
56
 
57
  def layout(self):
58
 
 
46
 
47
  checkpoint = torch.load(model_path)
48
 
 
 
 
 
49
  self.finetuner = FineTunedModel.from_checkpoint(self.diffuser, checkpoint)
50
 
51
+ torch.cuda.empty_cache()
52
 
53
  def layout(self):
54