{"id":16364600,"url":"https://github.com/keyurparalkar/semantic-segmentation-with-unets","last_synced_at":"2025-07-23T10:34:27.273Z","repository":{"id":86712064,"uuid":"166631910","full_name":"keyurparalkar/Semantic-Segmentation-with-UNETs","owner":"keyurparalkar","description":"Semantic segmentation via UNETs","archived":false,"fork":false,"pushed_at":"2019-01-20T06:53:01.000Z","size":1001,"stargazers_count":9,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T16:21:19.049Z","etag":null,"topics":["computer-vision","deep-learning","fastai","pascal-voc-dataset","pytorch","segmentation-task"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/keyurparalkar.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-01-20T06:46:57.000Z","updated_at":"2024-12-02T09:25:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"26bc66ad-e19c-40ec-8afd-20346059bf4a","html_url":"https://github.com/keyurparalkar/Semantic-Segmentation-with-UNETs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/keyurparalkar/Semantic-Segmentation-with-UNETs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keyurparalkar%2FSemantic-Segmentation-with-UNETs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keyurparalkar%2FSemantic-Segmentation-with-UNETs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keyurparalkar%2FSemantic-Segmentation-with-UNETs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keyurparalkar%2FSemantic-Segmentation-with-UNETs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keyurparalkar","download_url":"https://codeload.github.com/keyurparalkar/Semantic-Segmentation-with-UNETs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keyurparalkar%2FSemantic-Segmentation-with-UNETs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266663047,"owners_count":23964676,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","deep-learning","fastai","pascal-voc-dataset","pytorch","segmentation-task"],"created_at":"2024-10-11T02:30:54.408Z","updated_at":"2025-07-23T10:34:27.260Z","avatar_url":"https://github.com/keyurparalkar.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Semantic segmentation with UNET\n\n| Original Image | Predicted Segmentation Image | Image with segmentation mask|\n| ------ |---------| ------------------|\n|\u003cimg src=\"./examples/person.jpg\" width=\"224\" height=\"224\"\u003e | \u003cimg src=\"./examples/person_seg.png\" width=\"224\" height=\"224\"\u003e| \u003cimg src=\"./examples/overlap_seg.png\" width=\"224\" height=\"224\"\u003e\n\n\nThis project focuses on implementing semantic segmentation on pascal VOC dataset using UNET. Implementation of UNET is achieved with fastai library. Accuracy achieved is **78.75%** with **output image size 224x224**. GPU used for this project: **NVIDIA GeForce GTX 1050**\n\n## DATASET\n--------\nPascal VOC 2012 challenge [dataset](http://host.robots.ox.ac.uk/pascal/VOC/) is popular for object detection and segmentation task. This dataset consists of images which belong to 20 different types of objects. Therefore, 21 classes for predictions including background(class index=0):\n```\nPerson: person\nAnimal: bird, cat, cow, dog, horse, sheep\nVehicle: aeroplane, bicycle, boat, bus, car, motorbike, train\nIndoor: bottle, chair, dining table, potted plant, sofa, tv/monitor\n```\n\nClass indices for semantic segmentation task:\n```\n0=background, 1=aeroplane, 2=bicycle, 3=bird, 4=boat, 5=bottle, 6=bus, 7=car , 8=cat, 9=chair, 10=cow, 11=diningtable, 12=dog, 13=horse, 14=motorbike, 15=person, 16=potted plant, 17=sheep, 18=sofa, 19=train, 20=tv/monitor\n```\nmore example on semnatic segmentation on pascal voc dataset = http://host.robots.ox.ac.uk/pascal/VOC/voc2012/segexamples/index.html\n\n\n### Downloading dataset:\nDownload the development kit for training/validation data. More information\n```\nhttp://host.robots.ox.ac.uk/pascal/VOC/voc2012/#data\n```\n\nAlternative resource of downloading the dataset is using:\n```\nhttps://s3.amazonaws.com/fast-ai-imagelocal/pascal-voc.tgz\n```\n\n### Directory structure:\nAfter downloading the development kit following will be it's folder structure:\n```\nVOCdevkit/VOC2012\nVOCdevkit/VOC2012/Annotations\nVOCdevkit/VOC2012/ImageSets\nVOCdevkit/VOC2012/JPEGImages\nVOCdevkit/VOC2012/SegmentationClass\nVOCdevkit/VOC2012/SegmentationObject\n```\n\n### Libraries\n```\nfastai\nnumpy\njupyter notebook\n```\n\n### Outputs:\ninput and out images\n\n| Input Images | Predicted Segmentation mask| Image with segmentation mask|\n| -----------| ----------------| ----------|\n| \u003cimg src=\"./examples/aeroplane.jpeg\" width=\"224\" height=\"224\"\u003e | \u003cimg src=\"./examples/aeroplane_seg.png\" width=\"224\" height=\"224\"\u003e| \u003cimg src=\"./examples/aeroplane_overlap_seg.png\" width=\"224\" height=\"224\"\u003e|\n| \u003cimg src=\"./examples/person_bicycle.jpg\" width=\"224\" height=\"224\"\u003e | \u003cimg src=\"./examples/person_bicycle_seg.png\" width=\"224\" height=\"224\"\u003e| \u003cimg src=\"./examples/person_bicycle_overlap_seg.png\" width=\"224\" height=\"224\"\u003e|\n| \u003cimg src=\"./examples/train.jpeg\" width=\"224\" height=\"224\"\u003e | \u003cimg src=\"./examples/train_seg.png\" width=\"224\" height=\"224\"\u003e| \u003cimg src=\"./examples/train_overlap_seg.png\" width=\"224\" height=\"224\"\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeyurparalkar%2Fsemantic-segmentation-with-unets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeyurparalkar%2Fsemantic-segmentation-with-unets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeyurparalkar%2Fsemantic-segmentation-with-unets/lists"}