Spaces:
Runtime error
Runtime error
Update
Browse files
model.py
CHANGED
@@ -294,6 +294,7 @@ class Model:
|
|
294 |
torch.cuda.empty_cache()
|
295 |
self.srg.dsr.model.to(self.device)
|
296 |
self.srg.itersr.model.to(self.device)
|
|
|
297 |
res = self.generate_images(seq, txt_len, tokens)
|
298 |
|
299 |
elapsed = time.perf_counter() - start
|
|
|
294 |
torch.cuda.empty_cache()
|
295 |
self.srg.dsr.model.to(self.device)
|
296 |
self.srg.itersr.model.to(self.device)
|
297 |
+
torch.cuda.empty_cache()
|
298 |
res = self.generate_images(seq, txt_len, tokens)
|
299 |
|
300 |
elapsed = time.perf_counter() - start
|