Giter Club home page Giter Club logo

Comments (12)

jwijffels avatar jwijffels commented on August 19, 2024 1

Lower the threshold, or get on Linux would be my advise as originally darknet was Linux-only.

from image.

xlxlcyRuSReXxlxl avatar xlxlcyRuSReXxlxl commented on August 19, 2024

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.

jwijffels avatar jwijffels commented on August 19, 2024

You might also want to take other trained models instead of tiny coco.
See ?image_darknet_model

from image.

jwijffels avatar jwijffels commented on August 19, 2024

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.

xlxlcyRuSReXxlxl avatar xlxlcyRuSReXxlxl commented on August 19, 2024

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.

Thank you again !
cat1

from image.

jwijffels avatar jwijffels commented on August 19, 2024

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.

xlxlcyRuSReXxlxl avatar xlxlcyRuSReXxlxl commented on August 19, 2024

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.

jwijffels avatar jwijffels commented on August 19, 2024

Can you make sure you I can run this in a clean R session from my side.

from image.

xlxlcyRuSReXxlxl avatar xlxlcyRuSReXxlxl commented on August 19, 2024

Yes, I am sure. Once I have downloaded the models,labels and weights, that's the entire code I used.

from image.

jwijffels avatar jwijffels commented on August 19, 2024

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.

xlxlcyRuSReXxlxl avatar xlxlcyRuSReXxlxl commented on August 19, 2024

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.

xlxlcyRuSReXxlxl avatar xlxlcyRuSReXxlxl commented on August 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.