GithubHelp home page GithubHelp logo

dataset_image_segmentation's Introduction

1. Simple data set for image segmentation tasks (Enhanced version)

This version randomly generates up to 3 objects per image. Then, the mask is created accordingly. Each object has a different mask: where a triangle is present, the mask has the value "1"; where a rectangle is present, the mask has the value "2"; and where a circle is present, the mask has the value "3". In all other areas where there are no objects present, the mask has a value of "0". You can find more examples below for your intuition:

sample_1 sample_2 sample_3

Data is already splited into dev (4500 images) and test pairs (500 images). You can download it from here.

2. Simple data set for image segmentation tasks

I was searching for a simple dataset where I could have an object and its corresponding mask (white for object present, black for object not present). I found nothing that met my expectations, so I created this simple script to generate three different objects - triangles, rectangles, and circles. They are generated in random colors and positions on the canvas, and the corresponding masks are also generated. You can run the Python script on your local machine or download some samples I've created and stored in the folder here.

Please, don't forget to change following parameters before running the script on your local machine:

NUM_IMAGES = 15
STORAGE_PATH = 'E:\\data_sets\\shapes\\'

Here are a couple of examples of original/mask pairs:

triangle_original1 triangle_mask1 triangle_original2 triangle_mask2

circle_original1 circle_mask1 circle_original2 circle_mask2

rectangle_original1 rectangle_mask1 rectangle_original2 rectangle_mask2

If you use this code to generate your own data, please remember to cite this source as Dataset_Image_Segmentation. Thank you!

dataset_image_segmentation's People

Contributors

zbj3ji avatar

Stargazers

 avatar

Watchers

 avatar

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.