{"id":24774008,"url":"https://github.com/shivamratti13/cat-dog-classification","last_synced_at":"2026-04-30T18:31:49.211Z","repository":{"id":263550523,"uuid":"890753438","full_name":"shivamratti13/cat-dog-classification","owner":"shivamratti13","description":"CNN-Based Cat and Dog Image Classifier","archived":false,"fork":false,"pushed_at":"2024-11-19T06:03:24.000Z","size":1920,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T22:31:47.213Z","etag":null,"topics":["cnn","cnn-classification","cnn-keras","deep","deep-learning","image","image-classification","image-processing","python","transfer-learning"],"latest_commit_sha":null,"homepage":"","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/shivamratti13.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":"2024-11-19T05:49:35.000Z","updated_at":"2024-11-19T06:06:34.000Z","dependencies_parsed_at":"2024-11-19T06:50:39.810Z","dependency_job_id":null,"html_url":"https://github.com/shivamratti13/cat-dog-classification","commit_stats":null,"previous_names":["shivamratti13/cat-dog-classification"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shivamratti13/cat-dog-classification","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivamratti13%2Fcat-dog-classification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivamratti13%2Fcat-dog-classification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivamratti13%2Fcat-dog-classification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivamratti13%2Fcat-dog-classification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shivamratti13","download_url":"https://codeload.github.com/shivamratti13/cat-dog-classification/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivamratti13%2Fcat-dog-classification/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32473804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cnn","cnn-classification","cnn-keras","deep","deep-learning","image","image-classification","image-processing","python","transfer-learning"],"created_at":"2025-01-29T05:33:21.566Z","updated_at":"2026-04-30T18:31:49.197Z","avatar_url":"https://github.com/shivamratti13.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CNN-Based Cat and Dog Image Classifier  \n\nThis project demonstrates the development of a binary image classifier to distinguish between cats and dogs using Convolutional Neural Networks (CNN). Leveraging a dataset comprising 20,000 training images and 5,000 validation images, two models were built and evaluated for performance.  \n\n![image](https://github.com/shivamratti13/cat-dog-classification/blob/main/Report/cat%20with%20pretrained.png)\n![image](https://github.com/shivamratti13/cat-dog-classification/blob/main/Report/dog%20with%20pretrained.png)\n\n## Project Overview  \n\n1. **Custom CNN Architecture**:  \n   - Designed and implemented a CNN model from scratch using the Keras library.  \n   - Included convolutional layers, pooling layers, and fully connected layers with ReLU activation.  \n   - Employed dropout layers to prevent overfitting.  \n   - Achieved a classification accuracy of **77.8%**, showcasing effective model design for a from-scratch approach.\n   - ![image](https://github.com/shivamratti13/cat-dog-classification/blob/main/Report/CatvsDog%20without%20dataAugumentation.png)\n\n2. **Pretrained Xception Model**:  \n   - Fine-tuned the pretrained Xception model from Keras, leveraging transfer learning.  \n   - Replaced the top layers to suit binary classification.  \n   - Achieved a remarkable accuracy of **99.05%**, demonstrating the power of transfer learning in image classification.\n   - ![image](https://github.com/shivamratti13/cat-dog-classification/blob/main/Report/CatvsDog%20with%20pretrained.png) \n\n## Key Highlights  \n\n- **Data Preprocessing**: Images were resized, normalized, and augmented with techniques such as rotation and flipping to enhance model generalization.  \n- **Evaluation Metrics**: Models were assessed using accuracy, loss values, and confusion matrices.  \n- **Comparison of Approaches**: Showcased the performance difference between a custom-built CNN and a state-of-the-art pretrained model.  \n\nThis project exemplifies the application of both custom CNN design and transfer learning for efficient image classification. It serves as a foundation for building scalable and high-performing deep learning models.  \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshivamratti13%2Fcat-dog-classification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshivamratti13%2Fcat-dog-classification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshivamratti13%2Fcat-dog-classification/lists"}