Giter VIP home page Giter VIP logo

Comments (7)

pierluigiferrari avatar pierluigiferrari commented on August 12, 2024 1

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.

JaspervDalen avatar JaspervDalen commented on August 12, 2024 1

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.

pierluigiferrari avatar pierluigiferrari commented on August 12, 2024 1

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.

leoluopy avatar leoluopy commented on August 12, 2024 1

solved it by reference to https://www.cnblogs.com/wmr95/p/8715607.html

from caffe_weight_converter.

pierluigiferrari avatar pierluigiferrari commented on August 12, 2024

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.

JaspervDalen avatar JaspervDalen commented on August 12, 2024

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.

AGroupofProbiotocs avatar AGroupofProbiotocs commented on August 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.