draw_net generates empty output_image

474 views
Skip to first unread message

Thomas

unread,
Apr 22, 2015, 2:04:05 AM4/22/15
to caffe...@googlegroups.com
Hi 

I just installed caffe with python on my mac (OS X Yosemit 10.10.3).
The following prototxt file generates an empty output image with draw_net.py on my mac

name: "train_test"
layers
{
  name
: "test_layer"
  type
: DATA
  top
: "input_data"
  top
: "label"
  data_param
{
    source
: "/my_data_lmdb"
 
}
  include
: { phase: TRAIN }  
}


Any idea why? It works fine with other examples like ./examples/siamese/mnist_siamese.prototxt
Thanks for the help.

Bartosz Ludwiczuk

unread,
Apr 22, 2015, 4:39:37 AM4/22/15
to caffe...@googlegroups.com
It it because use you old interface for prototxt. 
You should rename layers to layer and DATA to "Data"

name: "train_test"
layer {
  name: "test_layer"
  type: "Data"
  top: "input_data"
  top: "label"
  data_param {
    source: "/my_data_lmdb"
  }
  include: { phase: TRAIN }  
}

Look to example prototxt, you will get the intuition, 
Reply all
Reply to author
Forward
0 new messages