-
Notifications
You must be signed in to change notification settings - Fork 194
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
I think there is something wrong with GCNextractor.cc? I hope you can solve this problem #26
Comments
I also had this problem... |
My bad. There was a typo I made at GCNv2_SLAM/src/GCNextractor.cc Line 262 in 63c309e
|
@jiexiong2016 I had successfully run your program , it looks pretty good, I can run it realtime on my laptop! Do you consider release a ROS version ? |
Hi,I try again.But there are new problems. I installed it with 【sudo pip3 install torch torchvision】. Do I need to install libtouch again? |
I think this is related to the installation of libtorch. Check #2 for more details. I would recommend simply build the libtorch locally using the master branch. |
@iamwangyabin @jiexiong2016 I successfully ran the following three steps Git clone -- recursive - b v1.0.1 https://github.com/pytorch/pytorch CD pytorch && mkdir build && CD build Python.. / tools/build_libtorch. Py But it still reported an error. Torch version shows 1.0.0 |
I did download pytorch 1.1.0. |
hello I have met the same problem, can u remember how did u solve it? |
[ 17%] Building CXX object CMakeFiles/ORB_SLAM2.dir/src/Optimizer.cc.o
/home/tang/GCNv2_SLAM/src/GCNextractor.cc:262:11: error: #elif with no expression
/home/tang/GCNv2_SLAM/src/GCNextractor.cc: In function ‘void ORB_SLAM2::nms(cv::Mat, cv::Mat, std::vectorcv::KeyPoint&, cv::Mat&, int, int, int, int, float, float)’:
/home/tang/GCNv2_SLAM/src/GCNextractor.cc:96:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < pts_raw.size(); i++)
^
/home/tang/GCNv2_SLAM/src/GCNextractor.cc:107:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < pts_raw.size(); i++)
^
/home/tang/GCNv2_SLAM/src/GCNextractor.cc:148:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0; i<select_indice.size(); i++)
^
/home/tang/GCNv2_SLAM/src/GCNextractor.cc: In member function ‘void ORB_SLAM2::GCNextractor::operator()(cv::InputArray, cv::InputArray, std::vectorcv::KeyPoint&, cv::OutputArray)’:
/home/tang/GCNv2_SLAM/src/GCNextractor.cc:269:22: error: ‘img_var’ was not declared in this scope
inputs.push_back(img_var);
^
CMakeFiles/ORB_SLAM2.dir/build.make:127: recipe for target 'CMakeFiles/ORB_SLAM2.dir/src/GCNextractor.cc.o' failed
make[2]: *** [CMakeFiles/ORB_SLAM2.dir/src/GCNextractor.cc.o] Error 1
make[2]: *** 正在等待未完成的任务....
CMakeFiles/Makefile2:109: recipe for target 'CMakeFiles/ORB_SLAM2.dir/all' failed
make[1]: *** [CMakeFiles/ORB_SLAM2.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
GCNextractor.txt
The text was updated successfully, but these errors were encountered: