Giter VIP home page Giter VIP logo

Comments (3)

alexppppp avatar alexppppp commented on May 29, 2024

The composition of masks of the objects, which is generated during the script, can be used for instance segmentation. Just save the composition with masks into png-file. Also save classes of the objects on the composition into txt-file.

You can use the saved png- and txt-files for training an instance segmentation model using this tutorial: https://pytorch.org/tutorials/intermediate/torchvision_tutorial.html

Example
Lets suppose that the saved png-file contains pixels with values 0, 1, 2, 3, 4, 5. Pixels equal to 0 are related to background, pixels equal to other numbers are related to the objects. So, we have 5 objects on the image.

Lets suppose that the saved txt-file contains classes 2, 1, 1, 2, 2 (order matters!). It means that the object 1 is related to class 2, object 2 is related to class 1, object 3 is related to class 1, object 4 is related to class 2, object 5 is related to class 2.

Class 1 could be a cat, and class 2 could be a dog.

from synthetic-dataset-object-detection.

wrqf avatar wrqf commented on May 29, 2024

Thank you very much for your guidance. I will try my best

from synthetic-dataset-object-detection.

itay-hilel avatar itay-hilel commented on May 29, 2024

update for yolov7? add video?

from synthetic-dataset-object-detection.

Related Issues (2)

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.