{"id":19670514,"url":"https://github.com/laansdole/image-caption-pipeline","last_synced_at":"2026-04-13T09:32:26.413Z","repository":{"id":204224925,"uuid":"711372192","full_name":"LaansDole/image-caption-pipeline","owner":"LaansDole","description":"FastAPI Production Setup with pipeline for HuggingFace image caption model","archived":false,"fork":false,"pushed_at":"2023-12-12T01:59:25.000Z","size":705,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-14T06:17:37.985Z","etag":null,"topics":["docker-compose","fastapi","huggingface-transformers","image-to-text","poetry"],"latest_commit_sha":null,"homepage":"https://huggingface.co/nlpconnect/vit-gpt2-image-captioning","language":"Python","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/LaansDole.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-29T03:42:18.000Z","updated_at":"2023-12-14T04:43:46.000Z","dependencies_parsed_at":"2023-11-21T09:26:30.867Z","dependency_job_id":"5d6d5cd6-0f1a-4ee9-bfe6-a6be4c950ee0","html_url":"https://github.com/LaansDole/image-caption-pipeline","commit_stats":null,"previous_names":["laansdole/fastapi-quick-start","laansdole/devops-fastapi","laansdole/image-caption-pipeline"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LaansDole/image-caption-pipeline","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaansDole%2Fimage-caption-pipeline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaansDole%2Fimage-caption-pipeline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaansDole%2Fimage-caption-pipeline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaansDole%2Fimage-caption-pipeline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LaansDole","download_url":"https://codeload.github.com/LaansDole/image-caption-pipeline/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaansDole%2Fimage-caption-pipeline/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31746294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T09:16:15.125Z","status":"ssl_error","status_checked_at":"2026-04-13T09:16:05.023Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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-compose","fastapi","huggingface-transformers","image-to-text","poetry"],"created_at":"2024-11-11T17:06:25.334Z","updated_at":"2026-04-13T09:32:26.394Z","avatar_url":"https://github.com/LaansDole.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastAPI pipeline for Image Captioning Model\n\nThis project uses Python 3.10. Remember to run below commands in the root directory of your project where the `pyproject.toml` file is located. Here are the main elements you need to know to get started:\n- Model: \n[nlpconnect/vit-gpt2-image-captioning](https://huggingface.co/nlpconnect/vit-gpt2-image-captioning)\n\n## Virtual Environment\nNote that for this the package venv is to be used.\n\nIn short, a virtual environment will help us manage an isolated version of python interpreter. And so too installed packages. In this way. Different project will not have to depends on the same packages installation and have to conflict. Read the link above explain and show it well.\n\n## Build on local\n### Docker Build\n```docker\ndocker compose up --build\n```\n### Poetry or Pip\n```bash\n# Create a virtual environment, navigate to your root directory and run:\npython -m venv .venv\n# Activate the environment, use:\nsource .venv/bin/activate\npip install -r requirements\n```\n- In a Python project managed with Poetry, dependencies are listed in a `pyproject.toml` file, make sure that `[tool.poetry] name = \"bloomsage-backend\"`:\n```bash\npoetry install --no-root\n```\n***To add additional dependencies/packages to your project, use:***\n- With `poetry`\n```bash\npoetry add [dependencies/packages]\n```\n- With `pip`\n```bash\npip install [dependencies/packages]\n```\n- Once you have done with your session\n```bash\n# To export the requirements.txt\npip install -r requirements\npoetry export -f requirements.txt --output requirements.txt --without-hashes --without=dev\n# Deactivate the environment once done, use:\ndeactivate\n```\n### To run locally\n\n- ***To start the server at http://0.0.0.0:8000***\n```bash\npoe compose\n```\n- ***To check the type in python files***\n```bash\npoe typecheck\n```\n\n# References\n- [Python pip equivalent of node's package.json](https://stackoverflow.com/questions/48941116/does-python-pip-have-the-equivalent-of-nodes-package-json)\n- [Poetry Documentation](https://python-poetry.org/)\n- [Poe The Poet Documentation](https://poethepoet.natn.io/installation.html)\n- [Image Captioning Blog from Ankur Kumar](https://ankur3107.github.io/blogs/the-illustrated-image-captioning-using-transformers/)\n- [pipx Installation](https://github.com/pypa/pipx)\n- [BloomSage Flower Classification](https://github.com/rmit-denominator/bloomsage-backend.git)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaansdole%2Fimage-caption-pipeline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaansdole%2Fimage-caption-pipeline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaansdole%2Fimage-caption-pipeline/lists"}