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
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
19
votes
7 answers

Exception: "dot" not found in path in python on mac

I want to use caffe.draw to draw the caffe net by anaconda python on mac. But I got the error like this: File "python/draw_net.py", line 45, in main() File "python/draw_net.py", line 41, in main caffe.draw.draw_net_to_file(net,…
XiaXuehai
  • 590
  • 1
  • 6
  • 19
18
votes
2 answers

Building custom Caffe layer in python

After parsing many links regarding building Caffe layers in Python i still have difficulties in understanding few concepts. Can please someone clarify them? Blobs and weights python structure for network is explained here: Finding gradient of a…
loknar
  • 539
  • 5
  • 12
15
votes
2 answers

Multiple category classification in Caffe

I thought we might be able to compile a Caffeinated description of some methods of performing multiple category classification. By multi category classification I mean: The input data containing representations of multiple model output categories…
Aidan Gomez
  • 8,167
  • 5
  • 28
  • 51
11
votes
1 answer

PyInstaller "ValueError: too many values to unpack"

Pyinstaller version 3.2 OS: win10 My python script work well in Winpython Python Interpreters. But when I using Pyinstaller packages a python script include caffe module, I will face the problem: “You may load I/O plugins with the…
Chi-Fang Hsieh
  • 235
  • 1
  • 3
  • 13
10
votes
2 answers

caffe data layer example step by step

I want to find a caffe python data layer example to learn. I know that Fast-RCNN has a python data layer, but it's rather complicated since I am not familiar with object detection. So my question is, is there a python data layer example where I can…
kli_nlpr
  • 894
  • 2
  • 11
  • 25
10
votes
2 answers

Caffe: how to get the phase of a Python layer?

I created a "Python" layer "myLayer" in caffe, and use it in the net train_val.prototxt I insert the layer like this: layer { name: "my_py_layer" type: "Python" bottom: "in" top: "out" python_param { module: "my_module_name" layer:…
Shai
  • 111,146
  • 38
  • 238
  • 371
8
votes
1 answer

Spark problems with imports in Python

We are running a spark-submit command on a python script that uses Spark to parallelize object detection in Python using Caffe. The script itself runs perfectly fine if run in a Python-only script, but it returns an import error when using it with…
alfredox
  • 4,082
  • 6
  • 21
  • 29
8
votes
2 answers

deep learning - a number of naive questions about caffe

I am trying to understand the basics of caffe, in particular to use with python. My understanding is that the model definition (say a given neural net architecture) must be included in the '.prototxt' file. And that when you train the model on data…
Alejandro Simkievich
  • 3,512
  • 4
  • 33
  • 49
8
votes
1 answer

Multi-label classification with Caffe

I want to fine-tune GoogLeNet to do Multi-label classification with Caffe. I have already fine-tuned it to a single-label classification, but I can't make the transition to Multi-label yet. The main steps I am doing which are different: Create LMDB…
YotamH
  • 95
  • 8
8
votes
1 answer

Caffe Iteration loss versus Train Net loss

I'm using caffe to train a CNN with a Euclidean loss layer at the bottom, and my solver.prototxt file configured to display every 100 iterations. I see something like this, Iteration 4400, loss = 0 I0805 11:10:16.976716 1936085760 solver.cpp:229] …
user3543300
  • 499
  • 2
  • 9
  • 27
7
votes
1 answer

how to append data to existing LMDB?

I have around 1 million images to put in this dataset 10000 at a time appended to the set. I"m sure the map_size is wrong with ref from this article used this line to create the set env = lmdb.open(Path+'mylmdb', map_size=int(1e12) use this line…
Arsenal Fanatic
  • 3,663
  • 6
  • 38
  • 53
7
votes
2 answers

Multiple pretrained networks in Caffe

Is there a simple way (e.g. without modifying caffe code) to load wights from multiple pretrained networks into one network? The network contains some layers with same dimensions and names as both pretrained networks. I am trying to achieve this…
Igor Ševo
  • 5,459
  • 3
  • 35
  • 80
1
2 3
34 35