{"id":20580975,"url":"https://github.com/nikhilroxtomar/mean-iou-in-numpy-tensorflow","last_synced_at":"2026-04-29T14:32:19.144Z","repository":{"id":91224806,"uuid":"194233061","full_name":"nikhilroxtomar/Mean-IOU-in-Numpy-TensorFlow","owner":"nikhilroxtomar","description":"A function for calculating mean iou, which can be used as a keras metrics.","archived":false,"fork":false,"pushed_at":"2019-06-29T06:43:58.000Z","size":84,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-06T12:15:52.768Z","etag":null,"topics":["iou-calculation","semantic-segmentation","tensorflow"],"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/nikhilroxtomar.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-06-28T08:01:26.000Z","updated_at":"2022-08-23T07:22:28.000Z","dependencies_parsed_at":"2023-03-20T18:17:23.171Z","dependency_job_id":null,"html_url":"https://github.com/nikhilroxtomar/Mean-IOU-in-Numpy-TensorFlow","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikhilroxtomar%2FMean-IOU-in-Numpy-TensorFlow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikhilroxtomar%2FMean-IOU-in-Numpy-TensorFlow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikhilroxtomar%2FMean-IOU-in-Numpy-TensorFlow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikhilroxtomar%2FMean-IOU-in-Numpy-TensorFlow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikhilroxtomar","download_url":"https://codeload.github.com/nikhilroxtomar/Mean-IOU-in-Numpy-TensorFlow/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikhilroxtomar%2FMean-IOU-in-Numpy-TensorFlow/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259219635,"owners_count":22823571,"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":["iou-calculation","semantic-segmentation","tensorflow"],"created_at":"2024-11-16T06:26:18.686Z","updated_at":"2026-04-29T14:32:14.124Z","avatar_url":"https://github.com/nikhilroxtomar.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mean-IOU-in-Numpy-TensorFlow\n\nMean Intersection-Over-Union is a common evaluation metric for semantic image segmentation, which first computes the IOU for each semantic class and then computes the average over classes. IOU is defined as follows: \n\u003cpre\u003eIOU = true_positive / (true_positive + false_positive + false_negative). \u003c/pre\u003e\n\nThe mean iou function defined in the above code can be used as a keras metrics in any semantic segmentation task.\n\n# Result\n\u003cimg src=\"mask.png\"\u003e\nThe above ones are the ground truth masks, and below ones are the predicted masks.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikhilroxtomar%2Fmean-iou-in-numpy-tensorflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikhilroxtomar%2Fmean-iou-in-numpy-tensorflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikhilroxtomar%2Fmean-iou-in-numpy-tensorflow/lists"}