Spaces:
Running
on
T4
Running
on
T4
fix typo
Browse files
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}\
|
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],
|