JUGGHM commited on
Commit
af0602e
1 Parent(s): 673c19d

Update mono/utils/do_test.py

Browse files
Files changed (1) hide show
  1. mono/utils/do_test.py +4 -4
mono/utils/do_test.py CHANGED
@@ -211,12 +211,12 @@ def transform_test_data_scalecano(rgb, intrinsic, data_basic):
211
 
212
  rgb = torch.from_numpy(rgb.transpose((2, 0, 1))).float()
213
  rgb = torch.div((rgb - mean), std)
214
- #rgb = rgb[None, :, :, :].cuda()
215
- rgb = rgb[None, :, :, :]
216
 
217
  cam_model = torch.from_numpy(cam_model.transpose((2, 0, 1))).float()
218
- #cam_model = cam_model[None, :, :, :].cuda()
219
- cam_model = cam_model[None, :, :, :]
220
  cam_model_stacks = [
221
  torch.nn.functional.interpolate(cam_model, size=(cam_model.shape[2]//i, cam_model.shape[3]//i), mode='bilinear', align_corners=False)
222
  for i in [2, 4, 8, 16, 32]
 
211
 
212
  rgb = torch.from_numpy(rgb.transpose((2, 0, 1))).float()
213
  rgb = torch.div((rgb - mean), std)
214
+ rgb = rgb[None, :, :, :].cuda()
215
+ #rgb = rgb[None, :, :, :]
216
 
217
  cam_model = torch.from_numpy(cam_model.transpose((2, 0, 1))).float()
218
+ cam_model = cam_model[None, :, :, :].cuda()
219
+ #cam_model = cam_model[None, :, :, :]
220
  cam_model_stacks = [
221
  torch.nn.functional.interpolate(cam_model, size=(cam_model.shape[2]//i, cam_model.shape[3]//i), mode='bilinear', align_corners=False)
222
  for i in [2, 4, 8, 16, 32]