{"id":15907931,"url":"https://github.com/cjpurackal/shapes","last_synced_at":"2025-07-01T23:04:41.536Z","repository":{"id":43225660,"uuid":"183565517","full_name":"cjpurackal/shapes","owner":"cjpurackal","description":"A sample dataset generator for experimenting with computer vision models for classification, detection and segmentation before testing it out with real world datasets","archived":false,"fork":false,"pushed_at":"2023-10-03T23:37:48.000Z","size":250,"stargazers_count":1,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T23:34:05.563Z","etag":null,"topics":["computer-vision","dataset-generation","deep-learning"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cjpurackal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-26T05:51:35.000Z","updated_at":"2023-01-20T05:40:05.000Z","dependencies_parsed_at":"2024-10-28T11:35:59.922Z","dependency_job_id":"fb076195-fe3c-4b0d-9751-771cfa970b4d","html_url":"https://github.com/cjpurackal/shapes","commit_stats":{"total_commits":63,"total_committers":5,"mean_commits":12.6,"dds":"0.39682539682539686","last_synced_commit":"284628706ce26048c717af8a5d7251cfb2466177"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cjpurackal/shapes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjpurackal%2Fshapes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjpurackal%2Fshapes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjpurackal%2Fshapes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjpurackal%2Fshapes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cjpurackal","download_url":"https://codeload.github.com/cjpurackal/shapes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjpurackal%2Fshapes/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263047660,"owners_count":23405280,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["computer-vision","dataset-generation","deep-learning"],"created_at":"2024-10-06T14:06:44.842Z","updated_at":"2025-07-01T23:04:41.499Z","avatar_url":"https://github.com/cjpurackal.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# shapes :large_blue_circle: :large_orange_diamond: :small_red_triangle: :red_circle:\nA sample dataset generator for experimenting with computer vision models for classification, detection and segmentation before testing it out with real world datasets\n\n# Usage\n```\nusage: run.py [-h] [--save_dir SAVE_DIR]\n              [--image_size IMAGE_SIZE [IMAGE_SIZE ...]]\n              [--num_images NUM_IMAGES] [--shapes SHAPES [SHAPES ...]]\n              [--shape_color SHAPE_COLOR] [--shuffle_color SHUFFLE_COLOR]\n              [--task_type TASK_TYPE]\n\noptional arguments:\n  -h, --help            show this help message and exit\n  --save_dir SAVE_DIR   path to where you want to save the dataset\n  --image_size IMAGE_SIZE [IMAGE_SIZE ...]\n                        size of the image\n  --num_images NUM_IMAGES\n                        number of images for your dataset\n  --shapes SHAPES [SHAPES ...]\n                        shapes that you require in your dataset. Available:\n                        ['rect', 'circle']\n  --shape_color SHAPE_COLOR\n                        specify a particular color for all the shapes\n  --shuffle_color SHUFFLE_COLOR\n                        shuffle colors for the shapes\n  --task_type TASK_TYPE\n                        specify type of task. Available: ['classification',\n                        'detection', 'segmentation']\n\n```\n# Example\n\nGenerate a dataset of circles and rectangles with bounding boxes\n```\npython run.py --save_dir /tmp/ --image_size 500 500 --num_images 5 --shapes circle rect\n```\n\nOr you can run simply with defualt config\n```\n python run.py --save_dir /tmp/\n```\n\nGenerate a dataset for classification\n```\npython run.py --task_type classification --save_dir /tmp/\n```\n# Visualize \n\nVisualize the generated dataset for object detection\n```\npython visualize.py --dataset_dir /tmp/dataset\n```\n![](imgs/shapes_2.png)\n![](imgs/readme_1.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjpurackal%2Fshapes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcjpurackal%2Fshapes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjpurackal%2Fshapes/lists"}