defaultSUPIR-v0Q
typeenum
value typestring
optionsSUPIR-v0Q, SUPIR-v0F
{
"a_prompt": "Cinematic, High Contrast, highly detailed, taken using a Canon EOS R camera, hyper detailed photo - realistic maximum detail, 32k, Color Grading, ultra HD, extreme meticulous detailing, skin pore detailing, hyper sharpness, perfect without deformations.",
"color_fix_type": "Wavelet",
"edm_steps": 50,
"image": "https://replicate.delivery/pbxt/Ka8PpdLrCFsykl2G2rTTPRPraq7Rl1VaL9ajEe7KExtlt4HI/26578.webp",
"linear_CFG": false,
"linear_s_stage2": false,
"min_size": 1024,
"model_name": "SUPIR-v0Q",
"n_prompt": "painting, oil painting, illustration, drawing, art, sketch, oil painting, cartoon, CG Style, 3D render, unreal engine, blurring, dirty, messy, worst quality, low quality, frames, watermark, signature, jpeg artifacts, deformed, lowres, over-smooth",
"s_cfg": 7.5,
"s_churn": 5,
"s_noise": 1.003,
"s_stage1": -1,
"s_stage2": 1,
"spt_linear_CFG": 1,
"spt_linear_s_stage2": 0,
"upscale": 2,
"use_llava": true
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_WNU**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run cjwbw/supir using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"cjwbw/supir:1302b550b4f7681da87ed0e405016d443fe1fafd64dabce6673401855a5039b5",
{
input: {
a_prompt: "Cinematic, High Contrast, highly detailed, taken using a Canon EOS R camera, hyper detailed photo - realistic maximum detail, 32k, Color Grading, ultra HD, extreme meticulous detailing, skin pore detailing, hyper sharpness, perfect without deformations.",
color_fix_type: "Wavelet",
edm_steps: 50,
image: "https://replicate.delivery/pbxt/Ka8PpdLrCFsykl2G2rTTPRPraq7Rl1VaL9ajEe7KExtlt4HI/26578.webp",
linear_CFG: false,
linear_s_stage2: false,
min_size: 1024,
model_name: "SUPIR-v0Q",
n_prompt: "painting, oil painting, illustration, drawing, art, sketch, oil painting, cartoon, CG Style, 3D render, unreal engine, blurring, dirty, messy, worst quality, low quality, frames, watermark, signature, jpeg artifacts, deformed, lowres, over-smooth",
s_cfg: 7.5,
s_churn: 5,
s_noise: 1.003,
s_stage1: -1,
s_stage2: 1,
spt_linear_CFG: 1,
spt_linear_s_stage2: 0,
upscale: 2,
use_llava: true
}
}
);
// To access the file URL:
console.log(output.url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output);
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=r8_WNU**********************************
This is your API token. Keep it to yourself.
import replicate
Run cjwbw/supir using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"cjwbw/supir:1302b550b4f7681da87ed0e405016d443fe1fafd64dabce6673401855a5039b5",
input={
"a_prompt": "Cinematic, High Contrast, highly detailed, taken using a Canon EOS R camera, hyper detailed photo - realistic maximum detail, 32k, Color Grading, ultra HD, extreme meticulous detailing, skin pore detailing, hyper sharpness, perfect without deformations.",
"color_fix_type": "Wavelet",
"edm_steps": 50,
"image": "https://replicate.delivery/pbxt/Ka8PpdLrCFsykl2G2rTTPRPraq7Rl1VaL9ajEe7KExtlt4HI/26578.webp",
"linear_CFG": False,
"linear_s_stage2": False,
"min_size": 1024,
"model_name": "SUPIR-v0Q",
"n_prompt": "painting, oil painting, illustration, drawing, art, sketch, oil painting, cartoon, CG Style, 3D render, unreal engine, blurring, dirty, messy, worst quality, low quality, frames, watermark, signature, jpeg artifacts, deformed, lowres, over-smooth",
"s_cfg": 7.5,
"s_churn": 5,
"s_noise": 1.003,
"s_stage1": -1,
"s_stage2": 1,
"spt_linear_CFG": 1,
"spt_linear_s_stage2": 0,
"upscale": 2,
"use_llava": True
}
)
# To access the file URL:
print(output.url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_WNU**********************************
This is your API token. Keep it to yourself.
Run cjwbw/supir 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": "cjwbw/supir:1302b550b4f7681da87ed0e405016d443fe1fafd64dabce6673401855a5039b5",
"input": {
"a_prompt": "Cinematic, High Contrast, highly detailed, taken using a Canon EOS R camera, hyper detailed photo - realistic maximum detail, 32k, Color Grading, ultra HD, extreme meticulous detailing, skin pore detailing, hyper sharpness, perfect without deformations.",
"color_fix_type": "Wavelet",
"edm_steps": 50,
"image": "https://replicate.delivery/pbxt/Ka8PpdLrCFsykl2G2rTTPRPraq7Rl1VaL9ajEe7KExtlt4HI/26578.webp",
"linear_CFG": false,
"linear_s_stage2": false,
"min_size": 1024,
"model_name": "SUPIR-v0Q",
"n_prompt": "painting, oil painting, illustration, drawing, art, sketch, oil painting, cartoon, CG Style, 3D render, unreal engine, blurring, dirty, messy, worst quality, low quality, frames, watermark, signature, jpeg artifacts, deformed, lowres, over-smooth",
"s_cfg": 7.5,
"s_churn": 5,
"s_noise": 1.003,
"s_stage1": -1,
"s_stage2": 1,
"spt_linear_CFG": 1,
"spt_linear_s_stage2": 0,
"upscale": 2,
"use_llava": true
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Loading...
{
"id": "okgiybdbnlcpu23suvqq6lufze",
"model": "cjwbw/supir",
"version": "1302b550b4f7681da87ed0e405016d443fe1fafd64dabce6673401855a5039b5",
"input": {
"a_prompt": "Cinematic, High Contrast, highly detailed, taken using a Canon EOS R camera, hyper detailed photo - realistic maximum detail, 32k, Color Grading, ultra HD, extreme meticulous detailing, skin pore detailing, hyper sharpness, perfect without deformations.",
"color_fix_type": "Wavelet",
"edm_steps": 50,
"image": "https://replicate.delivery/pbxt/Ka8PpdLrCFsykl2G2rTTPRPraq7Rl1VaL9ajEe7KExtlt4HI/26578.webp",
"linear_CFG": false,
"linear_s_stage2": false,
"min_size": 1024,
"model_name": "SUPIR-v0Q",
"n_prompt": "painting, oil painting, illustration, drawing, art, sketch, oil painting, cartoon, CG Style, 3D render, unreal engine, blurring, dirty, messy, worst quality, low quality, frames, watermark, signature, jpeg artifacts, deformed, lowres, over-smooth",
"s_cfg": 7.5,
"s_churn": 5,
"s_noise": 1.003,
"s_stage1": -1,
"s_stage2": 1,
"spt_linear_CFG": 1,
"spt_linear_s_stage2": 0,
"upscale": 2,
"use_llava": true
},
"logs": "Using seed: 2928\nCaptions from LLaVA: ['The image features a character from a popular animated series, possibly from the \"Neon Genesis Evangelion\" show. The character is a young woman with blue hair and a stern expression on her face. She is wearing a white and orange uniform, which is characteristic of the series. The character is sitting in a chair, possibly a cockpit, with a serious look on her face. The scene is set against a dark background, which adds to the dramatic atmosphere of the image. The character\\'s unique appearance and the context of the animated series suggest that this is a fan art or a promotional image for the show.']\nSeed set to 2928",
"output": "https://replicate.delivery/pbxt/JufaekRfXvGNDJpIVYl88MCqzgbd5obj3l7ef6LQGMtnggHUC/out.png",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2024-03-16T21:28:18.012687Z",
"started_at": "2024-03-16T21:28:18.03557Z",
"completed_at": "2024-03-16T21:28:36.741396Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/okgiybdbnlcpu23suvqq6lufze/cancel",
"get": "https://api.replicate.com/v1/predictions/okgiybdbnlcpu23suvqq6lufze"
},
"metrics": {
"predict_time": 18.705826,
"total_time": 18.728709
}
}