Closed hector6298 closed 1 year ago
Why is this filtering entire ids?
for i in unique_ids: frame_min = np.min(mtsc[mtsc['id'].values == i]['frame'].values) frame_max = np.max(mtsc[mtsc['id'].values == i]['frame'].values) mtsc['ybot'] = (mtsc['ymin'].values + mtsc['height'].values) mtsc['xbot'] = (mtsc['xmin'].values + (mtsc['width'].values / 2)).astype(int) initial_pos = np.asarray( [mtsc[(mtsc['id'].values == i) & (mtsc['frame'].values == frame_min)]['ybot'].values[0], mtsc[(mtsc['id'].values == i) & (mtsc['frame'].values == frame_min)]['xbot'].values[0]]) final_pos = np.asarray( [mtsc[(mtsc['id'].values == i) & (mtsc['frame'].values == frame_max)]['ybot'].values[0], mtsc[(mtsc['id'].values == i) & (mtsc['frame'].values == frame_max)]['xbot'].values[0]]) initial_roi = roi[int(initial_pos[0]), int(initial_pos[1])] final_roi = roi[int(final_pos[0]), int(final_pos[1])] if initial_roi == 0 or final_roi == 0: mtsc = mtsc[mtsc['id'] != i]
How is the provided ground truth file generated?
check if there are entire ids being eliminated by this script
Why is this filtering entire ids?