{"id":31201260,"url":"https://github.com/dhanushreddy291/civitai-replicate-deploy-template","last_synced_at":"2025-09-20T12:04:45.904Z","repository":{"id":217276190,"uuid":"743434658","full_name":"dhanushreddy291/civitai-replicate-deploy-template","owner":"dhanushreddy291","description":"Cog template to deploy any CivitAI model on Replicate","archived":false,"fork":false,"pushed_at":"2024-12-31T06:36:16.000Z","size":545,"stargazers_count":13,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-31T07:27:09.931Z","etag":null,"topics":["civitai","cog","replicate","sd15","template"],"latest_commit_sha":null,"homepage":"https://replicate.com/dhanushreddy291/sdvn10-anime","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/dhanushreddy291.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":"2024-01-15T08:25:57.000Z","updated_at":"2024-12-31T06:36:19.000Z","dependencies_parsed_at":"2024-02-02T11:30:53.437Z","dependency_job_id":null,"html_url":"https://github.com/dhanushreddy291/civitai-replicate-deploy-template","commit_stats":null,"previous_names":["dhanushreddy291/civitai-replicate-deploy-template"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dhanushreddy291/civitai-replicate-deploy-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhanushreddy291%2Fcivitai-replicate-deploy-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhanushreddy291%2Fcivitai-replicate-deploy-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhanushreddy291%2Fcivitai-replicate-deploy-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhanushreddy291%2Fcivitai-replicate-deploy-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dhanushreddy291","download_url":"https://codeload.github.com/dhanushreddy291/civitai-replicate-deploy-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhanushreddy291%2Fcivitai-replicate-deploy-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276092038,"owners_count":25583700,"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-20T02:00:10.207Z","response_time":63,"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":["civitai","cog","replicate","sd15","template"],"created_at":"2025-09-20T12:02:41.213Z","updated_at":"2025-09-20T12:04:45.853Z","avatar_url":"https://github.com/dhanushreddy291.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SDVN10-Anime Cog model\n\nThis is an implementation of the [SDVN10-Anime](https://civitai.com/models/254012/sdvn10-anime) as a Cog model. [Cog packages machine learning models as standard containers.](https://github.com/replicate/cog)\n\nYou can use this template to deploy **any** [CivitAI](https://civitai.com) Stable Diffusion model to [Replicate](https://replicate.com/). Here's how:\n\n## Changing the Model\n\nTo use a different model from CivitAI:\n\n1. **Find your desired model on CivitAI.**\n2. **Locate the \"Download\" button for the `safetensors` file of the model.** It's important to use the `safetensors` version for compatibility and security.\n3. **Right-click the \"Download\" button and select \"Copy Link Address\".** This will copy the direct download URL of the model file.\n   ![CivitAI URL](image.png)\n4. **Open the `predict.py` file.**\n5. **Find the line that defines the `MODEL_LINK` variable.** It will look like this:\n   ```python\n   MODEL_LINK = \"https://civitai.com/api/download/models/286354?type=Model\u0026format=SafeTensor\u0026size=full\u0026fp=fp16\"\n   ```\n6. **Replace the existing URL within the quotes with the link you copied from CivitAI.** Make sure to keep the quotes. For example:\n   ```python\n   MODEL_LINK = \"YOUR_COPIED_LINK_ADDRESS_HERE\"\n   ```\n\n## Setting Up and Running the Model\n\n**Install the Cog CLI:**\n\nFollow the instructions on the [Cog documentation](https://cog.run) for installing the CLI. A common method is:\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\n### Install the requirements:\n\nNavigate to the repository directory in your terminal and install the necessary Python packages:\n\n```bash\npip install -r requirements.txt\n```\n\n### Download the Pre-trained Weights:\n\nThis script will download the model specified by the `MODEL_LINK` in `predict.py` and the necessary `VAE`.\n\n```bash\ncog run script/download-weights\n```\n\n### Run Predictions (Optional):\n\nOnce the weights are downloaded, you can run predictions using the cog predict command. Here's an example:\n\n```bash\ncog predict -i prompt=\"child boy, short hair, crew neck sweater, (masterpiece, best quality:1.6), ghibli, Sun in the sky, Rocky Mountain National Park, Charismatic\"\n```\n\n## Example Output\n\n![An Example Output](output.png)\n\n## Deploying to Replicate\n\n- Create a new model on [replicate](https://replicate.com/models). Choose a name and visibility for your model.\n- Push the model to Replicate using the cog push command. Replicate will provide you with the specific cog push command after you create the model on their platform. It will look something like:\n\n```bash\ncog push r8.im/YOUR_USERNAME/YOUR_MODEL_NAME\n```\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhanushreddy291%2Fcivitai-replicate-deploy-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdhanushreddy291%2Fcivitai-replicate-deploy-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhanushreddy291%2Fcivitai-replicate-deploy-template/lists"}