Comments (9)
Did you try this suggestion - "A simple way could be, to convert C1 to BGRA using something like, cvtColor(src,dst,CV_GRAY2RGB);, before feeding to the detect function."
from darknet.
Have you been able to train Yolov3 using 1-channel, to generate a working model ?
from darknet.
A simple way could be, to convert C1 to BGRA using something like, cvtColor(src,dst,CV_GRAY2RGB);, before feeding to the detect function.
from darknet.
To do it efficiently with 1 channel itself without conversion, can you provide a trained model, so I can verify the detection changes ?
from darknet.
I am training data using Yolov2a and image type is 1 channel.
The code is giving problem in following line.
Image is getting converted to floatMat
, then following process is happening.
`
if (floatMat.channels() != 3)
{
EPRINTF("Detect: channels = %d \n", floatMat.channels());
return false;
}
// Get the image to suit darknet
cv::Mat floatMatChannels[3];
cv::split(floatMat, floatMatChannels);
vconcat(floatMatChannels[0], floatMatChannels[1], floatMat);
vconcat(floatMat, floatMatChannels[2], floatMat);
__Detect((float*)floatMat.data, thresh, hier_thresh, objectCount);`
It is going to this if condition if (floatMat.channels() != 3)
Image is not passing to __detect
function.
Thanks
from darknet.
Could you also specify which camera you are using so I could try some sample data ?
from darknet.
cvtColor(src,dst,CV_GRAY2RGB);
worked for me and able to detect desired object in frame. I am using Melaxis ToF camera.
from darknet.
Very good and thanks for confirming. If permitted by your project, also please share some sample train images you are using.
from darknet.
Closing as the issue is resolved.
from darknet.
Related Issues (20)
- Arapaho stream with camera HOT 4
- input.data HOT 2
- Yolo v3 is out, sync with the original code? HOT 3
- 0 prediction with arapaho build (Yolo V3) HOT 2
- upsample_cpu is not defined when GPU=0 HOT 2
- After 10 Minutes Arapaho program getting killed HOT 15
- Cuda 9 HOT 6
- darknet-cpp compilation failed on Ubuntu 16.04 HOT 6
- Memory corruption of Arapaho from a library HOT 4
- Cmake compile problem HOT 6
- Differences scores between Darknet and Arapaho HOT 5
- When the width and height of the input picture are not equal, the output box will shift on windows
- Add OpenCV 4.x support HOT 27
- Arapaho build issue HOT 3
- libv4l2: error getting capabilities: Inappropriate ioctl for device HOT 5
- Darknet saved weights are not giving outputs in this HOT 2
- Anyone tested darknet-cpp on Cuda 6.5 (Ubuntu 14.04)? HOT 5
- Trained in two classes the object can't be inference HOT 3
- error "identifier \"ipl_to_image\" is undefined","LineNumber": 234, File: arapaho.cpp HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from darknet.