{"id":25296192,"url":"https://github.com/ahnaf19/anime-or-not","last_synced_at":"2026-04-04T22:34:13.755Z","repository":{"id":276352265,"uuid":"929028918","full_name":"Ahnaf19/anime-or-not","owner":"Ahnaf19","description":"Anime-Or-Not (AoN) is an API that exposes prediction endpoint of an deep learning leveraged image classifier, detecting its anime or cartoon.","archived":false,"fork":false,"pushed_at":"2025-03-08T07:11:28.000Z","size":92135,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T21:16:55.319Z","etag":null,"topics":["docker","fastapi","python","pytorch"],"latest_commit_sha":null,"homepage":"","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/Ahnaf19.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-07T17:16:39.000Z","updated_at":"2025-03-08T07:11:31.000Z","dependencies_parsed_at":"2025-02-24T20:40:51.718Z","dependency_job_id":null,"html_url":"https://github.com/Ahnaf19/anime-or-not","commit_stats":null,"previous_names":["ahnaf19/anime-or-not"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Ahnaf19/anime-or-not","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ahnaf19%2Fanime-or-not","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ahnaf19%2Fanime-or-not/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ahnaf19%2Fanime-or-not/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ahnaf19%2Fanime-or-not/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ahnaf19","download_url":"https://codeload.github.com/Ahnaf19/anime-or-not/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ahnaf19%2Fanime-or-not/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31416779,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"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":["docker","fastapi","python","pytorch"],"created_at":"2025-02-13T02:56:24.303Z","updated_at":"2026-04-04T22:34:13.736Z","avatar_url":"https://github.com/Ahnaf19.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Anime-Or-Not\n\nAnime-Or-Not (AoN) is an API that exposes prediction endpoint of an deep learning leveraged image classifier, detecting if its either anime or cartoon.\n\n## Project Overview\n\nAlthough Anime and Cartoon both are a form of animation and look almost the same, there are some structural differences between the two that can be exploited to classify them.\n\n**Created an image classification API that leverages a deep learning model to classify images as either anime or cartoon. The API exposes a prediction endpoint to take an image as input and return a classification label with prediction probability.**\n\ncheckout the kaggle notebook \u003ca href=\"https://www.kaggle.com/code/ahnaftanjid/anime-or-not\"\u003ehere\u003c/a\u003e\n\n\u003e Developed on: python 3.10.16\n\n![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge\u0026logo=python\u0026logoColor=ffdd54) ![FastAPI](https://img.shields.io/badge/FastAPI-005571?style=for-the-badge\u0026logo=fastapi) ![NumPy](https://img.shields.io/badge/numpy-%23013243.svg?style=for-the-badge\u0026logo=numpy\u0026logoColor=white) ![Pandas](https://img.shields.io/badge/pandas-%23150458.svg?style=for-the-badge\u0026logo=pandas\u0026logoColor=white) ![PyTorch](https://img.shields.io/badge/PyTorch-%23EE4C2C.svg?style=for-the-badge\u0026logo=PyTorch\u0026logoColor=white) ![Docker](https://img.shields.io/badge/docker-%230db7ed.svg?style=for-the-badge\u0026logo=docker\u0026logoColor=white)\n\n## Docker Build \u0026 Run\n\nTo build and run the application using Docker, follow these steps:\n\n### Prerequisites\n\nEnsure you have Docker installed on your machine. You can download it from [here](https://www.docker.com/products/docker-desktop).\n\n#### Build Docker Image\n\n\u003e [!IMPORTANT]\n\u003e `Docker Daemon` or `Docker Desktop` must be running while building Docker Image.\n\nNavigate to the root directory of the repo where the `Dockerfile` is located and run the following command to build the Docker image:\n\n```sh\ndocker build -t aon:latest .\n```\n\n#### Run Docker Container\n\nAfter building the Docker image, you can run it using the following command:\n\n```sh\ndocker run -dp 8000:8000 aon:latest\n```\nor give the container a name:\n\n```sh\ndocker run -dp 8000:8000 --name aon-latest aon:latest\n```\n\nThis will start the application in a Docker container. The application can be accessed at `http://localhost:8000` e.g. `127.0.0.1:8000`\n\n\u003e [!NOTE]\n\u003e `-dp` (`-d` \u0026 `-p`) tag runs the container in detached mode (in the background, terminal is available to use right away) and container port `8000` is mapped to local port `8000`.\n\nGo to `http://localhost:8000/docs` and try the end points. `/model/predict` takes in an image and returns prediction.\n\n#### Stopping the Container\n\nTo stop the running container, first find the container ID using:\n\n```sh\ndocker ps\n```\n\nThen stop the container using:\n\n```sh\ndocker stop \u003ccontainer_id\u003e\n```\n\n## Run locally with Uvicorn\n\n- [optional but recommended] create a venv and activate it\n- Install dependencies:\n  ```sh\n  pip install -r requirements.txt\n  ```\n- start Uvicorn server:\n  ```sh\n  uvicorn app.main:app --reload\n  ```\n- `cntrl+c` to break the server.\n\n## Milestones\n\n- [x] develop ML prediction pipeline 🤖\n- [x] Expose the prediction pipeline with api end points 🌐\n- [ ] unit testing 🧪\n- [ ] write comprehensive readme 📖✨\n- [ ] write readme-dev 📖\n- [x] dockerize the repo 🐳\n- [x] Code Auto-formatting \u0026 Linting with Pre-commit (check-yaml, end-of-file-fixer, trailing-whitespace, black, isort, mypy) 🎨\n- [ ] add GitHub Action for format checks ✅\n- [ ] Study deploy requirement and deploy! 🚀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahnaf19%2Fanime-or-not","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahnaf19%2Fanime-or-not","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahnaf19%2Fanime-or-not/lists"}