RamAnanth1 commited on
Commit
5f8442e
1 Parent(s): acce61f
Files changed (1) hide show
  1. model.py +1 -1
model.py CHANGED
@@ -147,7 +147,7 @@ class Model:
147
 
148
  x_samples_ddim = self.model.decode_first_stage(samples_ddim)
149
  x_samples_ddim = torch.clamp((x_samples_ddim + 1.0) / 2.0, min=0.0, max=1.0)
150
- x_samples_ddim = x_samples_ddim.permute(0, 2, 3, 1).numpy()[0]
151
  x_samples_ddim = 255.*x_samples_ddim
152
  x_samples_ddim = x_samples_ddim.astype(np.uint8)
153
 
 
147
 
148
  x_samples_ddim = self.model.decode_first_stage(samples_ddim)
149
  x_samples_ddim = torch.clamp((x_samples_ddim + 1.0) / 2.0, min=0.0, max=1.0)
150
+ x_samples_ddim = x_samples_ddim.permute(0, 2, 3, 1).cpu().numpy()[0]
151
  x_samples_ddim = 255.*x_samples_ddim
152
  x_samples_ddim = x_samples_ddim.astype(np.uint8)
153