Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample_Idx is not being genertated #25

Open
sharmasushil opened this issue Oct 8, 2024 · 3 comments
Open

Sample_Idx is not being genertated #25

sharmasushil opened this issue Oct 8, 2024 · 3 comments

Comments

@sharmasushil
Copy link

sharmasushil commented Oct 8, 2024

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

@alfredgu001324
Copy link
Owner

Uhmmm you mean that in the mapping_results.pickle there is no such key named 'sample_idx'?

@sharmasushil
Copy link
Author

Yes, there is no such key named sample_idx

and give me an
Traceback (most recent call last): File "adaptor.py", line 430, in <module> main(args) File "adaptor.py", line 246, in main sample_token = map_data[i]['pts_bbox']['sample_idx'] KeyError: 'sample_idx'

and another also occurs predicted map is not found.

Please advice me.

Thanks

@alfredgu001324
Copy link
Owner

If this is not found, then probably the evaluation is not done correctly. You can refer to this reply: #24 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants