Chakshu123 commited on
Commit
8bcdbb0
1 Parent(s): 60c0645

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -226,7 +226,7 @@ def colorize2(img: Image.Image, model_option: str):
226
  model_int = 0
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)
230
  out2 = sample[0].cpu().numpy().transpose([1,2,0])
231
  out2 = np.uint8(((out + 1) / 2 * 255).clip(0,255))
232
 
 
226
  model_int = 0
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