lch01 commited on
Commit
ed5e740
·
1 Parent(s): 0c61197

fix output of inference

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -113,7 +113,7 @@ def run_model(target_dir, model) -> dict:
113
 
114
  # Convert pose encoding to extrinsic and intrinsic matrices
115
  print("Converting pose encoding to extrinsic and intrinsic matrices...")
116
- extrinsic, intrinsic = pose_encoding_to_extri_intri(predictions["camera_pose"], images.shape[-2:])
117
  predictions["extrinsic"] = extrinsic
118
  predictions["intrinsic"] = intrinsic
119
 
@@ -121,7 +121,6 @@ def run_model(target_dir, model) -> dict:
121
  for key in predictions.keys():
122
  if isinstance(predictions[key], torch.Tensor):
123
  predictions[key] = predictions[key].cpu().numpy().squeeze(0) # remove batch dimension
124
- predictions['pose_enc_list'] = None # remove pose_enc_list
125
 
126
  # Generate world points from depth map
127
  print("Computing world points from depth map...")
 
113
 
114
  # Convert pose encoding to extrinsic and intrinsic matrices
115
  print("Converting pose encoding to extrinsic and intrinsic matrices...")
116
+ extrinsic, intrinsic = pose_encoding_to_extri_intri(predictions["pose_enc"], images.shape[-2:])
117
  predictions["extrinsic"] = extrinsic
118
  predictions["intrinsic"] = intrinsic
119
 
 
121
  for key in predictions.keys():
122
  if isinstance(predictions[key], torch.Tensor):
123
  predictions[key] = predictions[key].cpu().numpy().squeeze(0) # remove batch dimension
 
124
 
125
  # Generate world points from depth map
126
  print("Computing world points from depth map...")