Skip to content
This repository was archived by the owner on Apr 2, 2020. It is now read-only.
This repository was archived by the owner on Apr 2, 2020. It is now read-only.

torch2caffe.lua unknown Torch class <DenseCapModel> #27

@ProGamerGov

Description

@ProGamerGov

When trying to convert a Torch7 model to a caffemodel format, I get the following error:

ubuntu@ip-Address:~/fb-caffe-exts$ th torch2caffe/torch2caffe.lua --input densecap-pretrained-vgg16.t7 --caffemodel densecap-pretrained-vgg16.caffemodel --prototxt densecap-pretrained-vgg16.prototxt
libdc1394 error: Failed to initialize libdc1394
libdc1394 error: Failed to initialize libdc1394
libdc1394 error: Failed to initialize libdc1394
libdc1394 error: Failed to initialize libdc1394
libdc1394 error: Failed to initialize libdc1394
libdc1394 error: Failed to initialize libdc1394
libdc1394 error: Failed to initialize libdc1394
libdc1394 error: Failed to initialize libdc1394
libdc1394 error: Failed to initialize libdc1394
libdc1394 error: Failed to initialize libdc1394
Opts: {
  prototxt = "densecap-pretrained-vgg16.prototxt",
  format = "lua",
  input = "densecap-pretrained-vgg16.t7",
  caffemodel = "densecap-pretrained-vgg16.caffemodel",
  preprocessing = "",
  input_dims = {
    0
  },
  verify = "",
  input_tensor = ""
}
/home/ubuntu/torch/install/bin/luajit: /home/ubuntu/torch/install/share/lua/5.1/torch/File.lua:343: unknown Torch class <DenseCapModel>
stack traceback:
        [C]: in function 'error'
        /home/ubuntu/torch/install/share/lua/5.1/torch/File.lua:343: in function 'readObject'
        /home/ubuntu/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject'
        /home/ubuntu/torch/install/share/lua/5.1/torch/File.lua:409: in function 'load'
        ./torch2caffe/lib.lua:185: in function 'main'
        torch2caffe/torch2caffe.lua:23: in main chunk
        [C]: in function 'dofile'
        ...untu/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
        [C]: at 0x00406670
ubuntu@ip-Address:~/fb-caffe-exts$

I am trying to convert a model from this repository: https://github.com/jcjohnson/densecap

Direct download link to the model: http://cs.stanford.edu/people/jcjohns/densecap/densecap-pretrained-vgg16.t7.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions