Giter VIP home page Giter VIP logo

Comments (3)

alexheat avatar alexheat commented on May 26, 2024

Hello I understand your requirement @vincentlux . I have done some special work to handle images that don't have any annotations but it sounds like it is not working perfectly yet. Including a reference to the image in the coco file output sounds like the ideal behavior to me too.

Could you possibly share the dataset that you are using for testing (and your code as well) so that I can make sure it works for that type of dataset?

from pylabel.

vincentlux avatar vincentlux commented on May 26, 2024

Thanks for the quick reply! I currently don't have a public dataset with background images in hand... I want to add images without annotations because I am trying to add background images to object detection models to reduce False Positive cases. Adding this to YOLOv5 dataset is easy (just copy/paste images to the ./images folder), but then I got the problem I mentioned when converting to coco data format...

from pylabel.

alexheat avatar alexheat commented on May 26, 2024

Hello @vincentlux. I think this will work if you create an empty annotation files for each of the images. For example if you add background1.jpg create an annotation file called background1.txt. The file can be empty, with no labels.

Can you try that?

I read that link that you provided above and I think that even the yolo models will require the empty annotation files in order to include the background images when training. I saw a comment that said "No labels are required for background images." I think that means that no labels are required within the annotation files but the annotation files are still required.

from pylabel.

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.