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

DummyData layer equivalent in Caffe2?

I'm trying to convert a fairly complicated convolutional neural network from Caffe to Caffe2 for performance reasons. I am aware of the tutorial for converting equivalent layers, however, my DummyData layers in Caffe crash the conversion. While I…
0
votes
0 answers

Pytorch cpu-only build from source failing with caffe2 on

I was trying to build caffe2 within Pytorch directory but couldn't find a way to build it. The build seems to fail always. Can somebody tell what & how to do? git clone --recursive https://github.com/pytorch/pytorch cd pytorch git checkout…
0
votes
0 answers

torch: Error loading caffe2_detectron_ops_gpu.dll or one of its dependencies

Setup I have Anaconda virtual environment on a Windows machine. Torch, transformers, tensorflow and CUDA installed. I previously used GPU acceleration from the transformers pipeline. What I want to do ultimately I want to use BERT to take word…
0
votes
1 answer

Enabling CAFFE2 while building pytorch from source on Windows command prompt

So, I was doing a model train up using Yolo7 on Windows platform and C:\Users\LENOVO>python train.py --weights yolov7.pt --data "data/custom.yaml" --workers 4 --batch-size 4 --img 416 --cfg cfg/training/yolov7.yaml --name yolov7 --hyp…
Fc0001
  • 58
  • 12
0
votes
1 answer

ModuleNotFoundError: No module named 'caffe2'

I have successfully installed pytorch from source using command git clone --recursive https://github.com/pytorch/pytorch.git on my Windows 11 with CPU. But I cannot run the pretrained DL model. It gives error on line: from caffe2.python import…
Igniter
  • 565
  • 1
  • 4
  • 13
0
votes
0 answers

Running Caffe2 Model on android - my model running very slow on the android device(dosen't finish the init phase)

I'm trying to run a Caffe2 model on an android device, i ran the AICameraDemo App successfully but my model init net is 7 times larger than sqeeznet model, and the load of the init net to the workspace with the predictor or with RunNetOnce takes…
Adam Jensen
  • 49
  • 1
  • 5
0
votes
0 answers

Problem with dumpbin.exe using vcpkg for compile caffe2 win10

When try to use vcpkg with vs2015 to install caffe2:x64-windows in windows 10 I obtain an error with dumpbin.exe: Dump of file E:\vcpkg\packages\caffe2_x64-windows\debug\lib\Caffe2_CPU.lib LINK : fatal error LNK1104: cannot open file…
Mauricio Ruiz
  • 322
  • 2
  • 10
0
votes
1 answer

Caffe2 does not detect GPU

I'd like to use caffe2 with GPU support. I succesfully installed caffe2 (Ubuntu 16.04, python2.7) with conda environment (command : conda install pytorch-nightly -c pytorch) It is successfully installed (I checked it with the command: python2 -c…
jay671
  • 19
  • 1
  • 3
0
votes
1 answer

How to use multiple cores in Caffe2 on mobile?

I’ve got a simple model consisting only of convolutions (even no activation between) and I wanted to benchmark it in Caffe2 on ARM Android device using multiple cores. When I run ./speed_benchmark…
0
votes
1 answer

caffe2 no gpu support error: libprotobuf.so.14 [In Progress]

Currently running AWS Deep Learning AMI (Ubuntu) Version 17.0 and have run into a bump with Caffe2. Checking to see if caffe2 was correctly installed by using python -c 'from caffe2.python import workspace; print(workspace.NumCudaDevices())' I…
UNKNOWN
  • 1
  • 3
0
votes
1 answer

Check failed: error == cudaSuccess (74 vs. 0) misaligned address

I have two data set and training using caffe library for CNN. First data set has a lot of training data more 60,000 train images and 16,000 test images. Its solver file can be seen as follow. Batch size is set to 32 in training. train_net:…
batuman
  • 7,066
  • 26
  • 107
  • 229
0
votes
1 answer

Caffe2: make ops fails when installing densepose

I am trying to install DensePose but run into problems when executing make ops. First I get error Caffe2Config.cmake not found, but after following the instructions here Caffe2 build from source the Caffe2Config.cmake ends up under the build…
El_Loco
  • 1,716
  • 4
  • 20
  • 35
0
votes
0 answers

Undefined reference to a a lot of caffe2 libries

I experience the same error as has been described here: Android NDK make. Hundreds of "undefined reference error"s However, after we use the solution we get another type of…
0
votes
1 answer

Sample code for model-parallel and pipelined training in TensorFlow

Naive model-partitioning across several GPUs results in the workload moving from GPU to GPU during the forward and backward pass. At any instant, one GPU is busy. Here's the naive version. with tf.device('/gpu:0'): model.add(Conv2D(32,…
auro
  • 1,079
  • 1
  • 10
  • 22
0
votes
1 answer

Get the GPU info with Caffe2 in anaconda

I have anaconda3 and cuda 9 installed on my linux machine (aws to be precise), when I check caffe2 installation as in the official documentation it shows me success message, but when I check the GPU with the following script python2 -c 'from…
TheLetch
  • 375
  • 1
  • 4
  • 15