Spaces:
Paused
Paused
gokaygokay
commited on
Commit
•
efd252f
1
Parent(s):
79b12f9
Update app.py
Browse files
app.py
CHANGED
@@ -127,7 +127,6 @@ class LazyRealESRGAN:
|
|
127 |
if self.model is None:
|
128 |
self.model = RealESRGAN(self.device, scale=self.scale)
|
129 |
self.model.load_weights(f'models/upscalers/RealESRGAN_x{self.scale}.pth', download=False)
|
130 |
-
self.model = torch.compile(self.model)
|
131 |
def predict(self, img):
|
132 |
self.load_model()
|
133 |
return self.model.predict(img)
|
|
|
127 |
if self.model is None:
|
128 |
self.model = RealESRGAN(self.device, scale=self.scale)
|
129 |
self.model.load_weights(f'models/upscalers/RealESRGAN_x{self.scale}.pth', download=False)
|
|
|
130 |
def predict(self, img):
|
131 |
self.load_model()
|
132 |
return self.model.predict(img)
|