2727def check_flow (
2828 data_dir : str = "/home/kin/data/av2/preprocess/sensor/mini" ,
2929 res_name : str = "flow" , # "flow", "flow_est"
30- start_id : int = - 1 ,
30+ start_id : int = 0 ,
3131 point_size : float = 3.0 ,
3232):
3333 dataset = HDF5Data (data_dir , vis_name = res_name , flow_view = True )
@@ -37,10 +37,7 @@ def check_flow(
3737 opt .background_color = np .asarray ([80 / 255 , 90 / 255 , 110 / 255 ])
3838 opt .point_size = point_size
3939
40- for data_id in (pbar := tqdm (range (0 , len (dataset )))):
41- # for easy stop and jump to any id, and save same id always from 0.
42- if data_id < start_id and start_id != - 1 :
43- continue
40+ for data_id in (pbar := tqdm (range (start_id , len (dataset )))):
4441 data = dataset [data_id ]
4542 now_scene_id = data ['scene_id' ]
4643 pbar .set_description (f"id: { data_id } , scene_id: { now_scene_id } , timestamp: { data ['timestamp' ]} " )
@@ -77,10 +74,7 @@ def vis(
7774 # opt.background_color = np.asarray([1, 1, 1])
7875 opt .point_size = point_size
7976
80- for data_id in (pbar := tqdm (range (0 , len (dataset )))):
81- # for easy stop and jump to any id, and save same id always from 0.
82- if data_id < start_id and start_id != - 1 :
83- continue
77+ for data_id in (pbar := tqdm (range (start_id , len (dataset )))):
8478 data = dataset [data_id ]
8579 now_scene_id = data ['scene_id' ]
8680 pbar .set_description (f"id: { data_id } , scene_id: { now_scene_id } , timestamp: { data ['timestamp' ]} " )
0 commit comments