Open csBob123 opened 4 years ago
@csBob123 Hello. In pytorch/bts_eval.py, there are lines to deal with it:
if args.do_kb_crop: height, width = gt_depth.shape top_margin = int(height - 352) left_margin = int((width - 1216) / 2) pred_depth_uncropped = np.zeros((height, width), dtype=np.float32) pred_depth_uncropped[top_margin:top_margin + 352, left_margin:left_margin + 1216] = pred_depth pred_depth = pred_depth_uncropped
In KITTI benchmark, the provided test images have been cropped to 352 x 1216.
Hi,
I am following your work and thank you very much for your code. I found your code outputs a depth image with the same image size 3521216, but the problem is that if you want to submit your result to KITTI benchmark, you need to keep the same size with the original image(unusually 375 1242 or xx).
Could I get the code for this operation or know how to solve this problem?
Many thanks