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

Error when calibrating larcc subset #651

Closed
danifpdra opened this issue Oct 18, 2023 · 4 comments
Closed

Error when calibrating larcc subset #651

danifpdra opened this issue Oct 18, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@danifpdra
Copy link
Collaborator

Got the following error when running

rosrun atom_calibration calibrate -json /home/daniela/datasets/larcc_subset/train_real/dataset_corrected.json -v -uic

Traceback (most recent call last):
  File "/home/daniela/catkin_ws/devel/lib/atom_calibration/calibrate", line 15, in <module>
    exec(compile(fh.read(), python_script, 'exec'), context)
  File "/home/daniela/catkin_ws/src/calibration/atom/atom_calibration/scripts/calibrate", line 497, in <module>
    main()
  File "/home/daniela/catkin_ws/src/calibration/atom/atom_calibration/scripts/calibrate", line 441, in main
    residuals = objectiveFunction(opt.data_models)
  File "/home/daniela/catkin_ws/src/calibration/atom/atom_calibration/src/atom_calibration/calibration/objective_function.py", line 692, in objectiveFunction
    m_pt = np.reshape(detected_limit_points_in_pattern[0:2, idx], (1, 2))
IndexError: index 347 is out of bounds for axis 1 with size 345

I will investigate...

@danifpdra danifpdra added the bug Something isn't working label Oct 18, 2023
@danifpdra danifpdra self-assigned this Oct 18, 2023
@danifpdra danifpdra added this to To do in Ongoing work on General Calibration via automation Oct 18, 2023
@danifpdra
Copy link
Collaborator Author

I think I know the problem, can you zoom @miguelriemoliveira ?

@danifpdra
Copy link
Collaborator Author

The manual labeler was not deleting indexes with NaN values... Hence this problem #644 (comment) and the error I was getting... The calibrate script uses the length of the index points to create the samples and it wasn't able to understand that some of those indexes weren't supposed to be used because their value in the image was NaN... It uses just the length of that list blindly. Anyway this problem was in the labeler part after all and it's now solved

@miguelriemoliveira
Copy link
Member

Hi @danifpdra ,

sorry, only now I am going through the emails. Great that its solved. Can we close it?

@miguelriemoliveira
Copy link
Member

@danifpdra , you never remember to close the issues ... do you have a problem with closing stuff? Are you from Braga :-) ?

Ongoing work on General Calibration automation moved this from To do to Done Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants