Chakshu123 commited on
Commit
5f79e9a
1 Parent(s): 8bcdbb0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -227,6 +227,7 @@ def colorize2(img: Image.Image, model_option: str):
227
  input = torch.from_numpy(np.asarray(img))[None,None].float().to(device) / 255.0 * 2 - 1
228
  with torch.inference_mode():
229
  out2 = model_net(input).squeeze()
 
230
  out2 = sample[0].cpu().numpy().transpose([1,2,0])
231
  out2 = np.uint8(((out + 1) / 2 * 255).clip(0,255))
232
 
 
227
  input = torch.from_numpy(np.asarray(img))[None,None].float().to(device) / 255.0 * 2 - 1
228
  with torch.inference_mode():
229
  out2 = model_net(input).squeeze()
230
+ print(out2.shape)
231
  out2 = sample[0].cpu().numpy().transpose([1,2,0])
232
  out2 = np.uint8(((out + 1) / 2 * 255).clip(0,255))
233