{"id":18809393,"url":"https://github.com/koproductions-code/deep-learning-cats-and-dogs","last_synced_at":"2026-01-10T06:30:13.005Z","repository":{"id":196296772,"uuid":"695678925","full_name":"koproductions-code/Deep-Learning-Cats-and-Dogs","owner":"koproductions-code","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-24T08:23:23.000Z","size":39441,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-29T22:44:38.310Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koproductions-code.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-23T21:47:54.000Z","updated_at":"2023-09-24T07:45:08.000Z","dependencies_parsed_at":"2023-09-24T15:55:20.394Z","dependency_job_id":null,"html_url":"https://github.com/koproductions-code/Deep-Learning-Cats-and-Dogs","commit_stats":null,"previous_names":["koproductions-code/deep-learning-training","koproductions-code/deep-learning-cats-and-dogs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koproductions-code%2FDeep-Learning-Cats-and-Dogs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koproductions-code%2FDeep-Learning-Cats-and-Dogs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koproductions-code%2FDeep-Learning-Cats-and-Dogs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koproductions-code%2FDeep-Learning-Cats-and-Dogs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koproductions-code","download_url":"https://codeload.github.com/koproductions-code/Deep-Learning-Cats-and-Dogs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239743379,"owners_count":19689489,"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":[],"created_at":"2024-11-07T23:16:15.678Z","updated_at":"2026-01-10T06:30:12.961Z","avatar_url":"https://github.com/koproductions-code.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deep-Learning-Cats-and-Dogs\n\n## Installation\nClone this repository and cd into it.\n```bash\ngit clone https://github.com/koproductions-code/Deep-Learning-Cats-and-Dogs\ncd Deep-Learning-Cats-and-Dogs\n```\n\nUse pip to install all requirements.\n\n```bash\npip3 install -r requirements.txt\n```\n\nDownload the dataset from Kaggle:\n[https://www.kaggle.com/datasets/shaunthesheep/microsoft-catsvsdogs-dataset?datasetId=550917](https://www.kaggle.com/datasets/shaunthesheep/microsoft-catsvsdogs-dataset?datasetId=550917)\n\nExtract the downloaded file into the downloaded directory and rename the folder to \"dataset\". Your folder structure should now look like this.\n```bash\n.\n├── dataset\n│   └── PetImages\n│       ├── Cat\n│       └── Dog\n├── main.py\n├── README.md\n├── requirements.txt\n├── models\n├── Fares-Elmenshawii-License.md\n├── LICENSE.md\n└── util\n```\n\nThen run this command to rearrange the dataset.\n```bash\npython3 main.py --create_dataset --dataset [Choose a name, for example, \"dataset01\"]\n```\n\n## Get Started\n\nTrain for 10 epochs and save to a specified path.\n```bash\npython3 main.py --dataset [The name you chose, e.g. \"dataset01\"] --epochs 10 --train --save [path]\n```\n\nEvaluate your existing model.\n```bash\npython3 main.py --dataset [The name you chose, e.g. \"dataset01\"] --evaluate --load [path]\n```\n\nUse your model to predict an image.\n```bash\npython3 main.py --dataset [The name you chose, e.g. \"dataset01\"] --load [model path] --predict [image path]\n```\n\nTrain an existing model further.\n```bash\npython3 main.py --dataset [The name you chose, e.g. \"dataset01\"] --load [old model path] --epochs 10 --train --save [new model path]\n```\n\nFor more help, look at the \"Usage\" section or run\n```bash\npython3 main.py --help\n```\n\n## Usage\n\n```bash\nusage: main.py [-h] [--create_dataset] [--dataset DATASET] [--load LOAD] [--save SAVE] [--train] [--evaluate] [--predict PREDICT] [--epochs EPOCHS]\n\nCats and Dogs Deep Learning Classifier\n\noptions:\n  -h, --help         show this help message and exit\n  --create_dataset   Create dataset\n  --dataset DATASET  Dataset path\n  --load LOAD        Load model weights\n  --save SAVE        Save model weights\n  --train            Train model\n  --evaluate         Evaluate model\n  --predict PREDICT  Image path to predict\n  --epochs EPOCHS    Define number of epochs\n```\n\n## Attribution\nI used some code from a tutorial by Fares Elmenshawii in Manager.py and Dataset.py.\n\nCheck out the tutorial [here](https://www.kaggle.com/code/fareselmenshawii/cats-vs-dogs-classification/notebook).\n\nIt is licensed under the [Apache 2.0 License](https://github.com/koproductions-code/Deep-Learning-Training/blob/master/Fares-Elmenshawii-License.md).\n\n\n## License\nMIT License\n\nCopyright (c) 2023 Konstantin Weber\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoproductions-code%2Fdeep-learning-cats-and-dogs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoproductions-code%2Fdeep-learning-cats-and-dogs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoproductions-code%2Fdeep-learning-cats-and-dogs/lists"}