Flow-Guided-Feature-Aggregation icon indicating copy to clipboard operation
Flow-Guided-Feature-Aggregation copied to clipboard

Installation

Open frankpunx opened this issue 6 years ago • 3 comments

Hello guys I'm trying to install FGFA but when I try to clone the MXnet v0.10.0 and execute the "git submodule update" command I get the following error:

Cloning into '/home/ghost/projects/incubator-mxnet/cub'... error: Server does not allow request for unadvertised object 89de7ab20167909bc2c4f8acd397671c47cf3c0d Fetched in submodule path 'cub', but it did not contain 89de7ab20167909bc2c4f8acd397671c47cf3c0d. Direct fetching of that commit failed.

I would appreciate some help, Thanks

frankpunx avatar Mar 20 '18 15:03 frankpunx

Also when I try to compile MXnet I get the following error:

src/operator/custom/./native_op-inl.h:204:36: error: no matching function for call to ‘std::vector<unsigned int*>::push_back(nnvm::dim_t*)’ shapes.push_back(iter->data()); ^ In file included from /usr/include/c++/7.3.0/vector:64:0, from /home/ghost/projects/incubator-mxnet/dmlc-core/include/dmlc/logging.h:13, from src/operator/custom/./native_op-inl.h:10, from src/operator/custom/native_op.cc:7: /usr/include/c++/7.3.0/bits/stl_vector.h:939:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = unsigned int*; _Alloc = std::allocator<unsigned int*>; std::vector<_Tp, _Alloc>::value_type = unsigned int*] push_back(const value_type& __x) ^~~~~~~~~ /usr/include/c++/7.3.0/bits/stl_vector.h:939:7: note: no known conversion for argument 1 from ‘nnvm::dim_t* {aka long int*}’ to ‘unsigned int* const&’ /usr/include/c++/7.3.0/bits/stl_vector.h:953:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = unsigned int*; _Alloc = std::allocator<unsigned int*>; std::vector<_Tp, _Alloc>::value_type = unsigned int*] push_back(value_type&& _x) ^~~~~~~~~ /usr/include/c++/7.3.0/bits/stl_vector.h:953:7: note: no known conversion for argument 1 from ‘nnvm::dim_t* {aka long int*}’ to ‘unsigned int*&&’ src/operator/contrib/proposal.cc: In instantiation of ‘void mxnet::op::ProposalOp::Forward(const mxnet::OpContext&, const std::vectormxnet::TBlob&, const std::vectormxnet::OpReqType&, const std::vectormxnet::TBlob&, const std::vectormxnet::TBlob&) [with xpu = mshadow::cpu]’: src/operator/contrib/proposal.cc:458:1: required from here src/operator/contrib/proposal.cc:329:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (index_t i = 0; i < num_anchors; ++i) { ~~^~~~~~~~~~~~~ src/operator/contrib/proposal.cc:330:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (index_t j = 0; j < height; ++j) { ~~^~~~~~~~ src/operator/contrib/proposal.cc:331:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (index_t k = 0; k < width; ++k) { ~~^~~~~~~ In file included from src/operator/custom/native_op.cc:7:0: src/operator/custom/./native_op-inl.h: In instantiation of ‘void mxnet::op::NativeOp::SyncVec(const std::vectormxnet::TBlob&, const string&, mshadow::Stream<Device>, int) [with xpu = mshadow::cpu; std::__cxx11::string = std::__cxx11::basic_string]’: src/operator/custom/native_op.cc:27:1: required from here src/operator/custom/./native_op-inl.h:146:24: error: invalid const_cast from type ‘const dim_t {aka const long int*}’ to type ‘mxnet::index_t* {aka unsigned int*}’ shapes.push_back(const_cast<index_t*>(vec[i].shape.data())); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:207: build/src/operator/custom/native_op.o] Error 1 make: *** Waiting for unfinished jobs.... In file included from src/operator/custom/ndarray_op.cc:7:0: src/operator/custom/./ndarray_op-inl.h: In member function ‘virtual bool mxnet::op::NDArrayOpProp::InferShape(std::vectornnvm::TShape, std::vectornnvm::TShape, std::vectornnvm::TShape) const’: src/operator/custom/./ndarray_op-inl.h:116:36: error: no matching function for call to ‘std::vector<unsigned int>::push_back(nnvm::dim_t*)’ shapes.push_back(iter->data()); ^ In file included from /usr/include/c++/7.3.0/vector:64:0, from /home/ghost/projects/incubator-mxnet/dmlc-core/include/dmlc/logging.h:13, from src/operator/custom/./ndarray_op-inl.h:10, from src/operator/custom/ndarray_op.cc:7: /usr/include/c++/7.3.0/bits/stl_vector.h:939:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = unsigned int*; _Alloc = std::allocator<unsigned int*>; std::vector<_Tp, _Alloc>::value_type = unsigned int*] push_back(const value_type& __x) ^~~~~~~~~ /usr/include/c++/7.3.0/bits/stl_vector.h:939:7: note: no known conversion for argument 1 from ‘nnvm::dim_t* {aka long int*}’ to ‘unsigned int* const&’ /usr/include/c++/7.3.0/bits/stl_vector.h:953:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = unsigned int*; _Alloc = std::allocator<unsigned int*>; std::vector<_Tp, _Alloc>::value_type = unsigned int*] push_back(value_type&& __x) ^~~~~~~~~ /usr/include/c++/7.3.0/bits/stl_vector.h:953:7: note: no known conversion for argument 1 from ‘nnvm::dim_t* {aka long int*}’ to ‘unsigned int*&&’ make: *** [Makefile:207: build/src/operator/custom/ndarray_op.o] Error 1

Thanks

frankpunx avatar Mar 20 '18 15:03 frankpunx

can you download the pre-model?

wingNine avatar Apr 05 '18 02:04 wingNine

Also when I try to compile MXnet I get the following error:

src/operator/custom/./native_op-inl.h:204:36: error: no matching function for call to ‘std::vector<unsigned int*>::push_back(nnvm::dim_t*)’ shapes.push_back(iter->data()); ^ In file included from /usr/include/c++/7.3.0/vector:64:0, from /home/ghost/projects/incubator-mxnet/dmlc-core/include/dmlc/logging.h:13, from src/operator/custom/./native_op-inl.h:10, from src/operator/custom/native_op.cc:7: /usr/include/c++/7.3.0/bits/stl_vector.h:939:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = unsigned int*; _Alloc = std::allocator<unsigned int*>; std::vector<_Tp, _Alloc>::value_type = unsigned int*] push_back(const value_type& __x) ^~~~~~~~~ /usr/include/c++/7.3.0/bits/stl_vector.h:939:7: note: no known conversion for argument 1 from ‘nnvm::dim_t* {aka long int*}’ to ‘unsigned int* const&’ /usr/include/c++/7.3.0/bits/stl_vector.h:953:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = unsigned int*; _Alloc = std::allocator<unsigned int*>; std::vector<_Tp, _Alloc>::value_type = unsigned int*] push_back(value_type&& x) ^~~~~~~~~ /usr/include/c++/7.3.0/bits/stl_vector.h:953:7: note: no known conversion for argument 1 from ‘nnvm::dim_t* {aka long int*}’ to ‘unsigned int*&&’ src/operator/contrib/proposal.cc: In instantiation of ‘void mxnet::op::ProposalOp::Forward(const mxnet::OpContext&, const std::vectormxnet::TBlob&, const std::vectormxnet::OpReqType&, const std::vectormxnet::TBlob&, const std::vectormxnet::TBlob&) [with xpu = mshadow::cpu]’: src/operator/contrib/proposal.cc:458:1: required from here src/operator/contrib/proposal.cc:329:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (index_t i = 0; i < num_anchors; ++i) { ~~^~~~~~~~~~~~~ src/operator/contrib/proposal.cc:330:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (index_t j = 0; j < height; ++j) { ~~^~~~~~~~ src/operator/contrib/proposal.cc:331:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (index_t k = 0; k < width; ++k) { ~~^~~~~~~ In file included from src/operator/custom/native_op.cc:7:0: src/operator/custom/./native_op-inl.h: In instantiation of ‘void mxnet::op::NativeOp::SyncVec(const std::vectormxnet::TBlob&, const string&, mshadow::Stream, int) [with xpu = mshadow::cpu; std::cxx11::string = std::cxx11::basic_string]’: src/operator/custom/native_op.cc:27:1: required from here src/operator/custom/./native_op-inl.h:146:24: error: invalid const_cast from type ‘const dim_t {aka const long int*}’ to type ‘mxnet::index_t* {aka unsigned int*}’ shapes.push_back(const_cast<index_t*>(vec[i].shape.data())); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:207: build/src/operator/custom/native_op.o] Error 1 make: *** Waiting for unfinished jobs.... In file included from src/operator/custom/ndarray_op.cc:7:0: src/operator/custom/./ndarray_op-inl.h: In member function ‘virtual bool mxnet::op::NDArrayOpProp::InferShape(std::vectornnvm::TShape, std::vectornnvm::TShape, std::vectornnvm::TShape) const’: src/operator/custom/./ndarray_op-inl.h:116:36: error: no matching function for call to ‘std::vector::push_back(nnvm::dim_t*)’ shapes.push_back(iter->data()); ^ In file included from /usr/include/c++/7.3.0/vector:64:0, from /home/ghost/projects/incubator-mxnet/dmlc-core/include/dmlc/logging.h:13, from src/operator/custom/./ndarray_op-inl.h:10, from src/operator/custom/ndarray_op.cc:7: /usr/include/c++/7.3.0/bits/stl_vector.h:939:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = unsigned int*; _Alloc = std::allocator<unsigned int*>; std::vector<_Tp, _Alloc>::value_type = unsigned int*] push_back(const value_type& __x) ^~~~~~~~~ /usr/include/c++/7.3.0/bits/stl_vector.h:939:7: note: no known conversion for argument 1 from ‘nnvm::dim_t* {aka long int*}’ to ‘unsigned int* const&’ /usr/include/c++/7.3.0/bits/stl_vector.h:953:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = unsigned int*; _Alloc = std::allocator<unsigned int*>; std::vector<_Tp, _Alloc>::value_type = unsigned int*] push_back(value_type&& __x) ^~~~~~~~~ /usr/include/c++/7.3.0/bits/stl_vector.h:953:7: note: no known conversion for argument 1 from ‘nnvm::dim_t* {aka long int*}’ to ‘unsigned int*&&’ make: *** [Makefile:207: build/src/operator/custom/ndarray_op.o] Error 1

Thanks

I'm facing the same issue, have you solved it yet?

dljrichard avatar May 05 '19 08:05 dljrichard