{ "info": { "author": "koji kanao", "author_email": "koji.kanao@nyu.edu", "bugtrack_url": null, "classifiers": [], "description": "

\n \n

\n\n[![PyPI version](https://badge.fury.io/py/pypi.svg)](https://pypi.org/project/ictrainer/)\n### icTrainer is a python module which allows users to train image classifier easily\n\nBasically, this module is for `python3`\n## Install\n\n```\n$ pip install ictrainer\n```\nAlso you can install manually. \n```\nclone repo\n$ git https://github.com/koji/icTrainer.git\n$ cd icTrainer/ictrainer\n$ python setup.py install\n```\n\n## How to Use\nIn this gude, we will create a dog/cat image classifier.\n### 1.Collect Images\nhttps://icrawler.readthedocs.io/en/latest/ \n\n```\n$ ictrainer --mode collect --keyword dog -n 250\n$ ictrainer --mode collect --keyword cat -n 250\n```\nYou'll have dogs & cats images under `dataset` folder.\n\n\n### 2. Resize images\nIn this step, we will change all images size for training. The current input size must be `320 x 180`(required).\nThis step may be mess up images you collected, so you need to check all images manually. In the furture, there will be a function that save your time. \n\n```\n$ ictrainer --mode resize --target dog\n$ ictrainer --mode resize --target cat\n```\n\nFor people want to use resize mode for other thing, you can use reize images with the following command. \nThe folder structure should be the same the above. \n```\n$ ictrainer --mode resize --target cat --image_width 480 --image_height 320\n```\n\n### 3.Create folders for classes\nThis step, we'll need to create folders and distribute images to `train` & `validation` folder.\n\n#### 3-1. create folders\nCreate a couple of folders under dataset. \nThis step will be automated in the future. \n```\n dataset\n \u251c\u2500\u2500 train\n \u2502\u00a0\u00a0 \u251c\u2500\u2500 cat\n \u2502\u00a0\u00a0 \u2514\u2500\u2500 dog\n \u2514\u2500\u2500 val\n \u251c\u2500\u2500 cat\n \u2514\u2500\u2500 dog\n```\n\n#### 3-2. distribute images\nMove images we got via `image collect mode`. In this case, probably we have 250 images for each other.\nWe will put 225 images for train and 25 images for validation so that `train/dog` has 225 images and `validation/dog` has 25 images. The cats should be the same.\n\n### 4.Train Images\nThere are some options we need to put. The most important one is `--classes` which will be labels. In this case, we have dog & cat, so we need to put them as classes.\n`--batch`: batch size default 16 \n`--epoch`: epoch default 30 \n`--mname`: output model name \n`--lr`: learning rate default 1e-3 \n`momentum`: mementum default 0.9 \n\nWe will use default settings.\n\n```\n$ ictrainer --mode train --classes \"cat\" \"dog\" --mname \"dogAndcat_\"\n```\n\n## code\nThis code will be pushed soon. (cleaning up now)\n\n## pre-train model\n#### `smart device` \nhttps://github.com/koji/icTrainer/blob/master/model/smartdevice_epoch30.h5 \n```\nclasses = ['echo', 'echoplus', 'echoshow', 'googlehome', 'googlehomemini', 'nest'] \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/koji/ictrainer", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "ictrainer", "package_url": "https://pypi.org/project/ictrainer/", "platform": "", "project_url": "https://pypi.org/project/ictrainer/", "project_urls": { "Homepage": "https://github.com/koji/ictrainer" }, "release_url": "https://pypi.org/project/ictrainer/0.2.7/", "requires_dist": null, "requires_python": "", "summary": "cli tool for training your own image classifier with one line command!", "version": "0.2.7" }, "last_serial": 5257783, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "eb48326ef6ec2bd1c2ad477a439d9d99", "sha256": "4e009584f6b5c49e62f6e64359f2bb935c5ca2320461f2e9f3a4c881cdf2aa38" }, "downloads": -1, "filename": "ictrainer-0.1.0.tar.gz", "has_sig": false, "md5_digest": "eb48326ef6ec2bd1c2ad477a439d9d99", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4389, "upload_time": "2019-02-25T17:22:21", "url": "https://files.pythonhosted.org/packages/00/1b/5a2852b7a455d31d761c745d1c3ac21742250ec515abc87c647986ef5acb/ictrainer-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "73e24a63e585cec8517fe734cd84cf62", "sha256": "5514fac4c4ed8317ac784bfbb929f99247a57d058e876fd032cd8cd64ce79554" }, "downloads": -1, "filename": "ictrainer-0.1.1.tar.gz", "has_sig": false, "md5_digest": "73e24a63e585cec8517fe734cd84cf62", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4394, "upload_time": "2019-02-25T17:27:07", "url": "https://files.pythonhosted.org/packages/dd/90/306e215db9b8f06e3f170d40cac056d716a7e9689231099a60022ccee0ab/ictrainer-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "d5cb006a344ca32d86068e45e2d90c8f", "sha256": "6001bc13ced6be02fe47169a96b6c99288a58ea72605ad1fd47e46c9c1c0dad5" }, "downloads": -1, "filename": "ictrainer-0.1.2.tar.gz", "has_sig": false, "md5_digest": "d5cb006a344ca32d86068e45e2d90c8f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4394, "upload_time": "2019-02-26T00:47:38", "url": "https://files.pythonhosted.org/packages/98/fe/8fb93fa43ab1719ae9187b3cf21834103ba42012d5d994b6b26fc83c8cdc/ictrainer-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "69a829b7da3cf517ecd1241e6965a620", "sha256": "9c93e9c1f40393d7dd18582ee6f8ad7332994e526535c3728aeb2c9eefd6177a" }, "downloads": -1, "filename": "ictrainer-0.1.3.tar.gz", "has_sig": false, "md5_digest": "69a829b7da3cf517ecd1241e6965a620", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4476, "upload_time": "2019-02-26T02:14:01", "url": "https://files.pythonhosted.org/packages/34/86/c2fd04817b9587f132b1402e2ad3b45ba9d9ceacf8475c0d8060ffe77320/ictrainer-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "e09a30f9a0fe3ebae3ec61a9f25e2b92", "sha256": "31cb07631e7370a7d98069e98d949a70edceb3f875845079786b29ee4b6539a7" }, "downloads": -1, "filename": "ictrainer-0.1.4.tar.gz", "has_sig": false, "md5_digest": "e09a30f9a0fe3ebae3ec61a9f25e2b92", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4605, "upload_time": "2019-03-01T07:10:13", "url": "https://files.pythonhosted.org/packages/58/58/3fa3f0c9b55399dee907876dcd3e45972781f93cff635555ee5f43e74181/ictrainer-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "d5fcf89a6ebec70850ab5241011cfec9", "sha256": "1784231da2ab684763c7c0e924450d25c2e85951260645bdd1cf9fdf0e65606e" }, "downloads": -1, "filename": "ictrainer-0.1.5.tar.gz", "has_sig": false, "md5_digest": "d5fcf89a6ebec70850ab5241011cfec9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4615, "upload_time": "2019-03-01T07:37:32", "url": "https://files.pythonhosted.org/packages/28/32/2d6008eba30cfaaa15fddcd84799722349018a14769844f96519439e5b5b/ictrainer-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "fccddf85f870402d54ad790689edff7f", "sha256": "1bf689760be4d8f661b22f6f64082734d6f409d056cb0332888722b86a96839c" }, "downloads": -1, "filename": "ictrainer-0.1.6.tar.gz", "has_sig": false, "md5_digest": "fccddf85f870402d54ad790689edff7f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4965, "upload_time": "2019-03-02T04:57:47", "url": "https://files.pythonhosted.org/packages/49/a4/1df3ac3d9fde477f2465bae44b9ca6843553032de4916026c54bdd4ef2b4/ictrainer-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "2c88521bb4d2d6a2bcb6b2f392b4ad5a", "sha256": "4f23a7ff1b2dd67b89c14fd28189641293a2fc1430bef7a0f1109b204b2ef62b" }, "downloads": -1, "filename": "ictrainer-0.1.7.tar.gz", "has_sig": false, "md5_digest": "2c88521bb4d2d6a2bcb6b2f392b4ad5a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6195, "upload_time": "2019-03-02T18:40:08", "url": "https://files.pythonhosted.org/packages/5b/66/8557e4307e2c371f550b7f8549ce18bc75885234e62eb6541d56f95693ec/ictrainer-0.1.7.tar.gz" } ], "0.1.8": [ { "comment_text": "", "digests": { "md5": "51e51b7a8f5d1ceb47f6ceb619e2aadd", "sha256": "4040e26b94a3d29fc43761cab97fe194b0097bd759e82ee69d44a0ad6b1c00a9" }, "downloads": -1, "filename": "ictrainer-0.1.8.tar.gz", "has_sig": false, "md5_digest": "51e51b7a8f5d1ceb47f6ceb619e2aadd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6241, "upload_time": "2019-03-02T18:43:53", "url": "https://files.pythonhosted.org/packages/eb/90/743a1e2d875a0afc4ff5e61e6e98b683c4af4b214d425e8d2d7e1a60d8e2/ictrainer-0.1.8.tar.gz" } ], "0.1.9": [ { "comment_text": "", "digests": { "md5": "e20b3acaef07607a3c3f4dde698a4724", "sha256": "587fa87be241eb3c2974a64ba88695307a4888c83fb0ab0c27cf1ecff59460f2" }, "downloads": -1, "filename": "ictrainer-0.1.9.tar.gz", "has_sig": false, "md5_digest": "e20b3acaef07607a3c3f4dde698a4724", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6601, "upload_time": "2019-03-02T18:47:36", "url": "https://files.pythonhosted.org/packages/a5/15/c810ac1d69e76e942668d9e9ff302bc542965ad7fe21e715a2a598575bdd/ictrainer-0.1.9.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "e6a63cc2c21e3687c39a4ae4bf1f4287", "sha256": "11771d0e31c6aade51da0c4e49fd5288099dd6c2ae1a95de638f8ebeb8141091" }, "downloads": -1, "filename": "ictrainer-0.2.0.tar.gz", "has_sig": false, "md5_digest": "e6a63cc2c21e3687c39a4ae4bf1f4287", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7567, "upload_time": "2019-03-16T05:27:52", "url": "https://files.pythonhosted.org/packages/b7/f0/374ad6f03dab62cac9e8232e8a600d777285161ec65a5ab379531752b8f5/ictrainer-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "61b56893cdbf511b4548d312c4b2bd0b", "sha256": "f33492f4a3c3de59eef09a324539f6bac2922984a54c2879006c1f85d5feaf1d" }, "downloads": -1, "filename": "ictrainer-0.2.1.tar.gz", "has_sig": false, "md5_digest": "61b56893cdbf511b4548d312c4b2bd0b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7543, "upload_time": "2019-03-16T05:46:16", "url": "https://files.pythonhosted.org/packages/c9/79/89690f99a237a5472f1476ac8df23f040151e3ef309ecfe837bfb24fc222/ictrainer-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "b3a91f36d9bf2871ba2ff37ee189ea7d", "sha256": "16a870b12f3937d5871350727c7d18d0fb4f58808e5170cf24d77a5fc4764c46" }, "downloads": -1, "filename": "ictrainer-0.2.2.tar.gz", "has_sig": false, "md5_digest": "b3a91f36d9bf2871ba2ff37ee189ea7d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7546, "upload_time": "2019-05-12T01:28:35", "url": "https://files.pythonhosted.org/packages/02/eb/9d03ca208124381ba7049dd1ff152b13c02037c365ffd0b3500e1721c1cc/ictrainer-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "ab4ae94586a992426b98a1334d7b7161", "sha256": "144be74773d674f700daf33ec927da62b69faa75a1ddb0e9bf2c83d55a378762" }, "downloads": -1, "filename": "ictrainer-0.2.3.tar.gz", "has_sig": false, "md5_digest": "ab4ae94586a992426b98a1334d7b7161", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7544, "upload_time": "2019-05-12T01:33:12", "url": "https://files.pythonhosted.org/packages/25/98/34cc0df03ad914a32eddf280fae7a257ab3a3ab251873bd9b2312a725f3a/ictrainer-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "2b86395062f26853ae4869f5e2c64ea3", "sha256": "a637f8e3793cb13f779735c0692f94ff38bfa598658f1070be364128945331d1" }, "downloads": -1, "filename": "ictrainer-0.2.4.tar.gz", "has_sig": false, "md5_digest": "2b86395062f26853ae4869f5e2c64ea3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7601, "upload_time": "2019-05-12T01:41:04", "url": "https://files.pythonhosted.org/packages/12/10/c270afa02ecb64b423c179674667079b1b40f8f7ba2a01cb49e049e1ec11/ictrainer-0.2.4.tar.gz" } ], "0.2.5": [ { "comment_text": "", "digests": { "md5": "e6dcef20b8d6b5a1bc8337d95fef880a", "sha256": "9ca2a3e550694b9f7b01cd38ceae834c728f973703246026e749d01c84e98712" }, "downloads": -1, "filename": "ictrainer-0.2.5.tar.gz", "has_sig": false, "md5_digest": "e6dcef20b8d6b5a1bc8337d95fef880a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7598, "upload_time": "2019-05-12T01:48:10", "url": "https://files.pythonhosted.org/packages/56/96/a6e9d5c1d7fbd283365b6ca83f418dde4354725aca5089cc5e1b7945f447/ictrainer-0.2.5.tar.gz" } ], "0.2.6": [ { "comment_text": "", "digests": { "md5": "842c95fb66434e51bbf79185081bda6a", "sha256": "f6f4d768a84e4217b570ad80f461d438c316e25fb3fd365ed1dee083acccac9b" }, "downloads": -1, "filename": "ictrainer-0.2.6.tar.gz", "has_sig": false, "md5_digest": "842c95fb66434e51bbf79185081bda6a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7634, "upload_time": "2019-05-12T01:50:41", "url": "https://files.pythonhosted.org/packages/49/52/b73dedfba057e9ee31d0077910d23a18023ddf648e470e58f2f0328da286/ictrainer-0.2.6.tar.gz" } ], "0.2.7": [ { "comment_text": "", "digests": { "md5": "d2ae3dfb75696d09d8b8f956c1271e9f", "sha256": "be4c9c85589fcfd94284d070df47c99d1c88b9a037b57e9efe0be6defddfae2f" }, "downloads": -1, "filename": "ictrainer-0.2.7.tar.gz", "has_sig": false, "md5_digest": "d2ae3dfb75696d09d8b8f956c1271e9f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7659, "upload_time": "2019-05-12T01:55:51", "url": "https://files.pythonhosted.org/packages/52/fd/9f974b9aba509ba324dd69683d30bdccfdde5e300462fc5b93c1427d4341/ictrainer-0.2.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d2ae3dfb75696d09d8b8f956c1271e9f", "sha256": "be4c9c85589fcfd94284d070df47c99d1c88b9a037b57e9efe0be6defddfae2f" }, "downloads": -1, "filename": "ictrainer-0.2.7.tar.gz", "has_sig": false, "md5_digest": "d2ae3dfb75696d09d8b8f956c1271e9f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7659, "upload_time": "2019-05-12T01:55:51", "url": "https://files.pythonhosted.org/packages/52/fd/9f974b9aba509ba324dd69683d30bdccfdde5e300462fc5b93c1427d4341/ictrainer-0.2.7.tar.gz" } ] }