-
Notifications
You must be signed in to change notification settings - Fork 275
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
The difference between running the code in c ++ and python #2
Comments
Hi, I have updated the C++ code. Please try it again. |
Does not work( |
Yes, thats right. Are you sure you are using the latest version? |
I really want to run a neural network, but I do not know what's wrong anymore CONFIG += c++11 TARGET = untitled TEMPLATE = app CONFIG += link_pkgconfig INCLUDEPATH += /usr/local/cuda/targets/x86_64-linux/include INCLUDEPATH += /home/user/lib/caffe/ENet-master/caffe-enet/include LIBS += -L/home/user/lib/caffe/ENet-master/caffe-enet/build/lib LIBS += /usr/lib/x86_64-linux-gnu/libglog.so SOURCES += main.cpp DEFINES += QT_DEPRECATED_WARNINGS |
Do you get an error message or what do you mean by "does not work"? |
Yes, I still have an image as in the first post. |
The problem was the missing argmax layer. I have implemented this function in the script "test_segmentation.cpp". If you are using the old version, you can also add the following to the enet_deploy_final.prototxt.
|
Working! Thank you very much! Thank =) |
Ah, I have missed to adapt this script in this directory. Thanks for pointing this out. I am glad to hear that it works now. |
I tried using the ENet/caffe-enet/examples/ENet_with_C++/test_segmentation.cpp. I am using the following models ENet/prototxts/enet_deploy_final.prototxt I added the "argmx" layer to enet_deploy_final.prototxt. any suggestion? Thank you for your time! |
Hi, I tried to run an example on the python and everything turned out fine. But when I run an example on c ++, the result does not match the declared one.
The console displays:
Processing time = 361 ms
Output_blob (n, c, h, w) = 1, 19, 512, 1024
Processing time on the python is 1800 ms.
If I use weights with Segnet, then I get a fine result, but the speed has not changed.
The text was updated successfully, but these errors were encountered: