{"id":30848357,"url":"https://github.com/cool-machine/transformer-based-image-segmentation","last_synced_at":"2026-04-29T16:36:10.518Z","repository":{"id":311309020,"uuid":"1043293931","full_name":"cool-machine/transformer-based-image-segmentation","owner":"cool-machine","description":"AI-Powered Image Segmentation System - Production-ready computer vision application with SegFormer + UNet models, Azure Functions backend, and beautiful visualization","archived":false,"fork":false,"pushed_at":"2025-08-24T03:16:21.000Z","size":6970,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-24T05:26:49.167Z","etag":null,"topics":["azure-functions","cityscapes","computer-vision","machine-learning","python","pytorch","segformer","semantic-segmentation","tensorflow","transformer"],"latest_commit_sha":null,"homepage":null,"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/cool-machine.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,"zenodo":null}},"created_at":"2025-08-23T14:51:42.000Z","updated_at":"2025-08-24T03:16:24.000Z","dependencies_parsed_at":"2025-08-24T06:42:08.975Z","dependency_job_id":"b9c24884-4264-4f26-a01e-74ff8b1f4a83","html_url":"https://github.com/cool-machine/transformer-based-image-segmentation","commit_stats":null,"previous_names":["cool-machine/transformer-based-image-segmentation"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/cool-machine/transformer-based-image-segmentation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cool-machine%2Ftransformer-based-image-segmentation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cool-machine%2Ftransformer-based-image-segmentation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cool-machine%2Ftransformer-based-image-segmentation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cool-machine%2Ftransformer-based-image-segmentation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cool-machine","download_url":"https://codeload.github.com/cool-machine/transformer-based-image-segmentation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cool-machine%2Ftransformer-based-image-segmentation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273990258,"owners_count":25203309,"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","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["azure-functions","cityscapes","computer-vision","machine-learning","python","pytorch","segformer","semantic-segmentation","tensorflow","transformer"],"created_at":"2025-09-07T03:08:53.707Z","updated_at":"2026-04-29T16:36:10.512Z","avatar_url":"https://github.com/cool-machine.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Image Segmentation System\n\nProduction-focused semantic segmentation app with:\n- GitHub Pages frontend (`index.html`)\n- Azure Functions backend (`backend/function_app.py`)\n- Azure Blob Storage image/mask source\n\n## Live Architecture\n\n- **Frontend**: static page on GitHub Pages\n- **Backend**: Azure Functions HTTP API\n- **Storage**: Azure Blob container `images1`\n\n## API Contract Used by Frontend\n\nThe frontend calls only these endpoints:\n- `GET /api/health`\n- `GET /api/images`\n- `GET /api/image-thumbnail?image_name=...`\n- `GET /api/colorized-masks?image_name=...`\n\n## Important Runtime Behavior\n\n- Model inference is **required** for `colorized-masks`.\n- If model dependencies (`tensorflow`, `transformers`) are missing, the API returns a **500 error**.\n- If model load/prediction fails, the API returns a **500 error**.\n- No silent fallback success path is kept.\n\n## Repository Structure (Current)\n\n```text\n.\n├── index.html\n├── backend/\n│   ├── function_app.py\n│   ├── host.json\n│   ├── local.settings.json.template\n│   └── requirements.txt\n├── notebooks/\n├── .github/workflows/\n│   ├── simple-deploy.yml\n│   └── deploy-functions.yml\n└── requirements.txt\n```\n\n## Local Development\n\n### Frontend\n\nServe the root folder and open the page:\n\n```bash\npython -m http.server 8080\n```\n\nOpen: `http://localhost:8080`\n\n### Backend (Azure Functions)\n\n```bash\ncd backend\npip install -r requirements.txt\nfunc start --port 7071\n```\n\nSet local settings from template:\n\n```json\n{\n  \"IsEncrypted\": false,\n  \"Values\": {\n    \"AzureWebJobsStorage\": \"UseDevelopmentStorage=true\",\n    \"FUNCTIONS_WORKER_RUNTIME\": \"python\",\n    \"IMAGES_STORAGE_CONNECTION_STRING\": \"\u003cyour-storage-connection-string\u003e\"\n  }\n}\n```\n\n## Deployment\n\n- **GitHub Pages**: `.github/workflows/simple-deploy.yml`\n- **Azure Functions**: `.github/workflows/deploy-functions.yml`\n\n## Notes\n\n- `requirements.txt` at repo root delegates to `backend/requirements.txt`.\n- The backend workflow installs dependencies from `backend/requirements.txt`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcool-machine%2Ftransformer-based-image-segmentation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcool-machine%2Ftransformer-based-image-segmentation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcool-machine%2Ftransformer-based-image-segmentation/lists"}