jinlinyi commited on
Commit
f8b4072
1 Parent(s): 30f88b5
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -139,7 +139,7 @@ def inference(img, model_type):
139
  pred['pred_rel_cx'].cpu().item(),
140
  pred['pred_rel_cy'].cpu().item(),
141
  ]
142
- param = f"roll {pred['pred_roll'].cpu().item() :.2f}\npitch {pred['pred_pitch'].cpu().item() :.2f}\nvirtical fov {pred['pred_general_vfov'].cpu().item() :.2f}\nfocal_length {pred['pred_rel_focal'].cpu().item()*img_h :.2f}\n"
143
  param += f"principal point {pred['pred_rel_cx'].cpu().item() :.2f} {pred['pred_rel_cy'].cpu().item() :.2f}"
144
  pred_vis = draw_from_r_p_f_cx_cy(
145
  img[:,:,::-1],
 
139
  pred['pred_rel_cx'].cpu().item(),
140
  pred['pred_rel_cy'].cpu().item(),
141
  ]
142
+ param = f"roll {pred['pred_roll'].cpu().item() :.2f}\npitch {pred['pred_pitch'].cpu().item() :.2f}\nvertical fov {pred['pred_general_vfov'].cpu().item() :.2f}\nfocal_length {pred['pred_rel_focal'].cpu().item()*img_h :.2f}\n"
143
  param += f"principal point {pred['pred_rel_cx'].cpu().item() :.2f} {pred['pred_rel_cy'].cpu().item() :.2f}"
144
  pred_vis = draw_from_r_p_f_cx_cy(
145
  img[:,:,::-1],