Spaces:
Runtime error
Runtime error
bug
Browse files
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 |
|