{"id":20041681,"url":"https://github.com/ajithvcoder/custom_object_classification","last_synced_at":"2025-08-13T01:48:32.494Z","repository":{"id":171325334,"uuid":"647716293","full_name":"ajithvcoder/Custom_Object_Classification","owner":"ajithvcoder","description":"Simple Custom object classification with pytorch | Custom Model | Custom dataset | ONNX inference","archived":false,"fork":false,"pushed_at":"2023-05-31T14:07:20.000Z","size":4633,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-09T06:07:36.693Z","etag":null,"topics":["classification","custom","customdataset","deep-learning","onnx","pytorch","simple"],"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/ajithvcoder.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}},"created_at":"2023-05-31T11:24:06.000Z","updated_at":"2025-06-24T19:07:34.000Z","dependencies_parsed_at":"2024-01-05T18:38:22.138Z","dependency_job_id":null,"html_url":"https://github.com/ajithvcoder/Custom_Object_Classification","commit_stats":null,"previous_names":["ajithvallabai/custom_object_classification","ajithvcoder/custom_object_classification"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ajithvcoder/Custom_Object_Classification","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajithvcoder%2FCustom_Object_Classification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajithvcoder%2FCustom_Object_Classification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajithvcoder%2FCustom_Object_Classification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajithvcoder%2FCustom_Object_Classification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajithvcoder","download_url":"https://codeload.github.com/ajithvcoder/Custom_Object_Classification/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajithvcoder%2FCustom_Object_Classification/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270166015,"owners_count":24538440,"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","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["classification","custom","customdataset","deep-learning","onnx","pytorch","simple"],"created_at":"2024-11-13T10:47:28.475Z","updated_at":"2025-08-13T01:48:32.419Z","avatar_url":"https://github.com/ajithvcoder.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Custom_Object_Classification with pytorch\n\nSimple Custom object classification with pytorch | Custom Model | Custom dataset | ONNX inference\n\n- Genric Data preparation\n- Installation\n- Training\n- Testing\n- Onnx model inference\n\n**Gallery**\n\u003cp float=\"left\"\u003e\n\u003cimg src=\"./output/predict_image_1.png\" alt=\"Apple\" width=\"250\" height=\"250\"/\u003e\n\u003cimg src=\"./output/predict_image_2.png\" alt=\"Orange\" width=\"250\" height=\"250\"/\u003e\n\u003c/p\u003e\n\n\n### Genric Data preparation\n- Prepare the dataset like below tree\n\n```\n    - data\n        - Fruits (dataset name)\n            - train\n                - class 1\n                - class 2\n                - ...\n                - class n\n            - val\n                - class 1\n                - class 2\n                - ...\n                - class n\n            - test\n                - class 1\n                - class 2\n                - ...\n                - class n\n```\n- I have took fruits dataset from kaggle for example purpose [link here](https://www.kaggle.com/datasets/shreyapmaher/fruits-dataset-images)\n- change the path name in \"train_dir\" and \"val_dir\" in main.py\n\n### Installation\n\n    - pip install -r requirements.txt\n\n### Training\n    - python main.py\n\n### Testing\nMake sure if you have changed weights filename, train folder, input image in predict.py \n\n    - python predict.py\n\n### Exporting\nMake sure if you have changed the weights filename in export.py\n\n    - python export.py\n\n### Onnx model inference\nMake sure if you have changed weights filename, train folder, input image in predict.py \n\n    - python onnx_inference.py\n\nKindly raise issues or mail me if you have any questions\n\nMedium blog - [here](https://medium.com/@ajithkumarv/8a19e5ca5e27)\n\n**Credits**\n- [Custom-CNN-based-Image-Classification-in-PyTorch](https://github.com/developer0hye/Custom-CNN-based-Image-Classification-in-PyTorch)\n- [Creating custom dataloader](https://medium.com/analytics-vidhya/creating-a-custom-dataset-and-dataloader-in-pytorch-76f210a1df5d)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajithvcoder%2Fcustom_object_classification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajithvcoder%2Fcustom_object_classification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajithvcoder%2Fcustom_object_classification/lists"}