{"id":30064605,"url":"https://github.com/ultralytics/replicate","last_synced_at":"2025-09-13T01:41:11.719Z","repository":{"id":308210723,"uuid":"1032020041","full_name":"ultralytics/replicate","owner":"ultralytics","description":"Deploy YOLO models to Replicate with ready-to-use Cog configurations and automated CI/CD. Includes optimized deployments for YOLO11, and reference implementations for custom model deployment.","archived":false,"fork":false,"pushed_at":"2025-08-26T18:51:41.000Z","size":246,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-27T01:58:09.280Z","etag":null,"topics":["ai","api","ci","classification-internal","deployment","detection","ml","pose-estimation","segmentation","ultralytics","yolo","yolo11","yolov5","yolov8"],"latest_commit_sha":null,"homepage":"https://replicate.com/ultralytics/yolo11n","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ultralytics.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,"zenodo":null},"funding":{"github":"glenn-jocher","patreon":"ultralytics","open_collective":"ultralytics"}},"created_at":"2025-08-04T17:20:03.000Z","updated_at":"2025-08-26T18:51:43.000Z","dependencies_parsed_at":"2025-08-04T20:50:31.541Z","dependency_job_id":"256faa3b-28f9-4bd6-978d-edd330cfb1af","html_url":"https://github.com/ultralytics/replicate","commit_stats":null,"previous_names":["ultralytics/replicate"],"tags_count":0,"template":false,"template_full_name":"ultralytics/template","purl":"pkg:github/ultralytics/replicate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ultralytics%2Freplicate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ultralytics%2Freplicate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ultralytics%2Freplicate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ultralytics%2Freplicate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ultralytics","download_url":"https://codeload.github.com/ultralytics/replicate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ultralytics%2Freplicate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274907821,"owners_count":25371819,"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-12T02:00:09.324Z","response_time":60,"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":["ai","api","ci","classification-internal","deployment","detection","ml","pose-estimation","segmentation","ultralytics","yolo","yolo11","yolov5","yolov8"],"created_at":"2025-08-08T05:16:36.934Z","updated_at":"2025-09-13T01:41:11.650Z","avatar_url":"https://github.com/ultralytics.png","language":"Python","funding_links":["https://github.com/sponsors/glenn-jocher","https://patreon.com/ultralytics","https://opencollective.com/ultralytics"],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://www.ultralytics.com/\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/ultralytics/assets/main/logo/Ultralytics_Logotype_Original.svg\" width=\"320\" alt=\"Ultralytics logo\"\u003e\u003c/a\u003e\n\n# 🚀 Ultralytics Replicate\n\nDeploy YOLO11n to Replicate at https://replicate.com/ultralytics/yolo11n with ready-to-use Cog configuration and automated CI/CD workflow.\n\n[![Push YOLO11n to Replicate](https://github.com/ultralytics/replicate/actions/workflows/push.yml/badge.svg)](https://github.com/ultralytics/replicate/actions/workflows/push.yml)\n[![Ultralytics Actions](https://github.com/ultralytics/replicate/actions/workflows/format.yml/badge.svg)](https://github.com/ultralytics/replicate/actions/workflows/format.yml)\n\n[![Ultralytics Discord](https://img.shields.io/discord/1089800235347353640?logo=discord\u0026logoColor=white\u0026label=Discord\u0026color=blue)](https://discord.com/invite/ultralytics)\n[![Ultralytics Forums](https://img.shields.io/discourse/users?server=https%3A%2F%2Fcommunity.ultralytics.com\u0026logo=discourse\u0026label=Forums\u0026color=blue)](https://community.ultralytics.com/)\n[![Ultralytics Reddit](https://img.shields.io/reddit/subreddit-subscribers/ultralytics?style=flat\u0026logo=reddit\u0026logoColor=white\u0026label=Reddit\u0026color=blue)](https://reddit.com/r/ultralytics)\n\n\u003cimg width=\"1920\" height=\"939\" alt=\"Replicate AI\" src=\"https://github.com/user-attachments/assets/effaa643-4710-4187-849a-aa4d933fb0ee\" /\u003e\n\n## 🗂️ Repository Structure\n\nThis repository provides optimized Replicate deployment for the YOLO11n model with automated CI/CD workflow.\n\n```plaintext\nultralytics/replicate/\n│\n├── yolo11n/                  # YOLO11n model deployment\n│   ├── cog.yaml              # Cog configuration\n│   ├── predict.py            # Prediction interface\n│   └── README.md             # Model documentation\n│\n├── .github/workflows/        # Automated deployment\n│   ├── push.yml              # Model deployment workflow\n│   ├── ci.yml                # Code quality checks\n│   └── format.yml            # Code formatting\n│\n├── test_prediction.py        # Local testing utility\n├── requirements.txt          # Dependencies\n├── LICENSE                   # AGPL-3.0 license\n└── README.md                 # This file\n```\n\n## ⚡ Quick Start\n\n### Deploy YOLO11n Model\n\nModel will deploy to https://replicate.com/ultralytics/yolo11n:\n\n```bash\n# Clone repository\ngit clone https://github.com/ultralytics/replicate.git\ncd replicate\n\n# Deploy to Replicate\ncd yolo11n\ncog login\ncog push r8.im/ultralytics/yolo11n\n```\n\n### Automated Deployment with GitHub Actions\n\n1. **Setup secrets:**\n   - Go to repository Settings → Secrets → Actions\n   - Add `REPLICATE_API_TOKEN` with your [Replicate API token](https://replicate.com/auth/token)\n\n2. **Deploy:**\n   - **Manual**: Actions tab → \"Push YOLO11n to Replicate\" → Run workflow\n   - **Automatic**: Push changes to `main` branch auto-deploys\n\n## 🛠️ Installation\n\nInstall Cog (Replicate's deployment tool):\n\n```bash\nsudo curl -o /usr/local/bin/cog -L https://github.com/replicate/cog/releases/latest/download/cog_$(uname -s)_$(uname -m)\nsudo chmod +x /usr/local/bin/cog\n```\n\nFor local development and testing:\n\n```bash\npip install -r requirements.txt\n```\n\n## 🎯 YOLO11n Model\n\n- **Purpose**: Official YOLO11n object detection\n- **Parameters**: 2.6M parameters\n- **Classes**: 80 COCO classes\n- **Performance**: 39.5 mAP50-95 on COCO dataset\n- **Speed**: Optimized for real-time inference\n\n## 🔧 Model Setup\n\nThe model will be automatically downloaded by ultralytics when needed:\n\n```python\nfrom ultralytics import YOLO\n\nmodel = YOLO(\"yolo11n.pt\")  # Downloads automatically if not present\n```\n\n## 🧪 Local Testing\n\nTest the model locally before deploying:\n\n```bash\n# Test YOLO11n\npython test_prediction.py --model yolo11n --image test.jpg\n```\n\n## 🚀 Features\n\n- **🏎️ Optimized**: PyTorch model for fast inference\n- **🤖 Automated**: GitHub Actions for CI/CD\n- **📦 Ready-to-use**: Pre-configured YOLO11n deployment\n- **📊 Scalable**: Auto-scaling Replicate infrastructure\n- **🎯 Simple**: Single model focus\n\n## 💡 Contribute\n\nUltralytics thrives on community collaboration, and we deeply value your contributions! Whether it's reporting bugs, suggesting features, or submitting code changes, your involvement is crucial.\n\n- **Reporting Issues**: Encounter a bug? Please report it on [GitHub Issues](https://github.com/ultralytics/replicate/issues).\n- **Feature Requests**: Have an idea for improvement? Share it via [GitHub Issues](https://github.com/ultralytics/replicate/issues).\n- **Pull Requests**: Want to contribute code? Please read our [Contributing Guide](https://docs.ultralytics.com/help/contributing/) first, then submit a Pull Request.\n- **Feedback**: Share your thoughts and experiences by participating in our official [Survey](https://www.ultralytics.com/survey?utm_source=github\u0026utm_medium=social\u0026utm_campaign=Survey).\n\nA heartfelt thank you 🙏 goes out to all our contributors! Your efforts help make Ultralytics tools better for everyone.\n\n[![Ultralytics open-source contributors](https://raw.githubusercontent.com/ultralytics/assets/main/im/image-contributors.png)](https://github.com/ultralytics/ultralytics/graphs/contributors)\n\n## 📄 License\n\nUltralytics offers two licensing options to accommodate diverse needs:\n\n- **AGPL-3.0 License**: Ideal for students, researchers, and enthusiasts passionate about open collaboration and knowledge sharing. This [OSI-approved](https://opensource.org/license/agpl-v3) open-source license promotes transparency and community involvement. See the [LICENSE](LICENSE) file for details.\n- **Enterprise License**: Designed for commercial applications, this license permits the seamless integration of Ultralytics software and AI models into commercial products and services, bypassing the copyleft requirements of AGPL-3.0. For commercial use cases, please inquire about an [Ultralytics Enterprise License](https://www.ultralytics.com/license).\n\n## 📮 Contact\n\nFor bug reports or feature suggestions related to this project or other Ultralytics projects, please use [GitHub Issues](https://github.com/ultralytics/replicate/issues). For general questions, discussions, and community support, join our [Discord](https://discord.com/invite/ultralytics) server!\n\n\u003cbr\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://github.com/ultralytics\"\u003e\u003cimg src=\"https://github.com/ultralytics/assets/raw/main/social/logo-social-github.png\" width=\"3%\" alt=\"Ultralytics GitHub\"\u003e\u003c/a\u003e\n  \u003cimg src=\"https://github.com/ultralytics/assets/raw/main/social/logo-transparent.png\" width=\"3%\" alt=\"space\"\u003e\n  \u003ca href=\"https://www.linkedin.com/company/ultralytics/\"\u003e\u003cimg src=\"https://github.com/ultralytics/assets/raw/main/social/logo-social-linkedin.png\" width=\"3%\" alt=\"Ultralytics LinkedIn\"\u003e\u003c/a\u003e\n  \u003cimg src=\"https://github.com/ultralytics/assets/raw/main/social/logo-transparent.png\" width=\"3%\" alt=\"space\"\u003e\n  \u003ca href=\"https://twitter.com/ultralytics\"\u003e\u003cimg src=\"https://github.com/ultralytics/assets/raw/main/social/logo-social-twitter.png\" width=\"3%\" alt=\"Ultralytics Twitter\"\u003e\u003c/a\u003e\n  \u003cimg src=\"https://github.com/ultralytics/assets/raw/main/social/logo-transparent.png\" width=\"3%\" alt=\"space\"\u003e\n  \u003ca href=\"https://youtube.com/ultralytics?sub_confirmation=1\"\u003e\u003cimg src=\"https://github.com/ultralytics/assets/raw/main/social/logo-social-youtube.png\" width=\"3%\" alt=\"Ultralytics YouTube\"\u003e\u003c/a\u003e\n  \u003cimg src=\"https://github.com/ultralytics/assets/raw/main/social/logo-transparent.png\" width=\"3%\" alt=\"space\"\u003e\n  \u003ca href=\"https://www.tiktok.com/@ultralytics\"\u003e\u003cimg src=\"https://github.com/ultralytics/assets/raw/main/social/logo-social-tiktok.png\" width=\"3%\" alt=\"Ultralytics TikTok\"\u003e\u003c/a\u003e\n  \u003cimg src=\"https://github.com/ultralytics/assets/raw/main/social/logo-transparent.png\" width=\"3%\" alt=\"space\"\u003e\n  \u003ca href=\"https://ultralytics.com/bilibili\"\u003e\u003cimg src=\"https://github.com/ultralytics/assets/raw/main/social/logo-social-bilibili.png\" width=\"3%\" alt=\"Ultralytics BiliBili\"\u003e\u003c/a\u003e\n  \u003cimg src=\"https://github.com/ultralytics/assets/raw/main/social/logo-transparent.png\" width=\"3%\" alt=\"space\"\u003e\n  \u003ca href=\"https://discord.com/invite/ultralytics\"\u003e\u003cimg src=\"https://github.com/ultralytics/assets/raw/main/social/logo-social-discord.png\" width=\"3%\" alt=\"Ultralytics Discord\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fultralytics%2Freplicate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fultralytics%2Freplicate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fultralytics%2Freplicate/lists"}