wondervictor commited on
Commit
bb31867
·
verified ·
1 Parent(s): 8418f39

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +1 -1
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