{"id":15967821,"url":"https://github.com/elucidation/tensorflow-cat-dog-classifier","last_synced_at":"2025-04-04T14:25:10.430Z","repository":{"id":140524487,"uuid":"80384389","full_name":"Elucidation/Tensorflow-Cat-Dog-Classifier","owner":"Elucidation","description":"Tutorial on using Tensorflow to train a cat/dog classifier, as well as building your own dataset to train on","archived":false,"fork":false,"pushed_at":"2024-01-07T00:34:04.000Z","size":26222,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-10T00:17:00.525Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","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/Elucidation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-01-30T01:00:48.000Z","updated_at":"2024-01-07T00:25:24.000Z","dependencies_parsed_at":"2024-01-07T01:53:46.496Z","dependency_job_id":"dbe06c39-3185-4fe6-8e3d-4a8f206afd2f","html_url":"https://github.com/Elucidation/Tensorflow-Cat-Dog-Classifier","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/Elucidation%2FTensorflow-Cat-Dog-Classifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elucidation%2FTensorflow-Cat-Dog-Classifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elucidation%2FTensorflow-Cat-Dog-Classifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elucidation%2FTensorflow-Cat-Dog-Classifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Elucidation","download_url":"https://codeload.github.com/Elucidation/Tensorflow-Cat-Dog-Classifier/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247192098,"owners_count":20899037,"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-10-07T18:41:36.662Z","updated_at":"2025-04-04T14:25:10.410Z","avatar_url":"https://github.com/Elucidation.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"Tensorflow Cats vs Dogs classifier\n---\n\n# Ipython notebook new Mobilenet model\n\nUsing TF Keras to transfer learn + fine-tune a MobileNetV2 model on our own dataset of dogs/cats.\n\nWe get around 93% accuracy on the test dataset.\n\n[Ipython notebook training testing model](dogcat.ipynb)\n\n![predictions](predictions.png)\n\n# Old model\n\nWe build our own dataset from existing flicker images of cats and dogs, and then train a tensorflow neural network to classify cats and dogs.\n\nRun using `./cats_vs_dogs.py`\n\nCurrently a single layer NN, no successful learning yet\n\n```\nusage: cats_vs_dogs.py [-h] [--cat_dir CAT_DIR] [--dog_dir DOG_DIR]\n                       [--num_steps NUM_STEPS]\n\noptional arguments:\n  -h, --help            show this help message and exit\n  --cat_dir CAT_DIR     Directory for storing input cat images\n  --dog_dir DOG_DIR     Directory for storing input dog images\n  --num_steps NUM_STEPS\n                        Number of steps to train model\n```\n\n# Building a dataset\n\n`resize_images.py` contains a script to resize all passed in images into\n64x64 grayscale pngs named `####.png` monotonically increasing in the \nspecified output folder\n\n```\nUsage: resize_images.py [options] image1 [image2 ...]\n\nOptions:\n  -h, --help            show this help message and exit\n  -o OUTPUT_FOLDER, --output_folder=OUTPUT_FOLDER\n                        Output folder to save resized images to\n  -n MAX_N, --max_number=MAX_N\n                        Maximum number of images to process\n  -d, --dryrun          Do a dry run (no processing/saving)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felucidation%2Ftensorflow-cat-dog-classifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felucidation%2Ftensorflow-cat-dog-classifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felucidation%2Ftensorflow-cat-dog-classifier/lists"}