Comments (12)
Lower the threshold, or get on Linux would be my advise as originally darknet was Linux-only.
from image.
Already tried lowering the threshold, but I got the same results. I will try to run that on Linux, as you suggest. Many thanks!
from image.
You might also want to take other trained models instead of tiny coco.
See ?image_darknet_model
from image.
Please make your example reproducible and make sure you use the correct network configuration, network weights and labels. See https://pjreddie.com/darknet/yolo/
from image.
Could you show me the right way to move forward please?
It's unlikely that i did wrong something since i just download the model, the weights and labels, and copied the code (even lowering the threshold) in the help.
By the way the imagine is attached below.
from image.
You need to give code that can be run with copy-pasteing in the console, otherwise, I can not help you. Also make sure the model, weights, labels are correct. These can be downloaded from https://pjreddie.com/darknet/yolo/ (just below the video you'll find the model configuration (cfg files), the deep learning weights (.weights file) and the labels are either COCO or VOC (that is indicated in the Train column).
from image.
I used the code below :
library(devtools)
library(image.darknet)
f <- system.file(package="image.darknet", "include", "darknet", "data", "coco.names")
labels <- readLines(f)
download.file(url = "http://pjreddie.com/media/files/tiny-yolo.weights", destfile = weights)
weights <- file.path(system.file(package="image.darknet", "models"), "tiny-yolo.weights")
yolo_tiny_coco <- image_darknet_model(type = 'detect',
model = "tiny-yolo.cfg",
weights = system.file(package="image.darknet", "models", "tiny-yolo.weights"),
labels = labels)
yolo_tiny_coco
x<-image_darknet_detect("C:/Users/Ciro1/Desktop/immagini/cat.jpg",yolo_tiny_coco)
While the output has been the following:
C:/Users/Ciro1/Desktop/immagini/cat.jpg: Predicted in 31.884000 seconds.
Boxes: 845 of which 0 above the threshold.
I tried also lowering the threshold but I got the same results, as I told you before. What do you suggest?
from image.
Can you make sure you I can run this in a clean R session from my side.
from image.
Yes, I am sure. Once I have downloaded the models,labels and weights, that's the entire code I used.
from image.
Your example is not reproducible. You need to provide code that I can just copy-paste in my console and which will work without errors. Currently your code contains errors when run from a clean session.
from image.
I don't know what to do more than this, I am struggling to understand what I am doing wrong, but it looks impossible.
Don't know if it depends from the fact that I am using Windows, but actually I can't use Linux and furthemore I don't see any reasons why it shouldn't work on Windows.
I also had a look also to the code which is on ?image_darknet_model , and it's just like mine.
from image.
after struggling so long, I decided to install linux and magically it worked, so the code was not wrong. No idea about the reasons why it happens, but that is
By the way thanks for your help!
from image.
Related Issues (20)
- build notes
- Make wrapper around pretrained CNN https://github.com/ShiqiYu/libfacedetection
- image.libfacedetection fails with some images HOT 4
- implement densecrf
- Print output bounding boxes and labels from image_darknet_detect
- notes to myself
- Object recognition: apply *h5 cnn model to find an specific handwritten digit HOT 1
- [image.darknet] output error: file.exists(model) is not TRUE HOT 10
- Crash R session HOT 2
- CRAN issues HOT 2
- add DBoW2 HOT 2
- image_darknet_detect: "file" from memory object? HOT 1
- Extract lines from image_contour_detector HOT 7
- R crash when `union = T` in `image_line_segment_detector()` HOT 19
- how can I save the result of image_darknet_model into a R object? HOT 7
- installation error HOT 2
- namelist error on R HOT 4
- Session Crash HOT 9
- Line Segment Detector pixel matrix is 0 when union = T HOT 1
- image_surf only returns one non-zero dimension HOT 2
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 image.