{"id":21760700,"url":"https://github.com/khuyentran1401/dog_classifier","last_synced_at":"2025-08-13T01:48:22.737Z","repository":{"id":106591897,"uuid":"334568668","full_name":"khuyentran1401/dog_classifier","owner":"khuyentran1401","description":"A simple app to classify dogs using fastai and streamlit.","archived":false,"fork":false,"pushed_at":"2021-02-03T15:45:18.000Z","size":95411,"stargazers_count":17,"open_issues_count":0,"forks_count":10,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-13T12:51:26.623Z","etag":null,"topics":["computer-vision","deep-learning","fastai","streamlit","streamlit-application","streamlit-webapp"],"latest_commit_sha":null,"homepage":"https://share.streamlit.io/khuyentran1401/dog_classifier/main/dog_classifier.py","language":"Jupyter Notebook","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/khuyentran1401.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-31T04:03:19.000Z","updated_at":"2024-05-21T00:18:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"c4035779-8487-46c2-b9c0-babd4b57fbab","html_url":"https://github.com/khuyentran1401/dog_classifier","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/khuyentran1401/dog_classifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khuyentran1401%2Fdog_classifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khuyentran1401%2Fdog_classifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khuyentran1401%2Fdog_classifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khuyentran1401%2Fdog_classifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/khuyentran1401","download_url":"https://codeload.github.com/khuyentran1401/dog_classifier/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khuyentran1401%2Fdog_classifier/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270166013,"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":["computer-vision","deep-learning","fastai","streamlit","streamlit-application","streamlit-webapp"],"created_at":"2024-11-26T11:45:08.533Z","updated_at":"2025-08-13T01:48:22.672Z","avatar_url":"https://github.com/khuyentran1401.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![View on Medium](https://img.shields.io/badge/Medium-View%20on%20Medium-red?logo=medium)](https://towardsdatascience.com/how-to-create-an-app-to-classify-dogs-using-fastai-and-streamlit-af3e75f0ee28)  [![View on Streamlit](https://img.shields.io/badge/Streamlit-View%20on%20Streamlit%20app-ff69b4?logo=streamlit)](https://share.streamlit.io/khuyentran1401/dog_classifier/main/dog_classifier.py)\n# Dog Classifier\n\nThis is a simple app to classify dogs using [fastai](https://docs.fast.ai/) and [streamlit](https://www.streamlit.io/). The app is deployed using Streamlit Sharing. Click [here](https://share.streamlit.io/khuyentran1401/dog_classifier/main/dog_classifier.py) to view and play with the app.  This project is inspired by Chapter 2 of the book Deep Learning for Coders with fastai \u0026 PyTorch.\n\nFind the tutorial on how to create your own dog classifier in [this Medium article](https://towardsdatascience.com/how-to-create-an-app-to-classify-dogs-using-fastai-and-streamlit-af3e75f0ee28).\n\n## Overview\n### Dataset\n450 different dog images are obtained using [Bing Image Search API](https://www.microsoft.com/en-us/bing/apis/bing-image-search-api). There are 150 images of each type of dog. The non-relevant images are removed. \n### Model\nThe model was trained to recognize 3 types of dog: Winner, Chihuahua, and Basset Hound using fastai. You can find the details of the training in [train_dog_classifier.ipnb](./train_dog_classifier.ipynb) notebook. The model was saved to [dog.pkl](./dog.pkl).\n\n\n## How to use the app\n\n\nClick Browse files to upload a dog image. Note that since the app is trained on just 3 kinds of dogs: Winner, Chihuahua, and Basset, make sure to upload only images of these dogs. \n![image](images/app_usage.gif)\n\n## Results\nI use my dog's photos and other photos I found from Facebook to test the performance of the model. Note that these images were not used to train the model. The model can recognize dogs with high accuracy. Here are some results I got:\n\n![image](images/chihuahua_result.png)\n![image](images/winner3_result.png)\n![image](images/basset_hound_result.png)\n![image](images/winner_result.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhuyentran1401%2Fdog_classifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhuyentran1401%2Fdog_classifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhuyentran1401%2Fdog_classifier/lists"}