{"id":14958945,"url":"https://github.com/carefree0910/imagerecognition","last_synced_at":"2025-10-24T16:30:32.399Z","repository":{"id":73969458,"uuid":"85792048","full_name":"carefree0910/ImageRecognition","owner":"carefree0910","description":"An Image Recognition project using Inception-v3 (for training) and cv2 (for visualizing)","archived":false,"fork":false,"pushed_at":"2017-04-28T08:54:19.000Z","size":44,"stargazers_count":6,"open_issues_count":0,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T02:44:13.820Z","etag":null,"topics":["image-recognition","tensorflow-experiments"],"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/carefree0910.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}},"created_at":"2017-03-22T06:19:09.000Z","updated_at":"2020-04-04T02:20:19.000Z","dependencies_parsed_at":"2023-03-01T05:00:30.756Z","dependency_job_id":null,"html_url":"https://github.com/carefree0910/ImageRecognition","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/carefree0910%2FImageRecognition","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carefree0910%2FImageRecognition/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carefree0910%2FImageRecognition/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carefree0910%2FImageRecognition/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carefree0910","download_url":"https://codeload.github.com/carefree0910/ImageRecognition/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237999477,"owners_count":19399887,"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":["image-recognition","tensorflow-experiments"],"created_at":"2024-09-24T13:18:34.293Z","updated_at":"2025-10-24T16:30:31.979Z","avatar_url":"https://github.com/carefree0910.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[1]:https://github.com/carefree0910/MachineLearning/tree/master/_Dist/ImageRecognition \"MachineLearning\"\r\n[2]:https://storage.googleapis.com/download.tensorflow.org/models/inception_dec_2015.zip \"Inception-v3\"\r\n\r\n# Image Recognition\r\n\r\nDependency: numpy, matplotlib, Tensorflow, cv2(For visualization)\r\n\r\nA Stand-alone version for ImageRecognition project [here][1]\r\n\r\n+ Inception-v3 model for this project can be downloaded [here][2]\r\n+ Extract the zipped file and put Inception-v3 model (which should be renamed from 'tensorflow_inception_graph.pb' to 'Model.pb') to 'Models/Extractor/v3' folder\r\n+ Put your training set **FOLDERS** into '_Data' folder, please use English names for your folders to ensure that cv2 works correctly\r\n    + Each folder name should be treated as the 'label' of the pictures contained in the folder\r\n+ Put your test set **PICTURES** into 'Test' folder\r\n    + If possible, provide a **ONE-HOT** answer naming '_answer.npy' into 'Test' folder as well for better visualization\r\n    + If you don't want to struggling for these, just leave 'Test' folder empty (Reference the Notice below)\r\n+ Run 'Main.py'!\r\n\r\n## Notice That:\r\n+ If 'Test' folder remains empty when the program is running, `min(196, 0.2 * n_data)`pictures will be **MOVED** from '_Data' folder to 'Test' folder if 'gen_test' FLAG is True\r\n    + An '_answer.npy' ndarray will also be generated automatically!\r\n+ After processing all images in '_Data' folder, a '_Cache' folder which contains 'features.npy' and 'labels.npy' (shuffled) will be generated\r\n    + If you want to train on new dataset, '_Cache' folder should be deleted\r\n    + You can train your own classifier using 'features.npy' and 'labels.npy'\r\n+ After the program is done, a Predictor will be stored in 'Models/Predictors/v3' folder. If you want to train on new dataset, this folder should be deleted\r\n\r\n--args:\r\n\r\nparser.add_argument(\r\n\r\n    \"--gen_test\",\r\n    type=bool,\r\n    default=True,\r\n    help=\"Whether generate test images\"\r\n)\r\n\r\nparser.add_argument(\r\n\r\n    \"--images_dir\",\r\n    type=str,\r\n    default=\"Test\",\r\n    help=\"Path to test set\"\r\n)\r\n\r\nparser.add_argument(\r\n\r\n    \"--extract_only\",\r\n    type=bool,\r\n    default=False,\r\n    help=\"Whether extract features only\"\r\n)\r\n\r\nparser.add_argument(\r\n\r\n    \"--visualize_only\",\r\n    type=bool,\r\n    default=False,\r\n    help=\"Whether visualize only\"\r\n)\r\n\r\nparser.add_argument(\r\n\r\n    \"--overview\",\r\n    type=bool,\r\n    default=True,\r\n    help=\"Whether use cv2 to overview\"\r\n)\r\n\r\n## Visualization\r\n\r\n![image](http://i1.piimg.com/567571/663724d1c2d0c997.png)\r\n\r\n![image](http://i1.piimg.com/567571/f253925c8122775a.png)\r\n\r\n*(Not so elegant, but (maybe) better than nothing...)*\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarefree0910%2Fimagerecognition","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarefree0910%2Fimagerecognition","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarefree0910%2Fimagerecognition/lists"}