sermanet / OverFeat

Other
597 stars 202 forks source link

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

Open yaoli opened 10 years ago

yaoli commented 10 years ago

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_topclasses(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?