{"id":19642288,"url":"https://github.com/xu-justin/patchmentation","last_synced_at":"2026-02-10T15:31:30.789Z","repository":{"id":63363395,"uuid":"543631647","full_name":"Xu-Justin/patchmentation","owner":"Xu-Justin","description":"A python library to perform patch augmentation.","archived":false,"fork":false,"pushed_at":"2023-02-26T10:09:15.000Z","size":36580,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-14T10:09:42.709Z","etag":null,"topics":["augmentation-libraries","dataset-augmentation","patchmentation","pypi-package","python3"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/patchmentation/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Xu-Justin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-30T14:08:11.000Z","updated_at":"2023-02-26T10:03:14.000Z","dependencies_parsed_at":"2023-02-09T03:30:51.315Z","dependency_job_id":null,"html_url":"https://github.com/Xu-Justin/patchmentation","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/Xu-Justin%2Fpatchmentation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xu-Justin%2Fpatchmentation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xu-Justin%2Fpatchmentation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xu-Justin%2Fpatchmentation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Xu-Justin","download_url":"https://codeload.github.com/Xu-Justin/patchmentation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224115710,"owners_count":17258238,"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":["augmentation-libraries","dataset-augmentation","patchmentation","pypi-package","python3"],"created_at":"2024-11-11T14:12:09.419Z","updated_at":"2026-02-10T15:31:30.751Z","avatar_url":"https://github.com/Xu-Justin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Patchmentation\n\n[![GitHub](https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge\u0026logo=github\u0026logoColor=white)](https://github.com/Xu-Justin/patchmentation)\n[![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge\u0026logo=python\u0026logoColor=ffdd54)](https://pypi.org/project/patchmentation)\n\n[![Open In Collab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Xu-Justin/patchmentation/blob/main/demo.ipynb)\n\nPatchmentation is a python library to perform patch augmentation, a data augmentation technique for object detection, that allows for the synthesis of new images by combining objects from one or more source images into a background image.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/Xu-Justin/patchmentation/blob/1320590e1f1015b1c37c241fd2a1608bd0826ea8/assets/patch-augmentation-flow.jpg?raw=true\" height=\"400\" /\u003e\n\u003c/p\u003e\n\nThe process of patch augmentation involves extracting objects of interest from the source images, transforming them, and then pasting them onto the background image to create a composite image, therefore increasing diversity at the object level. The resulting dataset offers a greater variety of object combinations within a single image, making it more robust and accurate when training object detection models.\n\n## Installation\n\nThe easiest way to install patchmentation is through pip.\n\n```bash\npip install patchmentation\n```\n\n**Note: Some functionality of patchmentation might not be working on non-Linux systems.**\n\n## External Links\n\n* GitHub Repository: https://github.com/Xu-Justin/patchmentation\n\n* PyPI: https://pypi.org/project/patchmentation\n\n* Docs: TBA\n\n* Research Paper: TBA\n\n* Benchmarking Results: https://github.com/Xu-Justin/patchmentation-yolov5\n\n---\n\nThis project was developed as part of thesis project, Computer Science, BINUS University.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxu-justin%2Fpatchmentation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxu-justin%2Fpatchmentation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxu-justin%2Fpatchmentation/lists"}