{ "info": { "author": "Petro Liashchynskyi", "author_email": "", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Rudi\n\nIf you want to train a CNN, the custom dataset must be a collection of images of the same aspect ratio, extension, etc.\nThis script is gonna do that for you. Rudi is a command line tool for converting and augmenting your dataset of images.\n\n# Installation\n\nInstall `Python3` and then run the following command:\n```sh\npip install rudi\n```\n\nor clone the repo firs \n```sh\ngit clone https://github.com/liashchynskyi/rudi\ncd rudi\n```\nand run `python setup.py install` or `pip install .`\n\n# Usage\n![Imgur](https://i.imgur.com/KIi431Z.png)\n---\n* [Convert a dataset](#convert-a-dataset)\n* [Dataset augmentation](#dataset-augmentation)\n* [Changelog](#changelog)\n* [Donate](#donate)\n\n# Convert a dataset\n\nFor example, you have a basic tree of the root directory (the script will also work if the root containt only images without other dirs).\n```\nroot \n\u0432\u201d\u201d\u0432\u201d\u0402\u0432\u201d\u0402\u0432\u201d\u0402class1\n\u0432\u201d\u201a \u0432\u201d\u201a image_c1.png\n\u0432\u201d\u201a \u0432\u201d\u201a image_c2.png\n\u0432\u201d\u201a \u0432\u201d\u201d\u0432\u201d\u0402\u0432\u201d\u0402\u0432\u201d\u0402subdirectory \n\u0432\u201d\u201d\u0432\u201d\u0402\u0432\u201d\u0402\u0432\u201d\u0402class2\n \u0432\u201d\u201a image_c1.png\n \u0432\u201d\u201a image_c2.png\n```\n\nJust run `rudi convert --help`\n![Imgur](https://i.imgur.com/GAWRBja.png)\n\nLet's convert images in current directory to `jpg` format and set new aspect ratio to `224px`.\n```sh\nrudi convert -t jpg --target-size=224 ./\n```\nOutput images will be saved in `output` dir of the root.\n\n# Dataset augmentation\n\nCommand: `rudi augment --help`\n![Imgur](https://i.imgur.com/64Ijbjr.png)\n\nThere are a few supported operations:\n* `flip` - random image flipping followed by `-p` option\n* `rotate` - random image rotation followed by `-p`,`-mlr` and `-mrr` options\n* `distortion` - random image distortion followed by `-p`,`-mg` and `-gwh` options\n* `skew` - random image skewing followed by `-p` option and constant `magnitude` value of `0.7`\n* `zoom` - random image zooming followed by `-p`,`-minf` and `-maxf` options\n\nOutput images will be saved in `output` dir of the root.\n\n# Changelog\n\n* `1.0.1`\n * Fixed problem when converting images. Now if image is placed in subdirectory\n then that subdir also will be created in `output` dir. \n\n\n# Donate\nJust put a star on this repository \u0440\u045f\u040a\u045b Thanks!\n\n
\nmade by @liashchynskyi\n
", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/liashchynskyi/rudi", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "rudi", "package_url": "https://pypi.org/project/rudi/", "platform": "", "project_url": "https://pypi.org/project/rudi/", "project_urls": { "Homepage": "https://github.com/liashchynskyi/rudi" }, "release_url": "https://pypi.org/project/rudi/1.0.1/", "requires_dist": null, "requires_python": "", "summary": "Small, fast and simple Python CLI image converter for CNNs.", "version": "1.0.1" }, "last_serial": 5621997, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "83dcbe822615628f5479919c8cc1299f", "sha256": "55c572939f5419da597acd890209139b739ea6d70b6571a2db46d085fb10d9ca" }, "downloads": -1, "filename": "rudi-1.0.tar.gz", "has_sig": false, "md5_digest": "83dcbe822615628f5479919c8cc1299f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3836, "upload_time": "2019-07-30T15:07:34", "url": "https://files.pythonhosted.org/packages/da/ca/54fd1035ce77c915ca013f18d2e2b553173f352e0ca2c19e1039063ea236/rudi-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "caae2f8fa2aaddd64bb6d238c6eb7451", "sha256": "26aad6cb098796bd0a2730cb463e80c66d0ce6d114a8198e053757772417ab5d" }, "downloads": -1, "filename": "rudi-1.0.1.tar.gz", "has_sig": false, "md5_digest": "caae2f8fa2aaddd64bb6d238c6eb7451", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4109, "upload_time": "2019-08-02T05:35:03", "url": "https://files.pythonhosted.org/packages/26/97/568b5a9cb33553bd9c8a739ec77af639c702f854997c6449e60674be71ab/rudi-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "caae2f8fa2aaddd64bb6d238c6eb7451", "sha256": "26aad6cb098796bd0a2730cb463e80c66d0ce6d114a8198e053757772417ab5d" }, "downloads": -1, "filename": "rudi-1.0.1.tar.gz", "has_sig": false, "md5_digest": "caae2f8fa2aaddd64bb6d238c6eb7451", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4109, "upload_time": "2019-08-02T05:35:03", "url": "https://files.pythonhosted.org/packages/26/97/568b5a9cb33553bd9c8a739ec77af639c702f854997c6449e60674be71ab/rudi-1.0.1.tar.gz" } ] }