Spaces:
Running
on
Zero
Running
on
Zero
wondervictor
commited on
Update model.py
Browse files
model.py
CHANGED
@@ -266,7 +266,7 @@ class Model:
|
|
266 |
samples = 255 * (samples * 0.5 + 0.5)
|
267 |
samples = [image] + [
|
268 |
Image.fromarray(
|
269 |
-
sample.permute(1, 2, 0).numpy().clip(0, 255).astype(np.uint8))
|
270 |
for sample in samples
|
271 |
]
|
272 |
del image_tensor
|
|
|
266 |
samples = 255 * (samples * 0.5 + 0.5)
|
267 |
samples = [image] + [
|
268 |
Image.fromarray(
|
269 |
+
sample.permute(1, 2, 0).cpu().detach().numpy().clip(0, 255).astype(np.uint8))
|
270 |
for sample in samples
|
271 |
]
|
272 |
del image_tensor
|