torch-caffe-binding | Use Caffe in Torch7 | Machine Learning library
kandi X-RAY | torch-caffe-binding Summary
kandi X-RAY | torch-caffe-binding Summary
A short binding to use Caffe as a module in Torch7. Has the same functionality as MATLAB bindings.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of torch-caffe-binding
torch-caffe-binding Key Features
torch-caffe-binding Examples and Code Snippets
Community Discussions
Trending Discussions on torch-caffe-binding
QUESTION
I use torch-caffe-binding to convert caffe model to torch. And I want to delete the loss layer in the end and add other torch layers, could I just delete the layer in the .prototxt
file and "train" the model to get the .caffemodel
file and import in torch?
And the model uses the lmdb type data, when I use net:forward(input)
to train the model, the model just uses the data defined in the data layer instead of uses the input
data. So how to train the model that uses the lmdb data?
the caffe model has some custom layer so I can't use the loadcaffe
to load the model in torch
ANSWER
Answered 2017-Sep-18 at 07:39You have 3 issues here -
- You probably need the loss layer for the training (this is what you want to minimize). So train with it, and after the training is done remove it from your prototxt before converting to torch.
In order to use the lmdb rather than using the data layer, connect your input to the first conv layer (assuming your first non-input layer is conv, e.g. say you have
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install torch-caffe-binding
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page