lch01 commited on
Commit
36d3877
·
1 Parent(s): 30079ab

fix output of inference

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -73,6 +73,7 @@ def run_model(target_dir, model) -> dict:
73
 
74
  predictions = {}
75
  predictions["images"] = images # (S, 3, H, W)
 
76
 
77
  frames = []
78
  for i in range(images.shape[0]):
@@ -114,7 +115,8 @@ def run_model(target_dir, model) -> dict:
114
  print("Depth map shape:", predictions["depth"].shape)
115
  print("Depth confidence shape:", predictions["depth_conf"].shape)
116
  print("Pose encoding shape:", predictions["pose_enc"].shape)
117
-
 
118
  # Convert pose encoding to extrinsic and intrinsic matrices
119
  print("Converting pose encoding to extrinsic and intrinsic matrices...")
120
  extrinsic, intrinsic = pose_encoding_to_extri_intri(predictions["pose_enc"], images.shape[-2:])
 
73
 
74
  predictions = {}
75
  predictions["images"] = images # (S, 3, H, W)
76
+ print(f"Images shape: {images.shape}")
77
 
78
  frames = []
79
  for i in range(images.shape[0]):
 
115
  print("Depth map shape:", predictions["depth"].shape)
116
  print("Depth confidence shape:", predictions["depth_conf"].shape)
117
  print("Pose encoding shape:", predictions["pose_enc"].shape)
118
+ print(f"Images shape: {images.shape}")
119
+
120
  # Convert pose encoding to extrinsic and intrinsic matrices
121
  print("Converting pose encoding to extrinsic and intrinsic matrices...")
122
  extrinsic, intrinsic = pose_encoding_to_extri_intri(predictions["pose_enc"], images.shape[-2:])