Questions tagged [pycaffe]

The Python interface – pycaffe – is the caffe module and its scripts in caffe/python.

Pycaffe is a Python-based library which has been developed over at UC Berkeley Vision and Learning Center (BVLC). It offers high performance and modularity for implementing [deep] models.

Useful Links:

523 questions
0
votes
2 answers

How do you export .caffemodels to other applications?

Is it possible to translate the info in a .caffemodel file such that it could be read by (for example) Matlab. That is, is there a way to write your model using something else that prototxt and import the weights trained using Caffe? If the answer…
V.Vocor
  • 429
  • 1
  • 5
  • 16
0
votes
0 answers

caffe - Input data, train and test set

RAW data dim : 1) 64 x 45 x 18432 in .mat format... ---> Class1 1 x 18432 in .mat format... ---> labels 2) 64 x 45 x 18432 in .mat format... ---> Class2 1 x 18432 in .mat format... ---> labels 3) 64 x 45 x 18432 in .mat format... ---> Class3 1 x…
shivang patel
  • 297
  • 1
  • 5
  • 15
0
votes
1 answer

caffe always predicts the same result

I have trained my network with my own data, which is not a image but a vector(20×128×128). Now I want to use the trained network to forecast. However, when I try the code, I got the same output no matter what the input vector is. I will attach the…
sunjia
  • 41
  • 5
0
votes
1 answer

pyCaffe not giving same results as command line interface

I'm trying to use a python script to extract a feature value using a pre-trained network. Here's my script: import numpy as np import matplotlib.pyplot as plt from PIL import Image import…
SHB11
  • 375
  • 5
  • 14
0
votes
2 answers

fatal error: opencv2/core/core.hpp caffe framework installation

I'm trying to install Caffe framework with this script: https://gist.github.com/jetsonhacks/acf63b993b44e1fb9528 and I'm getting opencv2/core/core.hpp error. CXX src/caffe/layers/data_layer.cpp src/caffe/layers/data_layer.cpp:2:33: fatal error:…
Petr Bečka
  • 774
  • 3
  • 16
  • 39
0
votes
1 answer

Caffe install getting ImportError: DLL load failed: The specified module could not be found

I am trying to compile and run the snippets posted here, which basically is going to let me visualize the network internals (feature maps). I have successfully compiled caffe and pycaffe using the caffe-windows branch, And I have copied the caffe…
Hossein
  • 24,202
  • 35
  • 119
  • 224
0
votes
1 answer

Pycaffe: Index out of range when using original train.prototxt as the pretrained_file in Caffe.classifier

When using ipython: net = caffe.Classifier(MODEL_FILE, PRETRAINED) I got an exception when I use the original train.prototxt as the…
C.Tony
  • 1
  • 2
0
votes
1 answer

error in caffe.io.load_image(), it cannot load image

when I run the command in python: import caffe img = caffe.io.load_image('bird.jpg') it raised an error: ValueError: Could not load "bird.jpg" Please see documentation at:…
Fangxin
  • 781
  • 1
  • 7
  • 13
0
votes
2 answers

How do I reduce 4096-dimensional feature vector to 1024-dimensional vector in CNN Caffemodel?

I used 16-layers VGGnet to extract features from an image. It outputs a 4096-dimensional feature vector. However, I need a 1024-dimensional vector. How do I further reduce this 4096-vector into 1024-vector? Do I need to add a new layer on top of…
0
votes
1 answer

How to set some weights in a layer to a particulr number?

I would like to ask if it is possible to set some weights in a layer to particular number or zero of pretrained model. For example, I want to download Lecun model and set some weights in the last layer to number e.x 4 and calculate the…
S.AMEEN
  • 1,461
  • 4
  • 16
  • 23
0
votes
1 answer

BVLC/caffe giving same prediction everytime

I am trying to run BVLC/caffe model (CPU only). I have completed all installation. When i run below command to run: python python/classify.py examples/images/cat.jpg foo Then its giving below output: Classifying 1 inputs. Done in 2.68…
0
votes
1 answer

Cannot import caffe - iPython doesn't find environment variables that 'ordinary' python finds

I'm using Anaconda python on a Mac running OS X 10.11 El Capitan. I'm trying to use pycaffe in iPython, but importing it (import caffe) fails with the error ImportError: dlopen(/Users/.../Documents/caffe-master/python/caffe/_caffe.so, 2): Library…
Skeppet
  • 931
  • 1
  • 9
  • 17
0
votes
1 answer

how to feed the image data to HDF5 on caffe or existing examples?

I had hard time working on caffe with HDF5 on the image classification and regression tasks, for some reason, the training on HDF5 will always fail at the first beginning that the test and train loss could very soon drop to close to zero. after…
user824624
  • 7,077
  • 27
  • 106
  • 183
0
votes
2 answers

Visualising convolution kernels in caffe

I have been following a Caffe example here to plot the Convolution kernels from my ConvNet. I have attached an image below of my kernels, however it looks nothing like the kernels in the example. I have followed the example exactly, anyone know what…
0
votes
0 answers

"ImportError: cannot import name layers" in caffe / pycaffe

I'm following the ipython notebook example on training caffe via its python interface. However the caffe module seems not to contain the modules described in the tutorial When I enter import caffe from caffe import layers as L I get the…
mcExchange
  • 6,154
  • 12
  • 57
  • 103
1 2 3
34
35