{"id":21179398,"url":"https://github.com/oil3/ml-py-tools","last_synced_at":"2025-07-09T22:32:22.807Z","repository":{"id":232291190,"uuid":"753895006","full_name":"Oil3/ML-py-Tools","owner":"Oil3","description":"Collection of scripts for dataset management, bbox convert, mass rename, mass image resize.. Coco single class/category download,  folder sorting... Interactive scripts, positional arguments,  minimum imports, nothing external to download","archived":false,"fork":false,"pushed_at":"2025-02-06T15:41:46.000Z","size":77,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T08:11:25.197Z","etag":null,"topics":["annotation-converter","bbox","coreml","labels","resize-images","script","yolo"],"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/Oil3.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":"2024-02-07T01:40:33.000Z","updated_at":"2025-02-06T15:41:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"8a498db4-ec92-4ef6-b559-b0ee0739e8a7","html_url":"https://github.com/Oil3/ML-py-Tools","commit_stats":null,"previous_names":["oil3/ml-py-tools"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Oil3/ML-py-Tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oil3%2FML-py-Tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oil3%2FML-py-Tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oil3%2FML-py-Tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oil3%2FML-py-Tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Oil3","download_url":"https://codeload.github.com/Oil3/ML-py-Tools/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oil3%2FML-py-Tools/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264504612,"owners_count":23618829,"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":["annotation-converter","bbox","coreml","labels","resize-images","script","yolo"],"created_at":"2024-11-20T17:30:14.092Z","updated_at":"2025-07-09T22:32:22.801Z","avatar_url":"https://github.com/Oil3.png","language":"Python","readme":"### Scripts with no obscure dependencies, mac and windows friendly, interactive or with defaults, fast.  \n\n| Script | Description |\n|--------|------------|\n| **videoFrameExtractor.py** | Interactive script to extract frames, super fast. OpenCV required, nothing more. Accepts file or folder input, configurable stride, and start/end frames. |\n| **yobb_to_yolo_bbox.py** | Converts oriented bbox labels into normal YOLO bbox. Interactive, multithreaded, error-checking, and continues processing even on errors. If an image folder is provided, it verifies that images have their label pairs. Creates a backup before overwriting labels. |\n| **mass_rename.py** | Renames label/image pairs with the same random name. Usage: `python3 script.py labels_path images_path`. |\n| **resize.py** | Interactive script to resize images inside a folder using PIL. Supports interpolation methods: nearest, bilinear, bicubic, and lanczos. \"All\" option available for comparison. |\n| **download_coco_categories.py** | Downloads specific classes from the COCO dataset, multi-threaded, and creates YOLO-format label files. Interactive with prompts and a progress bar, but also allows direct CLI usage: `py script.py 0` (class 0) or `py script.py 1,33,56,57,70 download_path`  |\n| **Structure.py** | Recreates folder structure while allowing selection of how many files to copy from the original folders. Useful for creating validation datasets from training datasets. |\n| **Json_to_Folders.py** | Sorts files into folders based on selected attribute values from a JSON file. Prompts for the number of files per folder with an option to process all files. |\n| **videocrop_path_top_right_bot_left.py** | Crops a video by removing specified pixel amounts from its sides (top, right, bottom, left). Example usage: `py script.py video.mp4 100 0 200 20` (removes 100 pixels from top, 0 from right, 200 from bottom, 20 from left). |\n| **nospaces.swift** | Removes Python-breaking characters from filenames in a chosen folder and replaces spaces with underscores. Usage: `swift nospaces.swift` (prompts for folder if not provided). Logs changes (old name → new name) in a text file within the folder. |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foil3%2Fml-py-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foil3%2Fml-py-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foil3%2Fml-py-tools/lists"}