{"id":21389841,"url":"https://github.com/codingforentrepreneurs/super-me-photo-ai-api","last_synced_at":"2025-04-15T21:22:52.404Z","repository":{"id":263663874,"uuid":"891099512","full_name":"codingforentrepreneurs/super-me-photo-ai-api","owner":"codingforentrepreneurs","description":"Learn how to build an API that trains and generate photos featuring... you! Using FastAPI, Upstash, Replicate, Jupyter, and more","archived":false,"fork":false,"pushed_at":"2024-12-16T17:19:57.000Z","size":67995,"stargazers_count":32,"open_issues_count":0,"forks_count":13,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T01:23:57.338Z","etag":null,"topics":["custom-models","fastapi","image-generation","jupyter","python","tutorial","upstash-redis","zip"],"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/codingforentrepreneurs.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":"2024-11-19T18:14:40.000Z","updated_at":"2025-01-30T10:07:20.000Z","dependencies_parsed_at":"2024-11-19T19:47:15.506Z","dependency_job_id":"68b15e9f-f952-4759-a871-4c34252c7ca9","html_url":"https://github.com/codingforentrepreneurs/super-me-photo-ai-api","commit_stats":null,"previous_names":["codingforentrepreneurs/super-me-photo-ai-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingforentrepreneurs%2Fsuper-me-photo-ai-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingforentrepreneurs%2Fsuper-me-photo-ai-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingforentrepreneurs%2Fsuper-me-photo-ai-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingforentrepreneurs%2Fsuper-me-photo-ai-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codingforentrepreneurs","download_url":"https://codeload.github.com/codingforentrepreneurs/super-me-photo-ai-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249154955,"owners_count":21221504,"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":["custom-models","fastapi","image-generation","jupyter","python","tutorial","upstash-redis","zip"],"created_at":"2024-11-22T13:13:09.982Z","updated_at":"2025-04-15T21:22:52.379Z","avatar_url":"https://github.com/codingforentrepreneurs.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SuperMe - Generative Photo AI\n[![Star this repo](https://img.shields.io/github/stars/codingforentrepreneurs/super-me-photo-ai-api?style=social)](https://github.com/codingforentrepreneurs/super-me-photo-ai-api)\n\nLearn how to build an API that trains and generate photos featuring... you! Using FastAPI, Upstash, Replicate, Jupyter, and more\n\n__Tech Stack__\n- [Python 3.13](https://github.com/python)\n- [Django](https://github.com/django/django) (`pip install \"Django\u003e=5.1,\u003c5.2\"`)\n- [Upstash](https://upstash.com) - serverless redis, qstash for async endpoint scheduling, rate limiting, caching, and more.\n- [Replicate](https://replicate) - train and run generative ai model featuring your face\n- [Python requests](https://github.com/psf/requests) (`pip install requests`)\n- [Jupyter](https://jupyter.org/) (`pip install jupyter`)\n- [Python Decouple](https://github.com/HBNetwork/python-decouple) to load environment variables (e.g. `.env`) with type casting and default values.\n- [ostris/flux-dev-lora-trainer](https://replicate.com/ostris/flux-dev-lora-trainer). Model made to allow you to fine-tune FLUX with your own images (pre-trained model designed for your training)\n\n## Tutorial\n- [Let's build a AI Photo Generator with Python and FastAPI](https://www.youtube.com/watch?v=lV82LDKT16A)\n\n## Getting Started\n\nDownload the following:\n- [git](https://git-scm.com/)\n- [VSCode](https://code.visualstudio.com/) (or [Cursor](https://cursor.com/))\n- [Python](https://www.python.org/downloads/)\n\nOpen a command line (Terminal, VSCode Terminal, Cursor Terminal, Powershell, etc)\n\nClone this Repo\n```bash\nmkdir -p ~/dev/superme-api\ncd ~/dev/superme-api\ngit clone https://github.com/codingforentrepreneurs/super-me-photo-ai-api .\n```\n\nCheckout the start branch\n```bash\ngit checkout start\n```\n\nMake the code yours\n```\nrm -rf .git\ngit init\ngit add --all\ngit commit -m \"I am the capitan now\"\n```\n\nCreate a Python vitual environment\n_macOS/Linux/WSL_\n```bash\npython3.12 -m venv venv\nsource venv/bin/activate\n```\n\n_windows powershell_\n```powershell\nc:\\Path\\To\\Python312\\python.exe -m venv venv\n.\\venv\\Scripts\\activate\n```\n\nInstall requirements\n```bash\n(venv) python -m pip install pip --upgrade\n(venv) python -m pip install -r requirements.txt\n```\n\nTo add support for `.heic` images (e.g. iPhone images) install `libheif` via [homebrew](https://brew.sh):\n```bash\nbrew install libheif\n(venv) python -m pip install pillow-heif\n```\nIf on _linux_ or _Docker_, you can use `sudo apt-get install libheif-dev`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingforentrepreneurs%2Fsuper-me-photo-ai-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodingforentrepreneurs%2Fsuper-me-photo-ai-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingforentrepreneurs%2Fsuper-me-photo-ai-api/lists"}