Questions tagged [caffe]

Caffe is a fast deep learning framework. It supports CPU and GPU processing. Caffe is released under the BSD 2-Clause license. It is based on C++ but provides APIs for Python and Matlab.

Caffe is a fast framework, developed by Berkeley AI Research (BAIR)/ The Berkeley Vision and Learning Center (BVLC). Its architecture is based on pure and and supports and processing without the need to adapt the code for one of the processing units. Caffe provides and interfaces. Caffe is released under the BSD 2-Clause license.

Caffe users share popular models for different tasks with all kinds of architectures and data in the Model Zoo. These models are learned and applied for problems ranging from simple regression, to large-scale visual classification, to Siamese networks for image similarity, to speech and robotics applications.

Useful Links:

2834 questions
248
votes
13 answers

How to verify CuDNN installation?

I have searched many places but ALL I get is HOW to install it, not how to verify that it is installed. I can verify my NVIDIA driver is installed, and that CUDA is installed, but I don't know how to verify CuDNN is installed. Help will be much…
alfredox
  • 4,082
  • 6
  • 21
  • 29
123
votes
6 answers

Common causes of nans during training of neural networks

I've noticed that a frequent occurrence during training is NANs being introduced. Often times it seems to be introduced by weights in inner-product/fully-connected or convolution layers blowing up. Is this occurring because the gradient computation…
66
votes
4 answers

NameError: name 'get_ipython' is not defined

I am working on Caffe framework and using PyCaffe interface. I am using a Python script obtained from converting the IPython Notebook 00-classification.ipynb for testing the classification by a trained model for ImageNet. But any get_ipython()…
dyno8426
  • 1,179
  • 2
  • 13
  • 22
45
votes
1 answer

Faster RCNN for TensorFlow

Has anyone implement the FRCNN for TensorFlow version? I found some related repos as following: Implement roi pool layer Implement fast RCNN based on py-faster-rcnn repo but for 1: assume the roi pooling layer works (I haven't tried), and there…
RyanLiu
  • 1,557
  • 2
  • 18
  • 27
45
votes
2 answers

Cheat sheet for caffe / pycaffe?

Does anyone know whether there is a cheat sheet for all important pycaffe commands? I was so far using caffe only via Matlab interface and terminal + bash scripts. I wanted to shift towards using ipython and work through the ipython notebook…
mcExchange
  • 6,154
  • 12
  • 57
  • 103
44
votes
4 answers

What is the definition of a non-trainable parameter?

What is the definition of non-trainable parameter in a model? For example, while you are building your own model, its value is 0 as a default, but when you want to use an inception model, it is becoming something else rather than 0. What would be…
TheWho
  • 829
  • 3
  • 9
  • 19
37
votes
2 answers

Finding gradient of a Caffe conv-filter with regards to input

I need to find the gradient with regards to the input layer for a single convolutional filter in a convolutional neural network (CNN) as a way to visualize the filters. Given a trained network in the Python interface of Caffe such as the one in this…
pir
  • 5,513
  • 12
  • 63
  • 101
37
votes
2 answers

What is `lr_policy` in Caffe?

I just try to find out how I can use Caffe. To do so, I just took a look at the different .prototxt files in the examples folder. There is one option I don't understand: # The learning rate policy lr_policy: "inv" Possible values seem to…
Martin Thoma
  • 124,992
  • 159
  • 614
  • 958
35
votes
1 answer

A guide to convert_imageset.cpp

I am relatively new to machine learning/python/ubuntu. I have a set of images in .jpg format where half contain a feature I want caffe to learn and half don't. I'm having trouble in finding a way to convert them to the required lmdb format. I have…
33
votes
2 answers

Tackling Class Imbalance: scaling contribution to loss and sgd

(An update to this question has been added.) I am a graduate student at the university of Ghent, Belgium; my research is about emotion recognition with deep convolutional neural networks. I'm using the Caffe framework to implement the CNNs. Recently…
31
votes
5 answers

Caffe didn't see hdf5.h when compiling

I am having trouble when installing Caffe Deep Learning Framework on Python: When I run make command at caffe directory, it says hdf5.h:no such directory The steps I have done: Update and upgrade my Ubuntu Server Install Python 2.7 Having all of…
kelvin
  • 321
  • 1
  • 3
  • 6
30
votes
1 answer

Why do some object detection neural networks return all zeros in OpenCV 4.1.0?

I have a problem with evaluating several neural networks in OpenCV 4.1.0 from Java/Scala. Networks return all zeros for fish-bike image as well as others. I observe this in: COCO SSD512*…
Vladimir Protsenko
  • 1,046
  • 2
  • 14
  • 21
30
votes
5 answers

How to change CUDA version

I met this error when compiling a modified caffe version. OpenCV static library was compiled with CUDA 7.5 support. Please, use the same version or rebuild OpenCV with CUDA 8.0 I have some old code may not compatible with CUDA8.0, so I want to…
baNv
  • 493
  • 1
  • 4
  • 12
30
votes
4 answers

Python real time image classification problems with Neural Networks

I'm attempting use caffe and python to do real-time image classification. I'm using OpenCV to stream from my webcam in one process, and in a separate process, using caffe to perform image classification on the frames pulled from the webcam. Then I'm…
user3543300
  • 499
  • 2
  • 9
  • 27
28
votes
5 answers

Is it good learning rate for Adam method?

I am training my method. I got the result as below. Is it a good learning rate? If not, is it high or low? This is my result lr_policy: "step" gamma: 0.1 stepsize: 10000 power: 0.75 # lr for unnormalized softmax base_lr: 0.001 # high…
John
  • 2,838
  • 7
  • 36
  • 65
1
2 3
99 100