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

custom Segmention #233

Open
taurus12079 opened this issue Jul 9, 2024 · 5 comments
Open

custom Segmention #233

taurus12079 opened this issue Jul 9, 2024 · 5 comments

Comments

@taurus12079
Copy link

jetson Segmention examle is work but my custom model is faild
how to modify CLASS_NAMES and COLORS and postprocess parameters in main.cpp

@triple-Mu
Copy link
Owner

triple-Mu commented Jul 17, 2024

CLASS_NAMES should be a vector of string which is equal to label id.
COLORS means the box color when visualize.

@taurus12079
Copy link
Author

I dont know why examlpe can work but mustom model faild
i use jetson orin agx jetpack5.1.2

terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(4.5.4) /home/ubuntu/build_opencv/opencv/modules/core/src/matrix.cpp:1194: error: (-15:Bad number of channels) The total width is not divisible by the new number of channels in function 'reshape'
Aborted (core dumped)

@triple-Mu
Copy link
Owner

I dont know why examlpe can work but mustom model faild i use jetson orin agx jetpack5.1.2

terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(4.5.4) /home/ubuntu/build_opencv/opencv/modules/core/src/matrix.cpp:1194: error: (-15:Bad number of channels) The total width is not divisible by the new number of channels in function 'reshape' Aborted (core dumped)

Do you modify the CLASS_NAMES (it's size should be the same as your model)

@taurus12079
Copy link
Author

yes I use one class_names as my model

@He-Yingchao
Copy link

I dont know why examlpe can work but mustom model faild i use jetson orin agx jetpack5.1.2

terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(4.5.4) /home/ubuntu/build_opencv/opencv/modules/core/src/matrix.cpp:1194: error: (-15:Bad number of channels) The total width is not divisible by the new number of channels in function 'reshape' Aborted (core dumped)

I had the same problem as you when deploying to Jetson, did you solve it?

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

3 participants