OverFeat icon indicating copy to clipboard operation
OverFeat copied to clipboard

try to compile python API, which requires recompile overfeat core, that failed.

Open yaoli opened this issue 11 years ago • 0 comments

Hi,

First of all thanks for releasing codes for OverFeat (https://github.com/sermanet/OverFeat). But there's a problem when I try to compile it in /src folder. I think some files are missing.

g++ -c -fopenmp -O3 -fPIC -Iif [ ! -d "data/default" ]; then echo "../data/default"; else echo "data/default"; fi overfeat.cpp -o overfeat.o overfeat.cpp:55:21: error: net_init.hpp: No such file or directory overfeat.cpp:109:22: error: net_fprop.hpp: No such file or directory overfeat.cpp: In function 'void overfeat::init(const std::string&, int)': overfeat.cpp:59: error: 'outputs' was not declared in this scope overfeat.cpp:59: error: 'nModules' was not declared in this scope overfeat.cpp:60: error: 'weights' was not declared in this scope overfeat.cpp:61: error: 'bias' was not declared in this scope overfeat.cpp:64: error: 'init1' was not declared in this scope overfeat.cpp: In function 'void overfeat::free()': overfeat.cpp:68: error: 'nModules' was not declared in this scope overfeat.cpp:69: error: 'outputs' was not declared in this scope overfeat.cpp:71: error: 'weights' was not declared in this scope overfeat.cpp:73: error: 'bias' was not declared in this scope overfeat.cpp: In function 'int overfeat::get_n_layers()': overfeat.cpp:83: error: 'nModules' was not declared in this scope overfeat.cpp: In function 'THTensor* overfeat::get_output(int)': overfeat.cpp:87: error: 'nModules' was not declared in this scope overfeat.cpp:88: error: 'outputs' was not declared in this scope overfeat.cpp: In function 'std::string overfeat::get_class_name(int)': overfeat.cpp:92: error: 'nClasses' was not declared in this scope overfeat.cpp:93: error: 'class_names' was not declared in this scope overfeat.cpp: In function 'std::vector<std::pair<std::basic_string<char, std::char_traits, std::allocator >, float>, std::allocator<std::pair<std::basic_string<char, std::char_traits, std::allocator >, float> > > overfeat::get_top_classes(THTensor_, int)': overfeat.cpp:98: error: 'nClasses' was not declared in this scope overfeat.cpp: In function 'THTensor_ overfeat::fprop(THTensor_)': overfeat.cpp:111: error: 'fprop1' was not declared in this scope make[1]: *_* [lib] Error 1 make[1]: Leaving directory `/home/yaoli/tools/OverFeat/src' make: *** [all] Error 2

Could you please kindly help me out?

yaoli avatar Aug 10 '14 02:08 yaoli