Comments (7)
This means there is a problem with your Caffe installation. What you could try next is to load a very basic model like VGG instead of ICnet to see if that works. If your Caffe installation works at all, then that should definitely work. If you can load something like VGG correctly, then the cause of the error above can be narrowed down to the authors of ICnet requiring a specific version of Caffe. Do the authors of ICnet require a specific version of Caffe, or do they maybe even use their own modified version of Caffe? If yes, you will need to install that exact version of Caffe.
from caffe_weight_converter.
It works with VGG and it seems you are right about a specific caffe version. They use a version used by PSP net which uses a modified version of DeepLab2 which explains why it doens't work. Thanks!
from caffe_weight_converter.
You're welcome! It's a pain in the ass with many Caffe models and the custom Caffe versions they require, I've had to deal with that myself several times.
from caffe_weight_converter.
solved it by reference to https://www.cnblogs.com/wmr95/p/8715607.html
from caffe_weight_converter.
Run the following code:
import caffe
prototxt_filename = 'path/to/deploy.prototxt'
caffemodel_filename = 'path/to/weights.caffemodel'
net = caffe.Net(prototxt_filename, 1, weights=caffemodel_filename)
Let me know what happens.
from caffe_weight_converter.
the same error:
net = caffe.Net(prototxt_filename, 1, weights=caffemodel_filename)
[libprotobuf ERROR google/protobuf/text_format.cc:288] Error parsing text-format caffe.NetParameter: 20:16: Message type "caffe.LayerParameter" has no field named "interp_param".
WARNING: Logging before InitGoogleLogging() is written to STDERR
F0307 13:09:07.430896 2308428608 upgrade_proto.cpp:88] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: icnet_cityscapes_bnnomerge.prototxt
*** Check failure stack trace: ***
Abort trap: 6
from caffe_weight_converter.
solved it by reference to https://www.cnblogs.com/wmr95/p/8715607.html
Thank you! It really helps!
from caffe_weight_converter.
Related Issues (16)
- do your models only include the weights or also the architectures? HOT 2
- Convert convolutional layers from Caffe to Keras
- Caffe version compatibility HOT 2
- AttributeError: module 'caffe' has no attribute 'Net'
- Message type "caffe.LayerParameter" has no field named "prior_box_param" HOT 1
- how can convert from prototxt file to python code file? ex: model.py
- ImportError: dynamic module does not define module export function (PyInit__caffe)
- what caffe installation method to use and pycaffe?
- Code not running. How to fix this? HOT 5
- Error-when converting a .caffemodel file to a Keras HOT 3
- model not convertible HOT 6
- 0 layers processed HOT 1
- Batch Norm Caffe to Keras incorrect HOT 1
- ArgumentError in Net.__init__(Net, str, int)
- Runtime died!. Automatically restarting.
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 caffe_weight_converter.