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
0 answers

Segmentation fault when trying to import caffe2.python

Segmentation fault when trying to import caffe2.python on google colab with python = 2.7 , cuda 10 , cudnn 7.5 I have tried with cuda 9 and error is : libcudart.9.so cannot open shared object !wget…
Roma Jain
  • 333
  • 4
  • 13
1
vote
0 answers

How to convert caffe layers to keras layers?

I found the following layers in caffe prototxt file: layer { name: "before_proj" type: "Silence" bottom: "xxxbefore_proj" } layer { name: "1_before_proj" type: "InnerProduct" bottom: "conv4f" top: "xxx1_before_proj" param { …
BAE
  • 8,550
  • 22
  • 88
  • 171
1
vote
0 answers

How to use sparselengthssum in caffe2 for categorical data ?

I am trying to convert categorical data to numerical data. caffe2 has few new operators for the same. I am interested in using sparselenthssum. But the caffe2 docs does not have an example use case. How to use sparelengthssum for categorical…
1
vote
0 answers

cmake undefined reference to `pthread_create' installing Caffe2

I am installing Caffe2 from this Caffe2. When I run the cmake command I get this error : cmake -DCUDNN_INCLUDE_DIR=~/cuda/include -DCUDNN_LIBRARY=~/cuda/lib64/libcudnn.so -DCUDA_HOST_COMPILER=/usr/bin/gcc-5 -DUSE_NNPACK=OFF…
LearnToGrow
  • 1,656
  • 6
  • 30
  • 53
1
vote
1 answer

Is there any way to convert pretrained model from PyTorch to ONNX?

I trained StarGAN model on my custom dataset. And I need to convert this model from .pth(Pytorch) to .pb for using on Android studio. I searched a lot and I found some ways for conversion. However all solutions don't work on my case. I tried on…
younginsong
  • 73
  • 1
  • 4
1
vote
2 answers

ImportError: .../detectron/utils/cython_nms.so: undefined symbol: PyFPE_jbuf, Detectron, Caffe2, Anaconda, Cython

I've got import errors when trying to reuse the detectron Expected Results: Successful inference Actual Results Traceback (most recent call last): File "infer_simple.py", line 44, in import detectron.core.test_engine as infer_engine …
Anko
  • 11
  • 1
1
vote
1 answer

ValueError: Don't know how to translate op Unsqueeze when running converted PyTorch Model

I'm running into problems trying to use a PyTorch model exported as an ONNX model with Caffe2. Here is my export code the_model = torchvision.models.densenet121(pretrained=True) garbage, model_inputs = preprocessing("test.jpg") torch_out =…
igodfried
  • 877
  • 9
  • 22
1
vote
0 answers

LNK2001: Caffe2 Inference

I'm trying to build a simple program to make inferences with Caffe2 Library on C++. I took some examples from the web and the code looks like this: #include #include "caffe2/caffe2.hpp" #include…
ariangc
  • 11
  • 3
1
vote
0 answers

Caffe2/detectron infer_simple does not detect any objects

I have installed Caffe2 (using Anaconda package for python 2.7) and Detectron in an Ubuntu 18.04 system. Both installations were successful without errors and I have verified them. However, on running the given detectron example infer_simple with…
rakidedigama
  • 714
  • 7
  • 11
1
vote
1 answer

jupyder notebook: OSError: [Errno 2] "dot" not found in path

I use jupyder notebook: from IPython import display graph = net_drawer.GetPydotGraph(train_model.net.Proto().op, 'mnist', rankdir='LR') #graph.write_png("lenet.png") display.Image(graph.create_png(), width=800) and I encounter this…
lic
  • 11
  • 1
1
vote
0 answers

Convert .caffemodel to .pb files

I have a .caffemodel file, and I want to use it in my iOS application through Caffe2Kit, but instance init function parameters are 2 .pb files called "initNet" and "predictNet". I tried to use caffe_translator: python -m…
Jim
  • 11
  • 1
1
vote
1 answer

what ImagePairData layers means in Caffe?

I have a Caffe .prototxt file and i want to convert Caffe layers in Keras or TensorFlow. There is one layer type: "ImagePairData", i don't understand what this means and what's its conversion to Keras or TensorFlow? Here is the Layer: layer { …
1
vote
1 answer

Can't get caffe2 running on google colaboratory

after doing !apt install caffe-cuda i try to use caffe on google colaboratory but with no result. Any help will be welcomed. Thanks
TheLetch
  • 375
  • 1
  • 4
  • 15
1
vote
1 answer

Unable to build caffe2 AICamera app

While trying to build AICamera app master branch, we failed to link the required native-lib library. native-lib.cpp:144: error: undefined reference to 'caffe2::Predictor::run(std::__ndk1::vector*,…
1
vote
1 answer

Why cannot find cudnn.h

I installed the cudnn 7.1.2 by anaconda, and then install the coffe2 via anaconda following https://caffe2.ai/docs/getting-started.html?platform=mac&configuration=prebuilt ,but it reports that cannot find cudnn.h. The error reports are: In file…
qimeng wang
  • 83
  • 2
  • 6