Skip to content

Machine learning Datasets management apps/scripts, Coco single class/category download, folder sorting...

Notifications You must be signed in to change notification settings

Oil3/ML-py-Tools

Repository files navigation

download_coco_categories.py - downloads specific classes from the coco dataset, multi-threaded, also creates yolo-format label files for each image. image Interactive as in prompts you what and where with then a progress bar, multi-threaded as in as fast as possible, also runnable for exemple, like py script.py 0 for class 0 in a newfolder in current directoy, or like py script.py 1,33,56,57,70 download_path with specific directory.

Structure.py - recreates folder structure while choosing how many files are copied from the original folders. I use to create validation datesets from training datasets.

Json_to_Folders.py - sorts files into folders based on selected attributes values of a JSON file. It prompts for the number of files to process in each folder, with the option to process all files.

videocrop_path_top_right_bot_left.py - Crops a video file by removing specified amounts of pixels from its sides (top, right, bottom, left). py script.py video.mp4 100 0 200 20 would create a video_cropped.mp4 with 100 pixels removed from the top, 0 pixels removed from the right side, 200 pixels removed from the bottom, and 20 pixels removed from the left side.

nospaces.swift - removes python-breaking characters of files within chosen folder, and replaces spaces by underscores.
swift nospaces.swift asks for folder if not given as argument. Logs changes (old name - new name) in a txt file within folder and just had to be a Swift script.

About

Machine learning Datasets management apps/scripts, Coco single class/category download, folder sorting...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published