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

How to use Deep features? #4

Closed
nvnnghia opened this issue Dec 19, 2017 · 10 comments
Closed

How to use Deep features? #4

nvnnghia opened this issue Dec 19, 2017 · 10 comments

Comments

@nvnnghia
Copy link

Thanks for sharing the code. I am currently trying to use Deep features instead of FHOG features. can you give some suggestion how to do that? Thank you very much.

@nvnnghia
Copy link
Author

Hi, Thank you very much for response. I tried to compile with macro "UDL", i.e, I uncomment #define UDL (https://github.com/oylz/DS/blob/master/NT.cpp#L3). But I get this error:
/tmp/ccIa7taA.o: In function NT::Init()': NT.cpp:(.text+0x9d9): undefined reference to FeatureGetter::self_'
NT.cpp:(.text+0x9f9): undefined reference to FeatureGetter::self_' NT.cpp:(.text+0xa10): undefined reference to FeatureGetter::Init()'
NT.cpp:(.text+0xaed): undefined reference to FeatureGetter::self_' NT.cpp:(.text+0xb07): undefined reference to FeatureGetter::self_'
NT.cpp:(.text+0xb27): undefined reference to FeatureGetter::self_' NT.cpp:(.text+0xb31): undefined reference to FeatureGetter::self_'
NT.cpp:(.text+0xb49): undefined reference to FeatureGetter::self_' /tmp/ccIa7taA.o:NT.cpp:(.text+0xb50): more undefined references to FeatureGetter::self_' follow
/tmp/ccIa7taA.o: In function ExtractFeature(cv::Mat const&, std::vector<cv::Rect_<int>, std::allocator<cv::Rect_<int> > > const&, std::vector<Eigen::Matrix<float, 1, 128, 1, 1, 128>, std::allocator<Eigen::Matrix<float, 1, 128, 1, 1, 128> > >&)': NT.cpp:(.text+0x2739): undefined reference to FeatureGetter::Get(cv::Mat const&, std::vector<cv::Rect_, std::allocator<cv::Rect_ > > const&, std::vector<Eigen::Matrix<float, 1, 128, 1, 1, 128>, std::allocator<Eigen::Matrix<float, 1, 128, 1, 1, 128> > >&)'
NT.cpp:(.text+0x287e): undefined reference to FeatureGetter::self_' NT.cpp:(.text+0x2894): undefined reference to FeatureGetter::self_'
NT.cpp:(.text+0x28b4): undefined reference to FeatureGetter::self_' NT.cpp:(.text+0x28be): undefined reference to FeatureGetter::self_'
NT.cpp:(.text+0x28de): undefined reference to FeatureGetter::self_' /tmp/ccIa7taA.o:NT.cpp:(.text+0x28e5): more undefined references to FeatureGetter::self_' follow
collect2: error: ld returned 1 exit status

I do not know what I did wrong. Please help, Thank you

@oylz
Copy link
Owner

oylz commented Dec 19, 2017

FeatureGetter(https://github.com/oylz/DS/tree/master/deepsort/FeatureGetter) is a single library.
you may first to build it, and then link it in DS.

@nvnnghia
Copy link
Author

Thank you very much. I'll try

@nvnnghia
Copy link
Author

Hi, I've finished to build FeatureGetter, the problem is that there is no tt1.pb file, therefore, the program can not run. Can you please share the tt1.pb file or how can I get that file. Thank you very much.

ReadBinaryProto failed: Not found: ./data/tt1.pb; No such file or directory

@oylz
Copy link
Owner

oylz commented Dec 24, 2017

@nvnnghia I have add it now.(https://github.com/oylz/DS/tree/master/data)

@nvnnghia
Copy link
Author

nvnnghia commented Dec 25, 2017

Update: I have sucessfully used Deep features. Thank you very much!

Thank you very much. I still can not use Deep features. When I compile without macro "UDL" the program work perfectly. If I using macro "UDL" the program can not use imread or imshow. Compile sucessfully, but when I run the program I met this error:
OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cvtColor, file /home/nghia/opencv/modules/imgproc/src/color.cpp, line 10638
terminate called after throwing an instance of 'cv::Exception'
what(): /home/nghia/opencv/modules/imgproc/src/color.cpp:10638: error: (-215) scn == 3 || scn == 4 in function cvtColor

./script.sh: line 1: 23439 Aborted (core dumped) .

I figured out that the problem is from imread. The imread work uncorrectly in this case. It can not read any image. I do not know why this can happen.

@nvnnghia
Copy link
Author


@oylz
Copy link
Owner

oylz commented Dec 25, 2017

Have you compile opencv with gtk2?
If your are in Ubuntu, you can install it by then command apt install libgtk2.0-dev,
and then build&install opencv agian.

@nvnnghia
Copy link
Author

Everything is good now. thank you very much

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