Coder Social home page Coder Social logo

Issues with caffe.managed about caffe HOT 3 CLOSED

microsoft avatar microsoft commented on July 19, 2024
Issues with caffe.managed

from caffe.

Comments (3)

leizhangcn avatar leizhangcn commented on July 19, 2024

From the message, it is not clear where the problem is. Can you share your example code or project so that I can take a look?

from caffe.

kg1980 avatar kg1980 commented on July 19, 2024

Thanks for the quick response.
My test project is attached (it's a zip file).
The program is not doing much, but it crashes when I get into the function Run()
I am copying manually all the dll from D:\Caffe\Build\x64\Debug to the program build folder.

Test.gz

image

from caffe.

leizhangcn avatar leizhangcn commented on July 19, 2024

I checked your sample code. The code itself has no problem. Suppose you have copied all the dlls from the caffe build folder to the program build folder, the test program can run without problems. I didn't meet the problem as you described.

One thing you need to pay attention is that the current managed lib requires the input layer in net prototxt to be MemoryData, as shown below:

layer {
  name: "data"
  type: "MemoryData"
  top: "data"
  top: "label"
  memory_data_param 
  {
    batch_size: 1
    channels: 3
    height: 256
    width: 256
  }
  transform_param 
  {
    crop_size: 227
    mirror: false
    mean_file: "imagenet_mean.binaryproto"
  }
}

Note that to let Caffe find the mean_file, you need to change the working directory before calling the constructor, or provide an absolute path for mean_file.

We have fixed this problem in an internal version, but haven't updated here. You can try this MemoryData input first, or wait after we update the managed lib to support the standard deploy prototxt.

from caffe.

Related Issues (20)

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.