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"
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"
Output:
Create a new model on replicate and then push the model to replicate using cog push
command so given.