Questions tagged [caffe]

Caffe is a fast deep learning framework. It supports CPU and GPU processing. Caffe is released under the BSD 2-Clause license. It is based on C++ but provides APIs for Python and Matlab.

Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

Fatal Error During CMake Build: 'caffe/blob.hpp' File Not Found - Seeking Assistance

When using the command make -j`sysctl -n hw.logicalcpu` I encountered the following error: I attempted to use OpenPose for the first time, and the installation process left me feeling hopeless... I ...
bovcu13's user avatar
  • 21
0 votes
0 answers
32 views

How to convert a .pth file into a .protox.txt and a .caffemodel files?

After much research, I finally got the following script (which works): from detecto import core, utils, visualize from detecto.visualize import show_labeled_image, plot_prediction_grid from ...
Coder's user avatar
  • 1
0 votes
0 answers
10 views

How can I subtract 2 arrays (Eltwise) in Caffe?

I'm trying to convert ONNX to Caffe. and I encountered Eltwise Subtract layer. How can I convert it? I tried to searh online but found nothing. One solution I was thinking is scale and Add. But, if ...
user3663608's user avatar
0 votes
0 answers
9 views

How can I fix the 'blob size is zero' error in Python 2.7 while using pose recognition with OpenCV and Caffe models?

So I am working with Python 2.7.9 trying to use a pose recognition code, but I keep getting the following error telling me my blob size is zero. What would be the process for fixing such an issue? `...
jostiff's user avatar
0 votes
0 answers
47 views

Why does gradient perturbation to input blob in overrided Solver::Callback::after_step() cause the input blob altered

I'm trying to implement the "Adversarial Data Augmentation" algorithm. To do this, I registered a callback class GradPerturb which is publically inherited from caffe::Solver<float>::...
PengJv Nie's user avatar
-1 votes
1 answer
64 views

How to calculate the gradient with respect to "Input" layer in Caffe?

I want to implement the algorithm proposed by paper "Generalizing to unseen domains via adversarial data augmentation" using Caffe framework. I have to compute the gradient with regard of ...
PengJv Nie's user avatar
0 votes
1 answer
40 views

Calculate Euclidean distance between two blobs via Caffe

I am new to caffe and c++. I know that caffe has defined its EuclideanLossLayer. So can I use this layer to calculate the distance between blob_1 and blob_2? File 1: main.cpp #include "caffe/...
guorui's user avatar
  • 881
0 votes
0 answers
18 views

How to multiply two feature map pixel by pixel in caffe?

When I convert onnx model to caffe mode, there is a problem. I want to adding two feature map pixel by pixel, like matrix shape A is (3x80x80x2) and B is (3x80x80x2). And A is from caffe layer output, ...
冯了个杰's user avatar
0 votes
0 answers
48 views

ValueError: cannot reshape array of size 0 into shape (16,3,3,3)

I am trying to convert a caffe model to tensorflow model using caffe-tensorflow. I am getting the below error ValueError: cannot reshape array of size 0 into shape (16,3,3,3)' method which throws ...
Dhanush's user avatar
  • 822
1 vote
0 answers
31 views

Compilation error while compiling caffe on ubuntu

I tried to compile caffe on ubuntu 20.04 using cmake but it gives an error that 'The dependency target "pycaffe" of target "pytest" does not exist.' I tried many times but it is ...
zohaibahmad's user avatar
0 votes
1 answer
570 views

Encounter `cudaGetDeviceProperties_v2` when compiling caffe

I have the following error when compiling caffe in ubuntu 20 and cuda 11. Any ideas? Thanks! /usr/bin/ld: ../lib/libcaffe.so.1.0.0: undefined reference to `cudaGetDeviceProperties_v2' collect2: error: ...
Planck35's user avatar
  • 106
0 votes
0 answers
92 views

Optimize sizes and aspect ratios of prior boxes in SSD network

I use SSD network to detect objects in thermal image. Since our camera has only the resolution of 160x120 pixels, I don't resize image to 300x300 but use the camera resolution as the input into the ...
bigmuscle's user avatar
  • 429
0 votes
0 answers
31 views

Why does caffe's net.forward() turn my data negative?

I'm very new to caffe and trying to utilize someone else's code for my specific case. I've narrowed it down to this minimal example: import caffe import numpy as np model_path = "mnist_model_rgb/...
liz's user avatar
  • 25
0 votes
1 answer
135 views

OpenCV Vector Subscript out of range error in java

I'm trying to write a AgeGender Guessing program in Java with OpenCV. I'm having problems with the DNN running to recognise faces. I have started adding code to debug my program. package AgeGenderCV; ...
Tom C's user avatar
  • 23
0 votes
1 answer
2k views

nvcc fatal : Unsupported gpu architecture 'compute_80'

I am tring to make the caffe ,but got the nvcc fatal : Unsupported gpu architecture 'compute_80' error. I have the following configuration. Description: Ubuntu 20.04.5 LTS $ uname -m x86_64 I ...
Mohammad Helal Uddin's user avatar
-1 votes
1 answer
75 views

Netron:caffemodel weights Tensor data is empty

0.Question can not get conv1 weights data in the bvlc_reference_caffenet_2.caffemodel. 1.info bvle/caffe:https://github.com/BVLC/caffe nvidia-caffe-version:0.17.3 2.convert train caffe model to test ...
Xiaotong's user avatar
0 votes
0 answers
97 views

Pycharm can't understand modelcaffe file

i was trying to use MobileNet SSD model for Object detection project, and i wanted to use a caffemodel with prototxt file and i downloaded these files from here. After i downloaded files and put them ...
Raed's user avatar
  • 1
0 votes
1 answer
222 views

How to add a preprocessing layer to a pretrained caffe model?

I have a pre-trained image classification model saved in caffe, the model is expected to get grayscale(one channel) images. I want to use this model in a tool that only provides input of RGB(three ...
subspring's user avatar
  • 690
1 vote
0 answers
98 views

Is it possible to convert caffe model to coreml using coremltools 5.2 and python 3.10.4

I can't find a way to convert a caffe model to a CoreMl format using CoreMltools 5.2 and python 3.10.4 I'm aware that it was possible using an older version of CoreMltools and python 2.7
Shiv Nik's user avatar
0 votes
1 answer
191 views

how to installe caffe in ubuntu 20.04

I try to install caffe but I still have a problem in the installation, I tried several tutorials but still I couldn't do it File "/home/lynda/caffe/python/caffe/proto/caffe_pb2.py", line 6, ...
Linda Lina's user avatar
1 vote
0 answers
94 views

Deep dream "guide" image in tensorflow

I'm trying to modify the deep dream code from the Tensorflow docs here: https://www.tensorflow.org/tutorials/generative/deepdream Specifically, I want to use a "guide image" to produce the ...
greenbeansugar's user avatar
1 vote
0 answers
144 views

Why the video is performing very slow in deep learning opencv

This is HandKeypoint Detection using caffe deep learning on opencv the problem is When i run the code it is performing very slow untill the video is freezing for sometime but when i tried by using a ...
Hanishkaran Muneswaran's user avatar
0 votes
0 answers
60 views

what protoc commande do in this line?

i'm using this documentation and i didn't get the step 4 https://medium.com/@alok.gandhi2002/build-openpose-with-without-gpu-support-for-macos-catalina-10-15-6-8fb936c9ab05#726f i tried this MacBook-...
Bouchama Sana's user avatar
0 votes
0 answers
504 views

why do I get "AttributeError: module 'caffe' has no attribute 'Classifier'" when running Caffe?

My question is very close to this one. I installed Caffe on google Colab, and I am trying to run this open source CNN model. the pre-trained models and the test can be downloaded here. I followed ...
Nima fo's user avatar
2 votes
1 answer
122 views

Incomparable weight shape between caffe and tensorflow / keras

I am trying to convert a caffe model to keras, I have successfully been able to use both MMdnn and even caffe-tensorflow. The output I have are .npy files and .pb files. I have not had much luck with ...
Michael Kročka's user avatar
1 vote
2 answers
260 views

"TFlite" to Caffe model

I'm trying to use Opencv "cv::Net" with a Caffe model (.caffemodel and .prototxt) but the the model I have is a ".tflite". Is it possible to convert ".tflite" to a caffer ...
Luís Carlos's user avatar
0 votes
0 answers
45 views

Serving caffe models

How to Serving caffe models? I'm doing a project on image classification using pre trained caffe model, I want to serve my model like TFServing,How to Serving caffe models?
Cassie's user avatar
  • 1
1 vote
0 answers
280 views

AttributeError: module 'caffe' has no attribute 'Net'

I tried to install Caffe on Google Colab according to this Link. But, when I wanted to load the Caffe net and weights, I faced with this error. # Load the Caffe net and weights. net = caffe.Net(...
hdiz's user avatar
  • 1,141
2 votes
1 answer
108 views

how to train using conda-installed caffe with multi gpus?

my caffe is installed by the cmd: conda install caffe-gpu but how should I train my model with this pkg? In official docs( or some github repos), we will compile it and run it with /home/xxx/caffe/...
Wang Yilan's user avatar
0 votes
0 answers
147 views

Use detectron2 model_convert.py to convert the trained mask-rcnn model file .pth to .pb file error

Colab error message: "Dataset 'fruits_nuts' is not registered! But I use register_coco_instances function registered. Can someone help me? thanks.
Sobel Li's user avatar
0 votes
1 answer
40 views

Getting multiple variables in TensorFlow and other frameworks (overheads)

If I have the following graph and want to get the values of tensors T1 and T2 in TF without eager execution, how would I do this? I only know of eval() or session.run() (running that twice could be an ...
f.k's user avatar
  • 85
1 vote
0 answers
61 views

Caffe: Cannot Allocate Memory

I am trying to run a basic Mnist Data Set Program using caffe frame work. When I try to compile I am getting memory allocation errors which I haven't been able to identify Layers Description File name:...
Arslan Majid's user avatar
0 votes
1 answer
83 views

make all fatal error when caffe is compiled

I have installed OpenCV which shows version 3.0.2 when I write python commands. But when I try to run make all for caffe I am getting this output: fatal error: opencv2/core/core.hpp: No such file or ...
Arslan Majid's user avatar
0 votes
1 answer
745 views

How to load caffemodel for gender and age detection correct?

I wanna use OpenCV to predict the gender and the age of an person. I try to load the caffemodel and a prototxt for the model but for some reason it won't load. What is the reason? code: import ...
AIIMOOR's user avatar
  • 57
1 vote
1 answer
122 views

How to load deep learning model in jni

https://github.com/huaweicodelabs/HiAI-Foundation I have a question about the above site. Preparation && Getting Started, 5.Before using a model, you need to load the model. The DDK ...
sunao's user avatar
  • 61
1 vote
1 answer
125 views

Error converting Caffe weights to Keras weights

I'm desperately looking for a way to convert Caffe pre-trained weights to Keras weights. I'm using caffe_weight_converter but I keep getting the error message below and I've no idea why. My notebook ...
Jimm's user avatar
  • 15
0 votes
1 answer
1k views

Caffe : AttributeError: 'NoneType' object has no attribute 'astype'

AttributeError: 'NoneType' object has no attribute 'astype' occurs in the file ../lib/fast_rcnn/test.py, line 35, in _get_image_blob im_orig =im.astype(np.float32,copy=True) There is AttributeError:‘...
Shikha Dubey's user avatar
0 votes
1 answer
934 views

Caffemodel and prototxt

ageNet=dnn.readNet("age_net.caffemodel","age_deploy.prototxt") maskNet = load_model("ask_detector.model") I am very much curious about the purpose of caffemodel and ...
Aumrudh Lal Kumar T J's user avatar
1 vote
0 answers
839 views

Boost (1.76.0) Error during Caffe Build OSX

I am dealing with a little snag that came up while trying to build Caffe from source. First, I will describe the steps I took and then the error itself. git clone https://github.com/CMU-Perceptual-...
Ender's user avatar
  • 229
0 votes
0 answers
2k views

openpose issue when running the example: check failed: error == cudaSuccess (2 vs. 0) out of memory, result in core dumped

Does anyone encounter this issue when using the openpose 1.7 under ubuntu 20.04? I cannot run the example provided. It will simply core dumped. CUDA version 11.3, Nvidia driver version 465.19.01, GPU ...
De Yuan Sun's user avatar
0 votes
0 answers
60 views

NetParameter problem with execute caffe.exe

I have successfully built caffe.exe with cuda11.1 without cudnn. But when I execute the caffe.exe. It come out with this type of error. [libprotobuf ERROR D:\ThirdPartyLibrary\protobuf\src\google\...
reus Marco's user avatar
0 votes
0 answers
478 views

using caffe model to detect face but gets this error:Failed to parse NetParameter file: F:/deep-learnin g/ESPCN01/deploy.prototxt

I'm using a pretrained caffe model to do the face-detection of a picture, and the detection code is downloaded online. when just executing the first line of code, two errors came up. I've made couples ...
stackdon'tknow's user avatar
0 votes
0 answers
283 views

How to load caffe models in C#

When I run this code below (C# form app), It gives me an error and it says; -- "OpenCvSharp.OpenCVException: 'FAILED: fs.is_open(). Can't open "/age_deploy.prototxt" Full error I have ...
wolyure's user avatar
2 votes
0 answers
678 views

How to install caffe with python3 on Google Colab Notebook

I am trying to install caffe on Google Colab. !apt install caffe-cuda installs. But in the next line when I type import caffe, it doesn't work. This error comes : <ipython-input-8-a0183e542e82>...
nemesis's user avatar
  • 53
-1 votes
1 answer
104 views

Python error: Won't implicitly convert Unicode to bytes

I am following a machine learning Tutorial using caffe and python, but I get stuck when trying to compile the given code with the following error: line 80, in <module> in_txn.put('{:0>5d}'...
Johannes Lange's user avatar
0 votes
1 answer
68 views

facing an error while installing deep learning framework (Caffe)

I'm trying to install Caffe framework on Windows 10 for training a deep learning model using python and I'm facing the error below when I run the file 'build-win.cmd' : The system cannot find the ...
Aryan Hab's user avatar
3 votes
1 answer
409 views

Is cudnn convolution workspace reusable?

I need to find reference or description regarding workspace that is provided to cudnnConvolutionForward, cudnnConvolutionBackwardData, cudnnConvolutionBackwardFilter familiy of functions. Can I reuse ...
Artyom's user avatar
  • 31.1k
2 votes
2 answers
5k views

Docker not finding a path I added to File Sharing on MacOS Big Sur

I am trying to use docker to help create caffe models using this tutorial, and I am getting an error that my path is not configured, however I followed the instructions to configure the file as shown ...
Samantha Garcia's user avatar
0 votes
0 answers
638 views

File Not Found at /storage/emulated/0, Android Studio

I am creating an android application for image captioning and have used caffe_jni for it but I'm getting an error: F0315 Check failed: fd!= -1 (-1 vs. -1) File not found: /storage/emulated/0/...
Vinaya Bomnale's user avatar
0 votes
1 answer
56 views

Installing Caffe framework in Ubuntu

I'm currently trying to install the framework Caffe in Ubuntu, following the steps on this tutorial. It seems i'm stuck at step 2, where i'm supposed to enable an older version of gcc. Currently, when ...
Ma. Fernanda Robles Hernández's user avatar

1
2 3 4 5
57