Skip to content

dhanushreddy291/civitai-replicate-deploy-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SDVN10-Anime Cog model

This is an implementation of the SDVN10-Anime as a Cog model. Cog packages machine learning models as standard containers.

You can use this template to deploy any CivitAI model to Replicate. Just change the MODEL_LINK value in predict.py to the model you want to deploy.

To get the URL, find the safetensors file and select "Copy Link Address" CivitAI URL

Install the cog cli:

sudo curl -o /usr/local/bin/cog -L https://github.com/replicate/cog/releases/latest/download/cog_`uname -s`_`uname -m`
sudo chmod +x /usr/local/bin/cog

Install the requirements:

pip install -r requirements.txt

Then, download the pre-trained weights:

cog run script/download-weights

Then, you can run predictions:

cog 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"

Example

Output:

An Example Output

Create a new model on replicate and then push the model to replicate using cog push command so given.

Releases

No releases published

Packages

 
 
 

Languages