Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -153,7 +153,7 @@ def reset_inference_state():
|
|
153 |
|
154 |
# Move necessary models back to the correct device
|
155 |
if low_vram:
|
156 |
-
models_to(models_rbm, device=
|
157 |
models_rbm.generator.to(device)
|
158 |
models_rbm.previewer.to(device)
|
159 |
else:
|
|
|
153 |
|
154 |
# Move necessary models back to the correct device
|
155 |
if low_vram:
|
156 |
+
models_to(models_rbm, device=device, excepts=["generator", "previewer"])
|
157 |
models_rbm.generator.to(device)
|
158 |
models_rbm.previewer.to(device)
|
159 |
else:
|