MapUncertaintyPrediction icon indicating copy to clipboard operation
MapUncertaintyPrediction copied to clipboard

Sample_Idx is not being genertated

Open sharmasushil opened this issue 4 months ago • 3 comments

Hi there,

When we try to run the command:

python adaptor_vis.py --data_path ../trj_data/maptr

we encounter an error indicating that there are no sample_idx keys.

Find the below code:

if args.map_model == "MapTR":
            #sample_token = map_data[i].get('pts_bbox', {}).get('sample_idx', None)
            sample_token = map_data[i]['pts_bbox']['sample_idx']
        elif args.map_model == "StreamMapNet":
            sample_token = map_data[i]['token']
        print(sample_token,'hhfahfashfjskhfsdfhkjh')
        try:
            idx = sample_to_idx[sample_token]
        except:
            continue
        print(map_data.key())

Please let me know how to solve this issue.

Thanks a million

sharmasushil avatar Oct 08 '24 15:10 sharmasushil