{"id":15433282,"url":"https://github.com/simonw/cougar-or-not","last_synced_at":"2026-03-27T03:40:17.524Z","repository":{"id":66508005,"uuid":"155039823","full_name":"simonw/cougar-or-not","owner":"simonw","description":"An API for identifying cougars v.s. bobcats v.s. other USA cat species","archived":false,"fork":false,"pushed_at":"2018-11-06T23:10:58.000Z","size":80128,"stargazers_count":125,"open_issues_count":7,"forks_count":55,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-15T05:57:25.618Z","etag":null,"topics":["computer-vision","fastai","inaturalist","starlette","zeit-now"],"latest_commit_sha":null,"homepage":"https://cougar-or-not.now.sh/","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/simonw.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}},"created_at":"2018-10-28T05:51:11.000Z","updated_at":"2025-02-25T21:25:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"fa5f883b-2f24-4cce-b5a1-0a04c0a563c2","html_url":"https://github.com/simonw/cougar-or-not","commit_stats":{"total_commits":9,"total_committers":2,"mean_commits":4.5,"dds":"0.11111111111111116","last_synced_commit":"8adafac571aad3385317c76bd229448b3cdaa0ac"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Fcougar-or-not","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Fcougar-or-not/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Fcougar-or-not/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Fcougar-or-not/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonw","download_url":"https://codeload.github.com/simonw/cougar-or-not/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249016321,"owners_count":21198832,"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":["computer-vision","fastai","inaturalist","starlette","zeit-now"],"created_at":"2024-10-01T18:33:13.513Z","updated_at":"2026-03-27T03:40:17.481Z","avatar_url":"https://github.com/simonw.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cougar-or-not\n\nMy first attempt at a machine learning API, using a pre-calculated model trained using [iNaturalist](https://www.inaturalist.org/) data.\n\nThe resulting API is used by the [@critter_vision](https://twitter.com/critter_vision) Twitter bot, the source code for which can be found at https://github.com/natbat/CritterVision\n\nThe model is `usa-inaturalist-cats.pth` - an 83MB file.\n\nThe notebook `inaturalist-cats.ipynb` shows how I trained the model, using [fastai](https://github.com/fastai/fastai).\n\n`cougar.py` is a very tiny [Starlette](https://www.starlette.io/) API server which simply accepts file image uploads and runs them against the pre-calculated model.\n\nIt also accepts a URL to an image, e.g. https://cougar-or-not.now.sh/classify-url?url=https://upload.wikimedia.org/wikipedia/commons/9/9a/Oregon_Cougar_ODFW.JPG\n\nThe `Dockerfile` means the entire thing can be deployed to [Zeit Now](https://zeit.co/now) or any other container hosting service.\n\n## Examples\n\nCougar: https://cougar-or-not.now.sh/classify-url?url=https://upload.wikimedia.org/wikipedia/commons/9/9a/Oregon_Cougar_ODFW.JPG\n\n\u003cimg src=\"https://upload.wikimedia.org/wikipedia/commons/9/9a/Oregon_Cougar_ODFW.JPG\"\u003e\n\nBobcat: https://cougar-or-not.now.sh/classify-url?url=https://upload.wikimedia.org/wikipedia/commons/thumb/d/dc/Bobcat2.jpg/1200px-Bobcat2.jpg\n\n\u003cimg src=\"https://upload.wikimedia.org/wikipedia/commons/thumb/d/dc/Bobcat2.jpg/1200px-Bobcat2.jpg\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonw%2Fcougar-or-not","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonw%2Fcougar-or-not","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonw%2Fcougar-or-not/lists"}