Readme
This model doesn't have a readme.
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run charlesmccarthy/cog-iniverse using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"charlesmccarthy/cog-iniverse:265154b572c4b3780ee830d57d9770fb84c2c6951ff99b877fccb8d819e7e33b",
{
input: {
vae: "sdxl-vae-fp16-fix",
seed: -1,
model: "guofengv11.safetensors",
steps: 35,
width: 1184,
height: 864,
prompt: "1girl, cat girl, cat ears, cat tail, yellow eyes, white hair, bob cut, from side, scenery, sunset",
cfg_scale: 7,
scheduler: "DPM++ 2M SDE Karras",
batch_size: 1,
negative_prompt: "unaestheticXL_Sky3.1, animal, cat, dog, big breasts",
guidance_rescale: 0.7,
prepend_preprompt: true
}
}
);
// To access the file URL:
console.log(output[0].url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run charlesmccarthy/cog-iniverse using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"charlesmccarthy/cog-iniverse:265154b572c4b3780ee830d57d9770fb84c2c6951ff99b877fccb8d819e7e33b",
input={
"vae": "sdxl-vae-fp16-fix",
"seed": -1,
"model": "guofengv11.safetensors",
"steps": 35,
"width": 1184,
"height": 864,
"prompt": "1girl, cat girl, cat ears, cat tail, yellow eyes, white hair, bob cut, from side, scenery, sunset",
"cfg_scale": 7,
"scheduler": "DPM++ 2M SDE Karras",
"batch_size": 1,
"negative_prompt": "unaestheticXL_Sky3.1, animal, cat, dog, big breasts",
"guidance_rescale": 0.7,
"prepend_preprompt": True
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run charlesmccarthy/cog-iniverse using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"version": "charlesmccarthy/cog-iniverse:265154b572c4b3780ee830d57d9770fb84c2c6951ff99b877fccb8d819e7e33b",
"input": {
"vae": "sdxl-vae-fp16-fix",
"seed": -1,
"model": "guofengv11.safetensors",
"steps": 35,
"width": 1184,
"height": 864,
"prompt": "1girl, cat girl, cat ears, cat tail, yellow eyes, white hair, bob cut, from side, scenery, sunset",
"cfg_scale": 7,
"scheduler": "DPM++ 2M SDE Karras",
"batch_size": 1,
"negative_prompt": "unaestheticXL_Sky3.1, animal, cat, dog, big breasts",
"guidance_rescale": 0.7,
"prepend_preprompt": true
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
{
"completed_at": "2024-06-02T23:20:36.187661Z",
"created_at": "2024-06-02T23:18:44.551000Z",
"data_removed": false,
"error": null,
"id": "cnyxdww68xrgj0cfvczv2vbzyg",
"input": {
"vae": "sdxl-vae-fp16-fix",
"seed": -1,
"model": "guofengv11.safetensors",
"steps": 35,
"width": 1184,
"height": 864,
"prompt": "1girl, cat girl, cat ears, cat tail, yellow eyes, white hair, bob cut, from side, scenery, sunset",
"cfg_scale": 7,
"scheduler": "DPM++ 2M SDE Karras",
"batch_size": 1,
"negative_prompt": "unaestheticXL_Sky3.1, animal, cat, dog, big breasts",
"guidance_rescale": 0.7,
"prepend_preprompt": true
},
"logs": "0%| | 0/35 [00:00<?, ?it/s]/root/.pyenv/versions/3.10.14/lib/python3.10/site-packages/torch/nn/modules/conv.py:456: UserWarning: Plan failed with a cudnnException: CUDNN_BACKEND_EXECUTION_PLAN_DESCRIPTOR: cudnnFinalize Descriptor Failed cudnn_status: CUDNN_STATUS_NOT_SUPPORTED (Triggered internally at ../aten/src/ATen/native/cudnn/Conv_v8.cpp:919.)\nreturn F.conv2d(input, weight, bias, self.stride,\n 3%|▎ | 1/35 [00:00<00:15, 2.26it/s]\n 6%|▌ | 2/35 [00:00<00:08, 4.08it/s]\n 9%|▊ | 3/35 [00:00<00:06, 4.57it/s]\n 11%|█▏ | 4/35 [00:00<00:06, 4.84it/s]\n 14%|█▍ | 5/35 [00:01<00:06, 5.00it/s]\n 17%|█▋ | 6/35 [00:01<00:05, 5.10it/s]\n 20%|██ | 7/35 [00:01<00:05, 5.15it/s]\n 23%|██▎ | 8/35 [00:01<00:05, 5.19it/s]\n 26%|██▌ | 9/35 [00:01<00:04, 5.22it/s]\n 29%|██▊ | 10/35 [00:02<00:04, 5.24it/s]\n 31%|███▏ | 11/35 [00:02<00:04, 5.26it/s]\n 34%|███▍ | 12/35 [00:02<00:04, 5.26it/s]\n 37%|███▋ | 13/35 [00:02<00:04, 5.26it/s]\n 40%|████ | 14/35 [00:02<00:03, 5.27it/s]\n 43%|████▎ | 15/35 [00:03<00:03, 5.27it/s]\n 46%|████▌ | 16/35 [00:03<00:03, 5.28it/s]\n 49%|████▊ | 17/35 [00:03<00:03, 5.28it/s]\n 51%|█████▏ | 18/35 [00:03<00:03, 5.28it/s]\n 54%|█████▍ | 19/35 [00:03<00:03, 5.28it/s]\n 57%|█████▋ | 20/35 [00:03<00:02, 5.27it/s]\n 60%|██████ | 21/35 [00:04<00:02, 5.27it/s]\n 63%|██████▎ | 22/35 [00:04<00:02, 5.26it/s]\n 66%|██████▌ | 23/35 [00:04<00:02, 5.26it/s]\n 69%|██████▊ | 24/35 [00:04<00:02, 5.26it/s]\n 71%|███████▏ | 25/35 [00:04<00:01, 5.26it/s]\n 74%|███████▍ | 26/35 [00:05<00:01, 5.26it/s]\n 77%|███████▋ | 27/35 [00:05<00:01, 5.26it/s]\n 80%|████████ | 28/35 [00:05<00:01, 5.25it/s]\n 83%|████████▎ | 29/35 [00:05<00:01, 5.26it/s]\n 86%|████████▌ | 30/35 [00:05<00:00, 5.26it/s]\n 89%|████████▊ | 31/35 [00:06<00:00, 5.25it/s]\n 91%|█████████▏| 32/35 [00:06<00:00, 5.25it/s]\n 94%|█████████▍| 33/35 [00:06<00:00, 5.25it/s]\n 97%|█████████▋| 34/35 [00:06<00:00, 5.25it/s]\n100%|██████████| 35/35 [00:06<00:00, 5.25it/s]\n100%|██████████| 35/35 [00:06<00:00, 5.14it/s]",
"metrics": {
"predict_time": 9.940234,
"total_time": 111.636661
},
"output": [
"https://replicate.delivery/pbxt/i03lbO97dF6PLpjpvBsAeV3rfjZj5exe6mrfdmtwklqSIYVXC/0.png"
],
"started_at": "2024-06-02T23:20:26.247427Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/cnyxdww68xrgj0cfvczv2vbzyg",
"cancel": "https://api.replicate.com/v1/predictions/cnyxdww68xrgj0cfvczv2vbzyg/cancel"
},
"version": "265154b572c4b3780ee830d57d9770fb84c2c6951ff99b877fccb8d819e7e33b"
}
0%| | 0/35 [00:00<?, ?it/s]/root/.pyenv/versions/3.10.14/lib/python3.10/site-packages/torch/nn/modules/conv.py:456: UserWarning: Plan failed with a cudnnException: CUDNN_BACKEND_EXECUTION_PLAN_DESCRIPTOR: cudnnFinalize Descriptor Failed cudnn_status: CUDNN_STATUS_NOT_SUPPORTED (Triggered internally at ../aten/src/ATen/native/cudnn/Conv_v8.cpp:919.)
return F.conv2d(input, weight, bias, self.stride,
3%|▎ | 1/35 [00:00<00:15, 2.26it/s]
6%|▌ | 2/35 [00:00<00:08, 4.08it/s]
9%|▊ | 3/35 [00:00<00:06, 4.57it/s]
11%|█▏ | 4/35 [00:00<00:06, 4.84it/s]
14%|█▍ | 5/35 [00:01<00:06, 5.00it/s]
17%|█▋ | 6/35 [00:01<00:05, 5.10it/s]
20%|██ | 7/35 [00:01<00:05, 5.15it/s]
23%|██▎ | 8/35 [00:01<00:05, 5.19it/s]
26%|██▌ | 9/35 [00:01<00:04, 5.22it/s]
29%|██▊ | 10/35 [00:02<00:04, 5.24it/s]
31%|███▏ | 11/35 [00:02<00:04, 5.26it/s]
34%|███▍ | 12/35 [00:02<00:04, 5.26it/s]
37%|███▋ | 13/35 [00:02<00:04, 5.26it/s]
40%|████ | 14/35 [00:02<00:03, 5.27it/s]
43%|████▎ | 15/35 [00:03<00:03, 5.27it/s]
46%|████▌ | 16/35 [00:03<00:03, 5.28it/s]
49%|████▊ | 17/35 [00:03<00:03, 5.28it/s]
51%|█████▏ | 18/35 [00:03<00:03, 5.28it/s]
54%|█████▍ | 19/35 [00:03<00:03, 5.28it/s]
57%|█████▋ | 20/35 [00:03<00:02, 5.27it/s]
60%|██████ | 21/35 [00:04<00:02, 5.27it/s]
63%|██████▎ | 22/35 [00:04<00:02, 5.26it/s]
66%|██████▌ | 23/35 [00:04<00:02, 5.26it/s]
69%|██████▊ | 24/35 [00:04<00:02, 5.26it/s]
71%|███████▏ | 25/35 [00:04<00:01, 5.26it/s]
74%|███████▍ | 26/35 [00:05<00:01, 5.26it/s]
77%|███████▋ | 27/35 [00:05<00:01, 5.26it/s]
80%|████████ | 28/35 [00:05<00:01, 5.25it/s]
83%|████████▎ | 29/35 [00:05<00:01, 5.26it/s]
86%|████████▌ | 30/35 [00:05<00:00, 5.26it/s]
89%|████████▊ | 31/35 [00:06<00:00, 5.25it/s]
91%|█████████▏| 32/35 [00:06<00:00, 5.25it/s]
94%|█████████▍| 33/35 [00:06<00:00, 5.25it/s]
97%|█████████▋| 34/35 [00:06<00:00, 5.25it/s]
100%|██████████| 35/35 [00:06<00:00, 5.25it/s]
100%|██████████| 35/35 [00:06<00:00, 5.14it/s]
This model runs on Nvidia L40S GPU hardware. We don't yet have enough runs of this model to provide performance information.
This model doesn't have a readme.
This model is cold. You'll get a fast response if the model is warm and already running, and a slower response if the model is cold and starting up.
This model runs on L40S hardware which costs $0.000975 per second. View more.
0%| | 0/35 [00:00<?, ?it/s]/root/.pyenv/versions/3.10.14/lib/python3.10/site-packages/torch/nn/modules/conv.py:456: UserWarning: Plan failed with a cudnnException: CUDNN_BACKEND_EXECUTION_PLAN_DESCRIPTOR: cudnnFinalize Descriptor Failed cudnn_status: CUDNN_STATUS_NOT_SUPPORTED (Triggered internally at ../aten/src/ATen/native/cudnn/Conv_v8.cpp:919.)
return F.conv2d(input, weight, bias, self.stride,
3%|▎ | 1/35 [00:00<00:15, 2.26it/s]
6%|▌ | 2/35 [00:00<00:08, 4.08it/s]
9%|▊ | 3/35 [00:00<00:06, 4.57it/s]
11%|█▏ | 4/35 [00:00<00:06, 4.84it/s]
14%|█▍ | 5/35 [00:01<00:06, 5.00it/s]
17%|█▋ | 6/35 [00:01<00:05, 5.10it/s]
20%|██ | 7/35 [00:01<00:05, 5.15it/s]
23%|██▎ | 8/35 [00:01<00:05, 5.19it/s]
26%|██▌ | 9/35 [00:01<00:04, 5.22it/s]
29%|██▊ | 10/35 [00:02<00:04, 5.24it/s]
31%|███▏ | 11/35 [00:02<00:04, 5.26it/s]
34%|███▍ | 12/35 [00:02<00:04, 5.26it/s]
37%|███▋ | 13/35 [00:02<00:04, 5.26it/s]
40%|████ | 14/35 [00:02<00:03, 5.27it/s]
43%|████▎ | 15/35 [00:03<00:03, 5.27it/s]
46%|████▌ | 16/35 [00:03<00:03, 5.28it/s]
49%|████▊ | 17/35 [00:03<00:03, 5.28it/s]
51%|█████▏ | 18/35 [00:03<00:03, 5.28it/s]
54%|█████▍ | 19/35 [00:03<00:03, 5.28it/s]
57%|█████▋ | 20/35 [00:03<00:02, 5.27it/s]
60%|██████ | 21/35 [00:04<00:02, 5.27it/s]
63%|██████▎ | 22/35 [00:04<00:02, 5.26it/s]
66%|██████▌ | 23/35 [00:04<00:02, 5.26it/s]
69%|██████▊ | 24/35 [00:04<00:02, 5.26it/s]
71%|███████▏ | 25/35 [00:04<00:01, 5.26it/s]
74%|███████▍ | 26/35 [00:05<00:01, 5.26it/s]
77%|███████▋ | 27/35 [00:05<00:01, 5.26it/s]
80%|████████ | 28/35 [00:05<00:01, 5.25it/s]
83%|████████▎ | 29/35 [00:05<00:01, 5.26it/s]
86%|████████▌ | 30/35 [00:05<00:00, 5.26it/s]
89%|████████▊ | 31/35 [00:06<00:00, 5.25it/s]
91%|█████████▏| 32/35 [00:06<00:00, 5.25it/s]
94%|█████████▍| 33/35 [00:06<00:00, 5.25it/s]
97%|█████████▋| 34/35 [00:06<00:00, 5.25it/s]
100%|██████████| 35/35 [00:06<00:00, 5.25it/s]
100%|██████████| 35/35 [00:06<00:00, 5.14it/s]