Skip to content

Commit

Permalink
Update default directory from 'data/obj' to 'data/object'
Browse files Browse the repository at this point in the history
The directory setup in this repository has a folder named `object` not `obj`. The name mismatch makes the commands for basic visualization fail.
  • Loading branch information
hadiTab authored Nov 14, 2019
1 parent 9feda2d commit ab6b1b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kitti_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def show_lidar_with_depth(

if save:
data_idx = 0
vely_dir = "data/obj/training/depth_pc"
vely_dir = "data/object/training/depth_pc"
save_filename = os.path.join(vely_dir, "%06d.bin" % (data_idx))
print(save_filename)
# np.save(save_filename+".npy", np.array(depth_pc_velo))
Expand Down Expand Up @@ -462,7 +462,7 @@ def save_depth0(
depth_pc = np.concatenate((pc_velo, depth_pc_velo), axis=0)
print("depth_pc:", depth_pc.shape)

vely_dir = "data/obj/training/depth_pc"
vely_dir = "data/object/training/depth_pc"
save_filename = os.path.join(vely_dir, "%06d.bin" % (data_idx))

depth_pc = depth_pc.astype(np.float32)
Expand All @@ -488,7 +488,7 @@ def save_depth(

print("depth_pc:", depth_pc.shape)

vely_dir = "data/obj/training/depth_pc"
vely_dir = "data/object/training/depth_pc"
save_filename = os.path.join(vely_dir, "%06d.bin" % (data_idx))

depth_pc = depth_pc.astype(np.float32)
Expand Down Expand Up @@ -853,7 +853,7 @@ def read_det_file(det_filename):
"-d",
"--dir",
type=str,
default="data/obj",
default="data/object",
metavar="N",
help="input (default: data/object)",
)
Expand Down

0 comments on commit ab6b1b2

Please sign in to comment.