Comments (11)
WARNING: Logging before InitGoogleLogging() is written to STDERR
W1015 14:55:23.350572 23601 _caffe.cpp:139] DEPRECATION WARNING - deprecated use of Python interface
W1015 14:55:23.350613 23601 _caffe.cpp:140] Use this instead (with the named "weights" parameter):
W1015 14:55:23.350615 23601 _caffe.cpp:142] Net('demo.txt', 1, weights='../models/suncg_ft_nyu.caffemodel')
[libprotobuf ERROR google/protobuf/text_format.cc:298] Error parsing text-format caffe.NetParameter: 7:20: Message type "caffe.LayerParameter" has no field named "suncg_data_param".
F1015 14:55:23.351655 23601 upgrade_proto.cpp:88] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: demo.txt
*** Check failure stack trace: ***
Aborted (core dumped)
from cnn.
#include <opencv2/core/core.hpp>
^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:583: recipe for target 'build_master_release/src/caffe/data_transformer.o' failed
make: *** [build_master_release/src/caffe/data_transformer.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from src/caffe/solvers/sgd_solver.cpp:5:0:
./include/caffe/util/hdf5.hpp:6:10: fatal error: hdf5.h: No such file or directory
#include "hdf5.h"
^~~~~~~~
compilation terminated.
Makefile:583: recipe for target 'build_master_release/src/caffe/solvers/sgd_solver.o' failed
make: *** [build_master_release/src/caffe/solvers/sgd_solver.o] Error 1
from cnn.
Lucky! I solved the second problem!
The lib names of hdf5 on debian have a postfix "serial", therefore -lhdf5 and -lhdf5_hl cannot be found.
To solve it, I created two symbolics:
cd /usr/lib/x86_64-linux-gnu
sudo ln -s libhdf5_serial.so.8.0.2 libhdf5.so
sudo ln -s libhdf5_serial_hl.so.8.0.2 libhdf5_hl.so
from cnn.
sudo ln -s libhdf5_serial.so.100.0.1 libhdf5.so
sudo ln -s libhdf5_serial_hl.so.100 libhdf5_hl.so
from cnn.
src/caffe/data_transformer.cpp:2:10: fatal error: opencv2/core/core.hpp: No such file or directory
#include <opencv2/core/core.hpp>
^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:583: recipe for target 'build_master_release/src/caffe/data_transformer.o' failed
make: *** [build_master_release/src/caffe/data_transformer.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from src/caffe/util/hdf5.cpp:1:0:
./include/caffe/util/hdf5.hpp:6:10: fatal error: hdf5.h: No such file or directory
#include "hdf5.h"
^~~~~~~~
compilation terminated.
Makefile:583: recipe for target 'build_master_release/src/caffe/util/hdf5.o' failed
make: *** [build_master_release/src/caffe/util/hdf5.o] Error 1
In file included from src/caffe/util/db_lmdb.cpp:2:0:
./include/caffe/util/db_lmdb.hpp:8:10: fatal error: lmdb.h: No such file or directory
#include "lmdb.h"
^~~~~~~~
compilation terminated.
Makefile:583: recipe for target 'build_master_release/src/caffe/util/db_lmdb.o' failed
make: *** [build_master_release/src/caffe/util/db_lmdb.o] Error 1
src/caffe/util/io.cpp:6:10: fatal error: opencv2/core/core.hpp: No such file or directory
#include <opencv2/core/core.hpp>
^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:583: recipe for target 'build_master_release/src/caffe/util/io.o' failed
make: *** [build_master_release/src/caffe/util/io.o] Error 1
In file included from src/caffe/util/db.cpp:2:0:
./include/caffe/util/db_leveldb.hpp:7:10: fatal error: leveldb/db.h: No such file or directory
#include "leveldb/db.h"
^~~~~~~~~~~~~~
compilation terminated.
Makefile:583: recipe for target 'build_master_release/src/caffe/util/db.o' failed
make: *** [build_master_release/src/caffe/util/db.o] Error 1
In file included from src/caffe/solvers/sgd_solver.cpp:5:0:
./include/caffe/util/hdf5.hpp:6:10: fatal error: hdf5.h: No such file or directory
#include "hdf5.h"
^~~~~~~~
compilation terminated.
Makefile:583: recipe for target 'build_master_release/src/caffe/solvers/sgd_solver.o' failed
make: *** [build_master_release/src/caffe/solvers/sgd_solver.o] Error 1
from cnn.
apt-get install libopencv-dev
from cnn.
sudo apt-get install libhdf5-serial-dev
doesn't work
from cnn.
https://blog.csdn.net/xue_wenyuan/article/details/52037121
fixed fatal error: hdf5.h: No such file or directory
from cnn.
Error compiling caffe. leveldb/db.h missing
sudo apt-get install libleveldb-dev
from cnn.
sudo apt-get install libgflags-dev libgoogle-glog-dev liblmdb-dev
from cnn.
python3 demotest_model.py
WARNING: Logging before InitGoogleLogging() is written to STDERR
W1015 16:03:32.025240 39277 _caffe.cpp:139] DEPRECATION WARNING - deprecated use of Python interface
W1015 16:03:32.025285 39277 _caffe.cpp:140] Use this instead (with the named "weights" parameter):
W1015 16:03:32.025286 39277 _caffe.cpp:142] Net('demo.txt', 1, weights='../models/suncg_ft_nyu.caffemodel')
[libprotobuf ERROR google/protobuf/text_format.cc:298] Error parsing text-format caffe.NetParameter: 7:20: Message type "caffe.LayerParameter" has no field named "suncg_data_param".
F1015 16:03:32.026356 39277 upgrade_proto.cpp:88] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: demo.txt
*** Check failure stack trace: ***
Aborted (core dumped)
from cnn.
Related Issues (9)
- Initializations HOT 5
- gpu_set_up HOT 9
- render_blender HOT 3
- python version HOT 7
- AmazonS3 boto3 HOT 4
- Amazon Sagemaker HOT 1
- PoseCNN HOT 1
- gazebo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cnn.