{"id":18873005,"url":"https://github.com/18alantom/cat-or-dog","last_synced_at":"2026-04-11T07:42:51.390Z","repository":{"id":53639055,"uuid":"258813341","full_name":"18alantom/cat-or-dog","owner":"18alantom","description":"🐈 a simple classifier app 🐕","archived":false,"fork":false,"pushed_at":"2021-03-20T03:36:55.000Z","size":88119,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-31T00:29:26.618Z","etag":null,"topics":["flask","pytorch","pytorch-implementation","react"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/18alantom.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}},"created_at":"2020-04-25T15:46:13.000Z","updated_at":"2023-03-04T09:38:00.000Z","dependencies_parsed_at":"2022-09-12T05:00:28.734Z","dependency_job_id":null,"html_url":"https://github.com/18alantom/cat-or-dog","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/18alantom%2Fcat-or-dog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/18alantom%2Fcat-or-dog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/18alantom%2Fcat-or-dog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/18alantom%2Fcat-or-dog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/18alantom","download_url":"https://codeload.github.com/18alantom/cat-or-dog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239824981,"owners_count":19703199,"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":["flask","pytorch","pytorch-implementation","react"],"created_at":"2024-11-08T05:33:25.385Z","updated_at":"2026-02-16T04:30:14.794Z","avatar_url":"https://github.com/18alantom.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cat-or-dog\n\n\u003cp style=\"text-align:center;\"\u003e🐈 a simple classifier app 🐕\u003c/p\u003e\n\u003cimg src=\"example.png\" width=\"30%\" style=\"margin-left:auto; margin-right:auto; display:block;\"\u003e\n\n## Classifier\nMakes use of a [Resnet 50](https://pytorch.org/docs/stable/torchvision/models.html#torchvision.models.resnet50) network pretrained on [ImageNet](http://www.image-net.org/) and then tuned on this [Cat and Dog](https://www.kaggle.com/tongpython/cat-and-dog) dataset.\nThe model was trained for a [challenge](https://github.com/18alantom/sc_challenges/blob/master/week_2/Week%202%20-%20Challenge%202.ipynb) based on transfer learning. \nFramework used is [Pytorch](https://pytorch.org/docs/stable/index.html)\n\n## Frontend\nThe frontend was created using [React](https://reactjs.org/) using [create-react-app](https://create-react-app.dev/), had to use `eject` to change the build path.\n\n## Backend\nThe Backend was created using [Flask](https://flask.palletsprojects.com/en/1.1.x/).\n\n___\n\nTo **run the app**, clone the repo; make sure [npm](https://www.npmjs.com) and other Javascript requirements along with [Python requirements](https://github.com/18alantom/cat-or-dog/blob/master/flask_server/setup.py) are installed.\n\n`$ npm install` from the `cat-or-dog` sub directory, `$ npm run build` then from the `flask_server` sub directory set `$ export FLASK_APP=flask_server` and `$ flask run`.\n___\n\nThe app maybe hosted somewhere in the near future because the above procedure is almost cumbersome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F18alantom%2Fcat-or-dog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F18alantom%2Fcat-or-dog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F18alantom%2Fcat-or-dog/lists"}