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

raise AttributeError #4

Open
WLXM0922 opened this issue May 21, 2024 · 6 comments
Open

raise AttributeError #4

WLXM0922 opened this issue May 21, 2024 · 6 comments

Comments

@WLXM0922
Copy link

Hello, when I run the "test_place_recognition.py" program for the first time, I want to generate the "negative_pairs.pkl" file.
However, when calling the function "sample_negative_pairs" in the file "utils/dataset.py", the code is "_, _, train _ test _ pose, _ = pair _ dataset. Get _ train _ test (train _ idx, test _ idx)".
The prompt is as follows: the object "pair_dataset" has no attribute "get_train_test", which leads to "raise AttributeError" error.
But why click on "pair_dataset" will show that it has two attributes: "processed_dir" and "get_train_test".
Why is this happening? I would appreciate it if someone could answer my questions.

@lbhqw
Copy link

lbhqw commented Jun 6, 2024

how do you slove it?

@WLXM0922
Copy link
Author

WLXM0922 commented Jun 6, 2024

The file "test_place_recognition.py" contains the code for generating negative point pairs, but it is commented out.

@lbhqw
Copy link

lbhqw commented Jun 6, 2024

Thank you very much. I just found out. I tested the model and the results were not very good.

@WLXM0922
Copy link
Author

WLXM0922 commented Jun 6, 2024

These two test codes have many results. When you run the result graph, you need to cross it, and it will continue to produce the following results until all the point pairs are matched.

@lbhqw
Copy link

lbhqw commented Jun 6, 2024

Yes, I tried it, and I found 132 sets of results, how do you judge whether it's a good match, is it the best set of results

@WLXM0922
Copy link
Author

Yes, I tried it, and I found 132 sets of results, how do you judge whether it's a good match, is it the best set of results

Hello, the best result of my location identification program is "mean error of 504 pairs = 22.70m", and then the best result of my feature matching program is "mean error of 20 pairs = 8.746m". What about you?

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