passing args to caffe.Net constructor

31 views
Skip to first unread message

Willie Maddox

unread,
Jul 27, 2016, 7:53:26 PM7/27/16
to Caffe Users
Hello,

In "/examples/02-fine-tuning.ipynb" the net is created using:

imagenet_net = caffe.Net(imagenet_net_filename, weights, caffe.TEST)

According to the caffe API documentation, this set of input args does not match either of the constructors.

Yet it still seems to work. How?  Is there some intermediate wrapper function that I'm just not aware of?

Thanks

Evan Shelhamer

unread,
Jul 29, 2016, 9:08:13 PM7/29/16
to Willie Maddox, Caffe Users
The notebooks are making use of the Python interface to Caffe (pycaffe), so you need to look at the boost python interface https://github.com/BVLC/caffe/blob/master/python/caffe/_caffe.cpp and its further Python wrapping https://github.com/BVLC/caffe/blob/master/python/caffe/pycaffe.py. These extend the core C++ interface that you were already looking at through the API documentation.

Evan Shelhamer





--
You received this message because you are subscribed to the Google Groups "Caffe Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to caffe-users...@googlegroups.com.
To post to this group, send email to caffe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/caffe-users/59513253-b0e8-420b-aa06-995794335425%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages