Questions tagged [caffe2]

Caffe2 is an open-source deep learning framework, which is developed and maintained by Facebook, and is based on the Caffe framework.

Caffe2 is a deep learning framework, which is based on the framework. It is developed and maintained by Facebook, and released under the Apache 2.0 license, on GitHub.

Caffe2 is an improved / redesigned version of Caffe. A presentation by Caffe2's lead developer Yangqing Jia, held at CVPR 2015, shows some of the consideration of the redesign.

Useful links

116 questions
1
vote
1 answer

Caffe 2 Install fails on Windows 10

It's been a fairly treacherous journey with dozens of error messages. I am installing Caffe 2 from source onto a Windows 10 machine with an Nvidia GPU. I have installed VS2017 Community Edition (CE), CUDA 9.2 and cuDNN. I am able to build the CUDA…
user2205916
  • 3,196
  • 11
  • 54
  • 82
1
vote
1 answer

Caffe2 extract fc7 features

recently, I tried to use Convolutional Neural Network(CNN) to extract features of images. The model I used is alexnet, the framework is Caffe2 with Python 3.6.4. The problem is that I want to extract features of FC7 layer, which should have a…
alexmark
  • 369
  • 4
  • 20
1
vote
0 answers

I can't see the image when using display.Image in pycharm

workspace.SwitchWorkspace("net_test", True) print("Current blobs in the workspace: {}".format(workspace.Blobs())) net = core.Net("my_first_net") print("Current network proto:\n{}".format(net.Proto())) X = net.GaussianFill([], ["X"], mean=0.0,…
Oliver
  • 11
  • 2
1
vote
1 answer

python (onnx) cannot import name X

System info: Ubuntu 16.04 Python 3.6.5 in anaconda3/envs/testcaffe/bin/python3 Anaconda3 4.5.2 CPU only I installed Caffe2 by conda install -c caffe2 caffe2 for python to find onnx i set the PYTHONPATH to…
1
vote
0 answers

CRITICAL:root:Cannot load caffe2.python. Error: liblmdb.so.0: cannot open shared object file: No such file or directory

I installed caffe2 cpu pre-binary version in my ubuntu16.04,however when I import caffe2.python,it showed the following errors: CRITICAL:root:Cannot load caffe2.python. Error: liblmdb.so.0: cannot open shared object file: No such file or…
1
vote
0 answers

What's meaning of the "run_once" in Caffe2's FillOp

As in the Github link the "run_once" in the GaussianFill. And where is the definition of the "run_once"?
David Zhao
  • 21
  • 7
1
vote
1 answer

Error related to Eigen while installing Caffe2

I'm getting an error while installing Caffe2. After the succesful build, in the sudo make install step, it throws an error as #error Caffe2 requires Eigen to be at least 3.3.0
doruk.sonmez
  • 397
  • 2
  • 5
  • 14
1
vote
0 answers

"Caffe2 building failed"

When I execute the instructions "build_windows.bat" for building Caffe2, there is a huge problem. "D:\caffe2\caffe2\build\ALL_BUILD.vcxproj" (default target) (1) -> "D:\caffe2\caffe2\build\caffe2\caffe2.vcxproj" (default target) (5) -> (ClCompile…
Shuyue Jia
  • 11
  • 1
1
vote
2 answers

Creating an image LMDB for Caffe2

In the original Caffe framework, there was an executable under caffe/build/tools called convert_imageset, which took a directory of JPEG images and a text file with labels for each image, and output an LMDB that could be fed to a Caffe model to…
Mink
  • 857
  • 2
  • 11
  • 24
1
vote
0 answers

caffe2 build android Failed to configure test project build system

I want to build caffe2 on macOS. build caffe2 is every thing OK, but when I build android, use caffe2/scripts/build_android.sh the processing is to 100% and then occurred: CMake Error at…
nick zhou
  • 31
  • 6
1
vote
1 answer

Adding new helper method using brew throws error

I try to add a new helper function using brew, as shown below. brew.Register(testOp) When i try to run above code, i get below error: AttributeError: Helper testOp already exists. Please change your helper name. Please help me resolve this…
Anshuman.T
  • 11
  • 2
1
vote
1 answer

Caffe2: How to load and use MNIST tutorial model in C++

I am struggling to replicate in C++ results of the trained MNIST caffe2 tutorial model. What I have done is that I have slightly modified MNIST python tutorial (code available here) and on the python side everything works OK. If I run mnist.py I'll…
AndrzejO
  • 213
  • 1
  • 5
1
vote
2 answers

Can Caffe or Caffe2 be given input data directly from gpu?

I've read caffe2 tutorials and tried pre-trained models. I knew caffe2 will leverge GPU to run the model/net. But the input data seems always be given from CPU(ie. Host) memory. For example, in Loading Pre-Trained Models, after model is loaded, we…
1
vote
1 answer

LMDB error on Ubuntu

I was going through the MNIST tutorial in caffe2 and I ran into the following error: RuntimeError: [enforce fail at db.h:190] db_. Cannot open db: /home/Aakash/caffe2_notebooks/tutorial_data/mnist/mnist-train-nchw-lmdb of type lmdb Error from…
user3125971
  • 139
  • 3
  • 15
1
vote
0 answers

How to fine-tune a network in caffe2

There are very little information about how to fine-tuning parameters and it really confuses me a lot about how to fine-tune a network in caffe2. Could anybody show me some codes about the fine-tuning part. Many thanks. By the way, in the…
王春峰
  • 11
  • 2