cjwbw / supir
Practicing Model Scaling for Photo-Realistic Image Restoration In the Wild. This version uses LLaVA-13b for captioning. (Updated 1 year, 3 months ago)
Prediction
cjwbw/supir:1302b550b4f7681da87ed0e405016d443fe1fafd64dabce6673401855a5039b5ModelIDo4b2mqtbpcxyuo52addzll2g6iStatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedInput
- s_cfg
- 7.5
- s_churn
- 5
- s_noise
- 1.003
- upscale
- 1
- 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.
- min_size
- 1024
- 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_stage1
- -1
- s_stage2
- 1
- edm_steps
- 50
- use_llava
- linear_CFG
- model_name
- SUPIR-v0Q
- color_fix_type
- Wavelet
- spt_linear_CFG
- 1
- linear_s_stage2
- spt_linear_s_stage2
- 0
{ "image": "https://replicate.delivery/pbxt/KSFJ6sJWyEiPWysywNsAr2enzigJA3NZpG4YMrxrSFEIEShi/05.png", "s_cfg": 7.5, "s_churn": 5, "s_noise": 1.003, "upscale": 1, "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.", "min_size": 1024, "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_stage1": -1, "s_stage2": 1, "edm_steps": 50, "use_llava": true, "linear_CFG": false, "model_name": "SUPIR-v0Q", "color_fix_type": "Wavelet", "spt_linear_CFG": 1, "linear_s_stage2": false, "spt_linear_s_stage2": 0 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client: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: { image: "https://replicate.delivery/pbxt/KSFJ6sJWyEiPWysywNsAr2enzigJA3NZpG4YMrxrSFEIEShi/05.png", s_cfg: 7.5, s_churn: 5, s_noise: 1.003, upscale: 1, 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.", min_size: 1024, 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_stage1: -1, s_stage2: 1, edm_steps: 50, use_llava: true, linear_CFG: false, model_name: "SUPIR-v0Q", color_fix_type: "Wavelet", spt_linear_CFG: 1, linear_s_stage2: false, spt_linear_s_stage2: 0 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client: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={ "image": "https://replicate.delivery/pbxt/KSFJ6sJWyEiPWysywNsAr2enzigJA3NZpG4YMrxrSFEIEShi/05.png", "s_cfg": 7.5, "s_churn": 5, "s_noise": 1.003, "upscale": 1, "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.", "min_size": 1024, "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_stage1": -1, "s_stage2": 1, "edm_steps": 50, "use_llava": True, "linear_CFG": False, "model_name": "SUPIR-v0Q", "color_fix_type": "Wavelet", "spt_linear_CFG": 1, "linear_s_stage2": False, "spt_linear_s_stage2": 0 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
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": { "image": "https://replicate.delivery/pbxt/KSFJ6sJWyEiPWysywNsAr2enzigJA3NZpG4YMrxrSFEIEShi/05.png", "s_cfg": 7.5, "s_churn": 5, "s_noise": 1.003, "upscale": 1, "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.", "min_size": 1024, "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_stage1": -1, "s_stage2": 1, "edm_steps": 50, "use_llava": true, "linear_CFG": false, "model_name": "SUPIR-v0Q", "color_fix_type": "Wavelet", "spt_linear_CFG": 1, "linear_s_stage2": false, "spt_linear_s_stage2": 0 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/cjwbw/supir@sha256:1302b550b4f7681da87ed0e405016d443fe1fafd64dabce6673401855a5039b5 \ -i 'image="https://replicate.delivery/pbxt/KSFJ6sJWyEiPWysywNsAr2enzigJA3NZpG4YMrxrSFEIEShi/05.png"' \ -i 's_cfg=7.5' \ -i 's_churn=5' \ -i 's_noise=1.003' \ -i 'upscale=1' \ -i '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."' \ -i 'min_size=1024' \ -i '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"' \ -i 's_stage1=-1' \ -i 's_stage2=1' \ -i 'edm_steps=50' \ -i 'use_llava=true' \ -i 'linear_CFG=false' \ -i 'model_name="SUPIR-v0Q"' \ -i 'color_fix_type="Wavelet"' \ -i 'spt_linear_CFG=1' \ -i 'linear_s_stage2=false' \ -i 'spt_linear_s_stage2=0'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/cjwbw/supir@sha256:1302b550b4f7681da87ed0e405016d443fe1fafd64dabce6673401855a5039b5
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "image": "https://replicate.delivery/pbxt/KSFJ6sJWyEiPWysywNsAr2enzigJA3NZpG4YMrxrSFEIEShi/05.png", "s_cfg": 7.5, "s_churn": 5, "s_noise": 1.003, "upscale": 1, "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.", "min_size": 1024, "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_stage1": -1, "s_stage2": 1, "edm_steps": 50, "use_llava": true, "linear_CFG": false, "model_name": "SUPIR-v0Q", "color_fix_type": "Wavelet", "spt_linear_CFG": 1, "linear_s_stage2": false, "spt_linear_s_stage2": 0 } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
We were unable to load these images. Please make sure the URLs are valid.
{ "input": "https://replicate.delivery/pbxt/KSFJ6sJWyEiPWysywNsAr2enzigJA3NZpG4YMrxrSFEIEShi/05.png", "outut": "https://replicate.delivery/pbxt/tsZTAUpHvDorAJcaZDd1BpYsBcijNfwhXfDUCAIvrqTsdnZSA/out.png" }
{ "completed_at": "2024-02-23T16:18:52.773773Z", "created_at": "2024-02-23T16:04:32.875679Z", "data_removed": false, "error": null, "id": "o4b2mqtbpcxyuo52addzll2g6i", "input": { "image": "https://replicate.delivery/pbxt/KSFJ6sJWyEiPWysywNsAr2enzigJA3NZpG4YMrxrSFEIEShi/05.png", "s_cfg": 7.5, "s_churn": 5, "s_noise": 1.003, "upscale": 1, "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.", "min_size": 1024, "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_stage1": -1, "s_stage2": 1, "edm_steps": 50, "use_llava": true, "linear_CFG": false, "model_name": "SUPIR-v0Q", "color_fix_type": "Wavelet", "spt_linear_CFG": 1, "linear_s_stage2": false, "spt_linear_s_stage2": 0 }, "logs": "Using seed: 12774\nCaptions from LLaVA: ['The image features a beautiful bird perched on a thin, dry branch in a field. The bird is colorful and stands out against the brown background of the field. The branch is located in the middle of the scene, with the bird sitting on it, drawing attention to itself. The field is filled with a variety of flowers, adding a vibrant touch to the scene. The overall style of the image is artistic, with a focus on the bird and its natural surroundings.']\nSeed set to 12774", "metrics": { "predict_time": 18.567178, "total_time": 859.898094 }, "output": "https://replicate.delivery/pbxt/tsZTAUpHvDorAJcaZDd1BpYsBcijNfwhXfDUCAIvrqTsdnZSA/out.png", "started_at": "2024-02-23T16:18:34.206595Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/o4b2mqtbpcxyuo52addzll2g6i", "cancel": "https://api.replicate.com/v1/predictions/o4b2mqtbpcxyuo52addzll2g6i/cancel" }, "version": "1302b550b4f7681da87ed0e405016d443fe1fafd64dabce6673401855a5039b5" }
Generated inUsing seed: 12774 Captions from LLaVA: ['The image features a beautiful bird perched on a thin, dry branch in a field. The bird is colorful and stands out against the brown background of the field. The branch is located in the middle of the scene, with the bird sitting on it, drawing attention to itself. The field is filled with a variety of flowers, adding a vibrant touch to the scene. The overall style of the image is artistic, with a focus on the bird and its natural surroundings.'] Seed set to 12774
Prediction
cjwbw/supir:1302b550b4f7681da87ed0e405016d443fe1fafd64dabce6673401855a5039b5ModelIDjefopatbs5eyje36p3fhhtqnj4StatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedInput
- s_cfg
- 7.5
- s_churn
- 5
- s_noise
- 1.003
- upscale
- 1
- 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.
- min_size
- 1024
- 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_stage1
- -1
- s_stage2
- 1
- edm_steps
- 50
- use_llava
- linear_CFG
- model_name
- SUPIR-v0F
- color_fix_type
- Wavelet
- spt_linear_CFG
- 1
- linear_s_stage2
- spt_linear_s_stage2
- 0
{ "image": "https://replicate.delivery/pbxt/KSFY6h1Wgj1HHS7ysdGdGkfRs5QDtxBKBs8XNsqkPeeUAI5a/05.png", "s_cfg": 7.5, "s_churn": 5, "s_noise": 1.003, "upscale": 1, "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.", "min_size": 1024, "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_stage1": -1, "s_stage2": 1, "edm_steps": 50, "use_llava": true, "linear_CFG": false, "model_name": "SUPIR-v0F", "color_fix_type": "Wavelet", "spt_linear_CFG": 1, "linear_s_stage2": false, "spt_linear_s_stage2": 0 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client: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: { image: "https://replicate.delivery/pbxt/KSFY6h1Wgj1HHS7ysdGdGkfRs5QDtxBKBs8XNsqkPeeUAI5a/05.png", s_cfg: 7.5, s_churn: 5, s_noise: 1.003, upscale: 1, 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.", min_size: 1024, 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_stage1: -1, s_stage2: 1, edm_steps: 50, use_llava: true, linear_CFG: false, model_name: "SUPIR-v0F", color_fix_type: "Wavelet", spt_linear_CFG: 1, linear_s_stage2: false, spt_linear_s_stage2: 0 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client: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={ "image": "https://replicate.delivery/pbxt/KSFY6h1Wgj1HHS7ysdGdGkfRs5QDtxBKBs8XNsqkPeeUAI5a/05.png", "s_cfg": 7.5, "s_churn": 5, "s_noise": 1.003, "upscale": 1, "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.", "min_size": 1024, "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_stage1": -1, "s_stage2": 1, "edm_steps": 50, "use_llava": True, "linear_CFG": False, "model_name": "SUPIR-v0F", "color_fix_type": "Wavelet", "spt_linear_CFG": 1, "linear_s_stage2": False, "spt_linear_s_stage2": 0 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
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": { "image": "https://replicate.delivery/pbxt/KSFY6h1Wgj1HHS7ysdGdGkfRs5QDtxBKBs8XNsqkPeeUAI5a/05.png", "s_cfg": 7.5, "s_churn": 5, "s_noise": 1.003, "upscale": 1, "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.", "min_size": 1024, "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_stage1": -1, "s_stage2": 1, "edm_steps": 50, "use_llava": true, "linear_CFG": false, "model_name": "SUPIR-v0F", "color_fix_type": "Wavelet", "spt_linear_CFG": 1, "linear_s_stage2": false, "spt_linear_s_stage2": 0 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/cjwbw/supir@sha256:1302b550b4f7681da87ed0e405016d443fe1fafd64dabce6673401855a5039b5 \ -i 'image="https://replicate.delivery/pbxt/KSFY6h1Wgj1HHS7ysdGdGkfRs5QDtxBKBs8XNsqkPeeUAI5a/05.png"' \ -i 's_cfg=7.5' \ -i 's_churn=5' \ -i 's_noise=1.003' \ -i 'upscale=1' \ -i '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."' \ -i 'min_size=1024' \ -i '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"' \ -i 's_stage1=-1' \ -i 's_stage2=1' \ -i 'edm_steps=50' \ -i 'use_llava=true' \ -i 'linear_CFG=false' \ -i 'model_name="SUPIR-v0F"' \ -i 'color_fix_type="Wavelet"' \ -i 'spt_linear_CFG=1' \ -i 'linear_s_stage2=false' \ -i 'spt_linear_s_stage2=0'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/cjwbw/supir@sha256:1302b550b4f7681da87ed0e405016d443fe1fafd64dabce6673401855a5039b5
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "image": "https://replicate.delivery/pbxt/KSFY6h1Wgj1HHS7ysdGdGkfRs5QDtxBKBs8XNsqkPeeUAI5a/05.png", "s_cfg": 7.5, "s_churn": 5, "s_noise": 1.003, "upscale": 1, "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.", "min_size": 1024, "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_stage1": -1, "s_stage2": 1, "edm_steps": 50, "use_llava": true, "linear_CFG": false, "model_name": "SUPIR-v0F", "color_fix_type": "Wavelet", "spt_linear_CFG": 1, "linear_s_stage2": false, "spt_linear_s_stage2": 0 } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
We were unable to load these images. Please make sure the URLs are valid.
{ "input": "https://replicate.delivery/pbxt/KSFY6h1Wgj1HHS7ysdGdGkfRs5QDtxBKBs8XNsqkPeeUAI5a/05.png", "outut": "https://replicate.delivery/pbxt/clVbfQEp4x1WTyTzetzZWY0yc6ARUcNkGreIGNXleneGD9MTC/out.png" }
{ "completed_at": "2024-02-23T16:30:17.972915Z", "created_at": "2024-02-23T16:20:22.564641Z", "data_removed": false, "error": null, "id": "jefopatbs5eyje36p3fhhtqnj4", "input": { "image": "https://replicate.delivery/pbxt/KSFY6h1Wgj1HHS7ysdGdGkfRs5QDtxBKBs8XNsqkPeeUAI5a/05.png", "s_cfg": 7.5, "s_churn": 5, "s_noise": 1.003, "upscale": 1, "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.", "min_size": 1024, "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_stage1": -1, "s_stage2": 1, "edm_steps": 50, "use_llava": true, "linear_CFG": false, "model_name": "SUPIR-v0F", "color_fix_type": "Wavelet", "spt_linear_CFG": 1, "linear_s_stage2": false, "spt_linear_s_stage2": 0 }, "logs": "Using seed: 39986\nCaptions from LLaVA: ['The image features a beautiful bird perched on a thin branch in a field. The bird is colorful, with a mix of yellow, blue, and orange hues, making it stand out against the natural backdrop. The bird is positioned towards the left side of the branch, and its vibrant colors create a striking contrast against the surrounding environment. The field appears to be covered in flowers, adding to the overall beauty of the scene.']\nSeed set to 39986", "metrics": { "predict_time": 19.20429, "total_time": 595.408274 }, "output": "https://replicate.delivery/pbxt/clVbfQEp4x1WTyTzetzZWY0yc6ARUcNkGreIGNXleneGD9MTC/out.png", "started_at": "2024-02-23T16:29:58.768625Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/jefopatbs5eyje36p3fhhtqnj4", "cancel": "https://api.replicate.com/v1/predictions/jefopatbs5eyje36p3fhhtqnj4/cancel" }, "version": "1302b550b4f7681da87ed0e405016d443fe1fafd64dabce6673401855a5039b5" }
Generated inUsing seed: 39986 Captions from LLaVA: ['The image features a beautiful bird perched on a thin branch in a field. The bird is colorful, with a mix of yellow, blue, and orange hues, making it stand out against the natural backdrop. The bird is positioned towards the left side of the branch, and its vibrant colors create a striking contrast against the surrounding environment. The field appears to be covered in flowers, adding to the overall beauty of the scene.'] Seed set to 39986
Prediction
cjwbw/supir:1302b550b4f7681da87ed0e405016d443fe1fafd64dabce6673401855a5039b5ModelIDmxc4qtdbn2eirldduuyusjcwbeStatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedInput
- s_cfg
- 7.5
- s_churn
- 5
- s_noise
- 1.003
- upscale
- 1
- 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.
- min_size
- 1024
- 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_stage1
- -1
- s_stage2
- 1
- edm_steps
- 50
- use_llava
- linear_CFG
- model_name
- SUPIR-v0Q
- color_fix_type
- Wavelet
- spt_linear_CFG
- 1
- linear_s_stage2
- spt_linear_s_stage2
- 0
{ "image": "https://replicate.delivery/pbxt/KSFsLGhrPTExSI9hzLgP8YO2wHtc38qmibPcTqRsoLMO1RkT/57.png", "s_cfg": 7.5, "s_churn": 5, "s_noise": 1.003, "upscale": 1, "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.", "min_size": 1024, "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_stage1": -1, "s_stage2": 1, "edm_steps": 50, "use_llava": true, "linear_CFG": false, "model_name": "SUPIR-v0Q", "color_fix_type": "Wavelet", "spt_linear_CFG": 1, "linear_s_stage2": false, "spt_linear_s_stage2": 0 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client: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: { image: "https://replicate.delivery/pbxt/KSFsLGhrPTExSI9hzLgP8YO2wHtc38qmibPcTqRsoLMO1RkT/57.png", s_cfg: 7.5, s_churn: 5, s_noise: 1.003, upscale: 1, 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.", min_size: 1024, 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_stage1: -1, s_stage2: 1, edm_steps: 50, use_llava: true, linear_CFG: false, model_name: "SUPIR-v0Q", color_fix_type: "Wavelet", spt_linear_CFG: 1, linear_s_stage2: false, spt_linear_s_stage2: 0 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client: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={ "image": "https://replicate.delivery/pbxt/KSFsLGhrPTExSI9hzLgP8YO2wHtc38qmibPcTqRsoLMO1RkT/57.png", "s_cfg": 7.5, "s_churn": 5, "s_noise": 1.003, "upscale": 1, "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.", "min_size": 1024, "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_stage1": -1, "s_stage2": 1, "edm_steps": 50, "use_llava": True, "linear_CFG": False, "model_name": "SUPIR-v0Q", "color_fix_type": "Wavelet", "spt_linear_CFG": 1, "linear_s_stage2": False, "spt_linear_s_stage2": 0 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
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": { "image": "https://replicate.delivery/pbxt/KSFsLGhrPTExSI9hzLgP8YO2wHtc38qmibPcTqRsoLMO1RkT/57.png", "s_cfg": 7.5, "s_churn": 5, "s_noise": 1.003, "upscale": 1, "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.", "min_size": 1024, "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_stage1": -1, "s_stage2": 1, "edm_steps": 50, "use_llava": true, "linear_CFG": false, "model_name": "SUPIR-v0Q", "color_fix_type": "Wavelet", "spt_linear_CFG": 1, "linear_s_stage2": false, "spt_linear_s_stage2": 0 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/cjwbw/supir@sha256:1302b550b4f7681da87ed0e405016d443fe1fafd64dabce6673401855a5039b5 \ -i 'image="https://replicate.delivery/pbxt/KSFsLGhrPTExSI9hzLgP8YO2wHtc38qmibPcTqRsoLMO1RkT/57.png"' \ -i 's_cfg=7.5' \ -i 's_churn=5' \ -i 's_noise=1.003' \ -i 'upscale=1' \ -i '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."' \ -i 'min_size=1024' \ -i '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"' \ -i 's_stage1=-1' \ -i 's_stage2=1' \ -i 'edm_steps=50' \ -i 'use_llava=true' \ -i 'linear_CFG=false' \ -i 'model_name="SUPIR-v0Q"' \ -i 'color_fix_type="Wavelet"' \ -i 'spt_linear_CFG=1' \ -i 'linear_s_stage2=false' \ -i 'spt_linear_s_stage2=0'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/cjwbw/supir@sha256:1302b550b4f7681da87ed0e405016d443fe1fafd64dabce6673401855a5039b5
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "image": "https://replicate.delivery/pbxt/KSFsLGhrPTExSI9hzLgP8YO2wHtc38qmibPcTqRsoLMO1RkT/57.png", "s_cfg": 7.5, "s_churn": 5, "s_noise": 1.003, "upscale": 1, "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.", "min_size": 1024, "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_stage1": -1, "s_stage2": 1, "edm_steps": 50, "use_llava": true, "linear_CFG": false, "model_name": "SUPIR-v0Q", "color_fix_type": "Wavelet", "spt_linear_CFG": 1, "linear_s_stage2": false, "spt_linear_s_stage2": 0 } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
We were unable to load these images. Please make sure the URLs are valid.
{ "input": "https://replicate.delivery/pbxt/KSFsLGhrPTExSI9hzLgP8YO2wHtc38qmibPcTqRsoLMO1RkT/57.png", "outut": "https://replicate.delivery/pbxt/zgOzfTqRFx1lXi5IpnHVNX6l8bfmK2IwKE14GNxnQ2OaznZSA/out.png" }
{ "completed_at": "2024-02-23T16:42:03.552563Z", "created_at": "2024-02-23T16:41:43.500409Z", "data_removed": false, "error": null, "id": "mxc4qtdbn2eirldduuyusjcwbe", "input": { "image": "https://replicate.delivery/pbxt/KSFsLGhrPTExSI9hzLgP8YO2wHtc38qmibPcTqRsoLMO1RkT/57.png", "s_cfg": 7.5, "s_churn": 5, "s_noise": 1.003, "upscale": 1, "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.", "min_size": 1024, "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_stage1": -1, "s_stage2": 1, "edm_steps": 50, "use_llava": true, "linear_CFG": false, "model_name": "SUPIR-v0Q", "color_fix_type": "Wavelet", "spt_linear_CFG": 1, "linear_s_stage2": false, "spt_linear_s_stage2": 0 }, "logs": "Using seed: 20197\nCaptions from LLaVA: ['The image depicts a tree-lined street with a yellow truck driving down the road, surrounded by a beautiful blossoming tree. The scene is captured in sepia tone, giving it a vintage and nostalgic feel. There are several cars parked along the street, with one car on the left side and two cars on the right side of the road. In addition to the vehicles, there are two people visible in the scene, one standing near the center of the image and the other closer to the right side. The combination of the blossoming tree, the yellow truck, and the sepia tone creates a charming and picturesque atmosphere.']\nSeed set to 20197", "metrics": { "predict_time": 19.931619, "total_time": 20.052154 }, "output": "https://replicate.delivery/pbxt/zgOzfTqRFx1lXi5IpnHVNX6l8bfmK2IwKE14GNxnQ2OaznZSA/out.png", "started_at": "2024-02-23T16:41:43.620944Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/mxc4qtdbn2eirldduuyusjcwbe", "cancel": "https://api.replicate.com/v1/predictions/mxc4qtdbn2eirldduuyusjcwbe/cancel" }, "version": "1302b550b4f7681da87ed0e405016d443fe1fafd64dabce6673401855a5039b5" }
Generated inUsing seed: 20197 Captions from LLaVA: ['The image depicts a tree-lined street with a yellow truck driving down the road, surrounded by a beautiful blossoming tree. The scene is captured in sepia tone, giving it a vintage and nostalgic feel. There are several cars parked along the street, with one car on the left side and two cars on the right side of the road. In addition to the vehicles, there are two people visible in the scene, one standing near the center of the image and the other closer to the right side. The combination of the blossoming tree, the yellow truck, and the sepia tone creates a charming and picturesque atmosphere.'] Seed set to 20197
Prediction
cjwbw/supir:1302b550b4f7681da87ed0e405016d443fe1fafd64dabce6673401855a5039b5ModelIDv2jtwutbivymcor5jlktkfqyeeStatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedInput
- s_cfg
- 7.5
- s_churn
- 5
- s_noise
- 1.003
- upscale
- 1
- 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.
- min_size
- 1024
- 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_stage1
- -1
- s_stage2
- 1
- edm_steps
- 50
- use_llava
- linear_CFG
- model_name
- SUPIR-v0Q
- color_fix_type
- Wavelet
- spt_linear_CFG
- 1
- linear_s_stage2
- spt_linear_s_stage2
- 0
{ "image": "https://replicate.delivery/pbxt/KSFvm3OIQn9dmwvzpf6SbRzbQewZVlaCMXuPhMOAaMdKhzzB/09.png", "s_cfg": 7.5, "s_churn": 5, "s_noise": 1.003, "upscale": 1, "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.", "min_size": 1024, "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_stage1": -1, "s_stage2": 1, "edm_steps": 50, "use_llava": true, "linear_CFG": false, "model_name": "SUPIR-v0Q", "color_fix_type": "Wavelet", "spt_linear_CFG": 1, "linear_s_stage2": false, "spt_linear_s_stage2": 0 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client: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: { image: "https://replicate.delivery/pbxt/KSFvm3OIQn9dmwvzpf6SbRzbQewZVlaCMXuPhMOAaMdKhzzB/09.png", s_cfg: 7.5, s_churn: 5, s_noise: 1.003, upscale: 1, 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.", min_size: 1024, 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_stage1: -1, s_stage2: 1, edm_steps: 50, use_llava: true, linear_CFG: false, model_name: "SUPIR-v0Q", color_fix_type: "Wavelet", spt_linear_CFG: 1, linear_s_stage2: false, spt_linear_s_stage2: 0 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client: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={ "image": "https://replicate.delivery/pbxt/KSFvm3OIQn9dmwvzpf6SbRzbQewZVlaCMXuPhMOAaMdKhzzB/09.png", "s_cfg": 7.5, "s_churn": 5, "s_noise": 1.003, "upscale": 1, "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.", "min_size": 1024, "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_stage1": -1, "s_stage2": 1, "edm_steps": 50, "use_llava": True, "linear_CFG": False, "model_name": "SUPIR-v0Q", "color_fix_type": "Wavelet", "spt_linear_CFG": 1, "linear_s_stage2": False, "spt_linear_s_stage2": 0 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
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": { "image": "https://replicate.delivery/pbxt/KSFvm3OIQn9dmwvzpf6SbRzbQewZVlaCMXuPhMOAaMdKhzzB/09.png", "s_cfg": 7.5, "s_churn": 5, "s_noise": 1.003, "upscale": 1, "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.", "min_size": 1024, "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_stage1": -1, "s_stage2": 1, "edm_steps": 50, "use_llava": true, "linear_CFG": false, "model_name": "SUPIR-v0Q", "color_fix_type": "Wavelet", "spt_linear_CFG": 1, "linear_s_stage2": false, "spt_linear_s_stage2": 0 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/cjwbw/supir@sha256:1302b550b4f7681da87ed0e405016d443fe1fafd64dabce6673401855a5039b5 \ -i 'image="https://replicate.delivery/pbxt/KSFvm3OIQn9dmwvzpf6SbRzbQewZVlaCMXuPhMOAaMdKhzzB/09.png"' \ -i 's_cfg=7.5' \ -i 's_churn=5' \ -i 's_noise=1.003' \ -i 'upscale=1' \ -i '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."' \ -i 'min_size=1024' \ -i '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"' \ -i 's_stage1=-1' \ -i 's_stage2=1' \ -i 'edm_steps=50' \ -i 'use_llava=true' \ -i 'linear_CFG=false' \ -i 'model_name="SUPIR-v0Q"' \ -i 'color_fix_type="Wavelet"' \ -i 'spt_linear_CFG=1' \ -i 'linear_s_stage2=false' \ -i 'spt_linear_s_stage2=0'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/cjwbw/supir@sha256:1302b550b4f7681da87ed0e405016d443fe1fafd64dabce6673401855a5039b5
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "image": "https://replicate.delivery/pbxt/KSFvm3OIQn9dmwvzpf6SbRzbQewZVlaCMXuPhMOAaMdKhzzB/09.png", "s_cfg": 7.5, "s_churn": 5, "s_noise": 1.003, "upscale": 1, "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.", "min_size": 1024, "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_stage1": -1, "s_stage2": 1, "edm_steps": 50, "use_llava": true, "linear_CFG": false, "model_name": "SUPIR-v0Q", "color_fix_type": "Wavelet", "spt_linear_CFG": 1, "linear_s_stage2": false, "spt_linear_s_stage2": 0 } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
We were unable to load these images. Please make sure the URLs are valid.
{ "input": "https://replicate.delivery/pbxt/KSFvm3OIQn9dmwvzpf6SbRzbQewZVlaCMXuPhMOAaMdKhzzB/09.png", "outut": "https://replicate.delivery/pbxt/vgr0FWz2CgqLApalQaogSfDCHcpDrgnUwpEkAdzAeyLH3nZSA/out.png" }
{ "completed_at": "2024-02-23T16:46:00.168746Z", "created_at": "2024-02-23T16:45:20.053392Z", "data_removed": false, "error": null, "id": "v2jtwutbivymcor5jlktkfqyee", "input": { "image": "https://replicate.delivery/pbxt/KSFvm3OIQn9dmwvzpf6SbRzbQewZVlaCMXuPhMOAaMdKhzzB/09.png", "s_cfg": 7.5, "s_churn": 5, "s_noise": 1.003, "upscale": 1, "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.", "min_size": 1024, "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_stage1": -1, "s_stage2": 1, "edm_steps": 50, "use_llava": true, "linear_CFG": false, "model_name": "SUPIR-v0Q", "color_fix_type": "Wavelet", "spt_linear_CFG": 1, "linear_s_stage2": false, "spt_linear_s_stage2": 0 }, "logs": "Using seed: 60353\nCaptions from LLaVA: [\"The image features a penguin standing on a snow-covered surface, possibly an iceberg or a frozen beach. The penguin is positioned in the center of the scene, with its wings spread wide, as if it is flying or preparing to take off. The penguin's wings are the main focus of the image, with the bird's body and head visible beneath them. The scene is captured in a black and white style, which adds a sense of timelessness and emphasizes the contrast between the penguin and its surroundings.\"]\nSeed set to 60353", "metrics": { "predict_time": 18.864946, "total_time": 40.115354 }, "output": "https://replicate.delivery/pbxt/vgr0FWz2CgqLApalQaogSfDCHcpDrgnUwpEkAdzAeyLH3nZSA/out.png", "started_at": "2024-02-23T16:45:41.303800Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/v2jtwutbivymcor5jlktkfqyee", "cancel": "https://api.replicate.com/v1/predictions/v2jtwutbivymcor5jlktkfqyee/cancel" }, "version": "1302b550b4f7681da87ed0e405016d443fe1fafd64dabce6673401855a5039b5" }
Generated inUsing seed: 60353 Captions from LLaVA: ["The image features a penguin standing on a snow-covered surface, possibly an iceberg or a frozen beach. The penguin is positioned in the center of the scene, with its wings spread wide, as if it is flying or preparing to take off. The penguin's wings are the main focus of the image, with the bird's body and head visible beneath them. The scene is captured in a black and white style, which adds a sense of timelessness and emphasizes the contrast between the penguin and its surroundings."] Seed set to 60353
Prediction
cjwbw/supir:1302b550b4f7681da87ed0e405016d443fe1fafd64dabce6673401855a5039b5ModelID4dcngutbkryajkrs2saa6rlcnaStatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedInput
- s_cfg
- 7.5
- s_churn
- 5
- s_noise
- 1.003
- upscale
- 1
- 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.
- min_size
- 1024
- 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_stage1
- -1
- s_stage2
- 1
- edm_steps
- 50
- use_llava
- linear_CFG
- model_name
- SUPIR-v0Q
- color_fix_type
- Wavelet
- spt_linear_CFG
- 1
- linear_s_stage2
- spt_linear_s_stage2
- 0
{ "image": "https://replicate.delivery/pbxt/KSG0yfPZmz1tieAkKToLKkInLROWGGPqVPYQyD7J2cSVzkIy/21.png", "s_cfg": 7.5, "s_churn": 5, "s_noise": 1.003, "upscale": 1, "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.", "min_size": 1024, "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_stage1": -1, "s_stage2": 1, "edm_steps": 50, "use_llava": true, "linear_CFG": false, "model_name": "SUPIR-v0Q", "color_fix_type": "Wavelet", "spt_linear_CFG": 1, "linear_s_stage2": false, "spt_linear_s_stage2": 0 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client: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: { image: "https://replicate.delivery/pbxt/KSG0yfPZmz1tieAkKToLKkInLROWGGPqVPYQyD7J2cSVzkIy/21.png", s_cfg: 7.5, s_churn: 5, s_noise: 1.003, upscale: 1, 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.", min_size: 1024, 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_stage1: -1, s_stage2: 1, edm_steps: 50, use_llava: true, linear_CFG: false, model_name: "SUPIR-v0Q", color_fix_type: "Wavelet", spt_linear_CFG: 1, linear_s_stage2: false, spt_linear_s_stage2: 0 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client: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={ "image": "https://replicate.delivery/pbxt/KSG0yfPZmz1tieAkKToLKkInLROWGGPqVPYQyD7J2cSVzkIy/21.png", "s_cfg": 7.5, "s_churn": 5, "s_noise": 1.003, "upscale": 1, "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.", "min_size": 1024, "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_stage1": -1, "s_stage2": 1, "edm_steps": 50, "use_llava": True, "linear_CFG": False, "model_name": "SUPIR-v0Q", "color_fix_type": "Wavelet", "spt_linear_CFG": 1, "linear_s_stage2": False, "spt_linear_s_stage2": 0 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
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": { "image": "https://replicate.delivery/pbxt/KSG0yfPZmz1tieAkKToLKkInLROWGGPqVPYQyD7J2cSVzkIy/21.png", "s_cfg": 7.5, "s_churn": 5, "s_noise": 1.003, "upscale": 1, "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.", "min_size": 1024, "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_stage1": -1, "s_stage2": 1, "edm_steps": 50, "use_llava": true, "linear_CFG": false, "model_name": "SUPIR-v0Q", "color_fix_type": "Wavelet", "spt_linear_CFG": 1, "linear_s_stage2": false, "spt_linear_s_stage2": 0 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/cjwbw/supir@sha256:1302b550b4f7681da87ed0e405016d443fe1fafd64dabce6673401855a5039b5 \ -i 'image="https://replicate.delivery/pbxt/KSG0yfPZmz1tieAkKToLKkInLROWGGPqVPYQyD7J2cSVzkIy/21.png"' \ -i 's_cfg=7.5' \ -i 's_churn=5' \ -i 's_noise=1.003' \ -i 'upscale=1' \ -i '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."' \ -i 'min_size=1024' \ -i '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"' \ -i 's_stage1=-1' \ -i 's_stage2=1' \ -i 'edm_steps=50' \ -i 'use_llava=true' \ -i 'linear_CFG=false' \ -i 'model_name="SUPIR-v0Q"' \ -i 'color_fix_type="Wavelet"' \ -i 'spt_linear_CFG=1' \ -i 'linear_s_stage2=false' \ -i 'spt_linear_s_stage2=0'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/cjwbw/supir@sha256:1302b550b4f7681da87ed0e405016d443fe1fafd64dabce6673401855a5039b5
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "image": "https://replicate.delivery/pbxt/KSG0yfPZmz1tieAkKToLKkInLROWGGPqVPYQyD7J2cSVzkIy/21.png", "s_cfg": 7.5, "s_churn": 5, "s_noise": 1.003, "upscale": 1, "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.", "min_size": 1024, "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_stage1": -1, "s_stage2": 1, "edm_steps": 50, "use_llava": true, "linear_CFG": false, "model_name": "SUPIR-v0Q", "color_fix_type": "Wavelet", "spt_linear_CFG": 1, "linear_s_stage2": false, "spt_linear_s_stage2": 0 } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
We were unable to load these images. Please make sure the URLs are valid.
{ "input": "https://replicate.delivery/pbxt/KSG0yfPZmz1tieAkKToLKkInLROWGGPqVPYQyD7J2cSVzkIy/21.png", "outut": "https://replicate.delivery/pbxt/ociI2u8x8mbDOxR0nPIHSx4FJGkQlWTRaPfMaTprdb399zMJA/out.png" }
{ "completed_at": "2024-02-23T16:51:08.540017Z", "created_at": "2024-02-23T16:50:50.232898Z", "data_removed": false, "error": null, "id": "4dcngutbkryajkrs2saa6rlcna", "input": { "image": "https://replicate.delivery/pbxt/KSG0yfPZmz1tieAkKToLKkInLROWGGPqVPYQyD7J2cSVzkIy/21.png", "s_cfg": 7.5, "s_churn": 5, "s_noise": 1.003, "upscale": 1, "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.", "min_size": 1024, "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_stage1": -1, "s_stage2": 1, "edm_steps": 50, "use_llava": true, "linear_CFG": false, "model_name": "SUPIR-v0Q", "color_fix_type": "Wavelet", "spt_linear_CFG": 1, "linear_s_stage2": false, "spt_linear_s_stage2": 0 }, "logs": "Using seed: 14059\nCaptions from LLaVA: [\"The image features a young boy with short hair, wearing a red jacket, and smiling for the camera. He appears to be posing for a picture, possibly in a school setting. The boy's smile is wide and genuine, showcasing his happiness. The photo is taken in black and white, giving it a classic and timeless appearance.\"]\nSeed set to 14059", "metrics": { "predict_time": 18.259714, "total_time": 18.307119 }, "output": "https://replicate.delivery/pbxt/ociI2u8x8mbDOxR0nPIHSx4FJGkQlWTRaPfMaTprdb399zMJA/out.png", "started_at": "2024-02-23T16:50:50.280303Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/4dcngutbkryajkrs2saa6rlcna", "cancel": "https://api.replicate.com/v1/predictions/4dcngutbkryajkrs2saa6rlcna/cancel" }, "version": "1302b550b4f7681da87ed0e405016d443fe1fafd64dabce6673401855a5039b5" }
Generated inUsing seed: 14059 Captions from LLaVA: ["The image features a young boy with short hair, wearing a red jacket, and smiling for the camera. He appears to be posing for a picture, possibly in a school setting. The boy's smile is wide and genuine, showcasing his happiness. The photo is taken in black and white, giving it a classic and timeless appearance."] Seed set to 14059
Prediction
cjwbw/supir:1302b550b4f7681da87ed0e405016d443fe1fafd64dabce6673401855a5039b5ModelID5bbhdf3bdvzerfjo6y2w64zyhiStatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedInput
- s_cfg
- 7.5
- s_churn
- 5
- s_noise
- 1.003
- upscale
- 1
- 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.
- min_size
- 1024
- 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_stage1
- -1
- s_stage2
- 1
- edm_steps
- 50
- use_llava
- linear_CFG
- model_name
- SUPIR-v0F
- color_fix_type
- Wavelet
- spt_linear_CFG
- 1
- linear_s_stage2
- spt_linear_s_stage2
- 0
{ "image": "https://replicate.delivery/pbxt/KSG5mMG3J42UaPk2hM6dysUAfQe1vvPVp9ApoS4L3T4b2eFo/40.png", "s_cfg": 7.5, "s_churn": 5, "s_noise": 1.003, "upscale": 1, "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.", "min_size": 1024, "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_stage1": -1, "s_stage2": 1, "edm_steps": 50, "use_llava": true, "linear_CFG": false, "model_name": "SUPIR-v0F", "color_fix_type": "Wavelet", "spt_linear_CFG": 1, "linear_s_stage2": false, "spt_linear_s_stage2": 0 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client: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: { image: "https://replicate.delivery/pbxt/KSG5mMG3J42UaPk2hM6dysUAfQe1vvPVp9ApoS4L3T4b2eFo/40.png", s_cfg: 7.5, s_churn: 5, s_noise: 1.003, upscale: 1, 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.", min_size: 1024, 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_stage1: -1, s_stage2: 1, edm_steps: 50, use_llava: true, linear_CFG: false, model_name: "SUPIR-v0F", color_fix_type: "Wavelet", spt_linear_CFG: 1, linear_s_stage2: false, spt_linear_s_stage2: 0 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client: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={ "image": "https://replicate.delivery/pbxt/KSG5mMG3J42UaPk2hM6dysUAfQe1vvPVp9ApoS4L3T4b2eFo/40.png", "s_cfg": 7.5, "s_churn": 5, "s_noise": 1.003, "upscale": 1, "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.", "min_size": 1024, "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_stage1": -1, "s_stage2": 1, "edm_steps": 50, "use_llava": True, "linear_CFG": False, "model_name": "SUPIR-v0F", "color_fix_type": "Wavelet", "spt_linear_CFG": 1, "linear_s_stage2": False, "spt_linear_s_stage2": 0 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
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": { "image": "https://replicate.delivery/pbxt/KSG5mMG3J42UaPk2hM6dysUAfQe1vvPVp9ApoS4L3T4b2eFo/40.png", "s_cfg": 7.5, "s_churn": 5, "s_noise": 1.003, "upscale": 1, "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.", "min_size": 1024, "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_stage1": -1, "s_stage2": 1, "edm_steps": 50, "use_llava": true, "linear_CFG": false, "model_name": "SUPIR-v0F", "color_fix_type": "Wavelet", "spt_linear_CFG": 1, "linear_s_stage2": false, "spt_linear_s_stage2": 0 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/cjwbw/supir@sha256:1302b550b4f7681da87ed0e405016d443fe1fafd64dabce6673401855a5039b5 \ -i 'image="https://replicate.delivery/pbxt/KSG5mMG3J42UaPk2hM6dysUAfQe1vvPVp9ApoS4L3T4b2eFo/40.png"' \ -i 's_cfg=7.5' \ -i 's_churn=5' \ -i 's_noise=1.003' \ -i 'upscale=1' \ -i '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."' \ -i 'min_size=1024' \ -i '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"' \ -i 's_stage1=-1' \ -i 's_stage2=1' \ -i 'edm_steps=50' \ -i 'use_llava=true' \ -i 'linear_CFG=false' \ -i 'model_name="SUPIR-v0F"' \ -i 'color_fix_type="Wavelet"' \ -i 'spt_linear_CFG=1' \ -i 'linear_s_stage2=false' \ -i 'spt_linear_s_stage2=0'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/cjwbw/supir@sha256:1302b550b4f7681da87ed0e405016d443fe1fafd64dabce6673401855a5039b5
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "image": "https://replicate.delivery/pbxt/KSG5mMG3J42UaPk2hM6dysUAfQe1vvPVp9ApoS4L3T4b2eFo/40.png", "s_cfg": 7.5, "s_churn": 5, "s_noise": 1.003, "upscale": 1, "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.", "min_size": 1024, "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_stage1": -1, "s_stage2": 1, "edm_steps": 50, "use_llava": true, "linear_CFG": false, "model_name": "SUPIR-v0F", "color_fix_type": "Wavelet", "spt_linear_CFG": 1, "linear_s_stage2": false, "spt_linear_s_stage2": 0 } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
We were unable to load these images. Please make sure the URLs are valid.
{ "input": "https://replicate.delivery/pbxt/KSG5mMG3J42UaPk2hM6dysUAfQe1vvPVp9ApoS4L3T4b2eFo/40.png", "outut": "https://replicate.delivery/pbxt/X44WTUc3ph6NBduTK2AfPAh7xgPrzkOYlF92HYc4ieYrAoZSA/out.png" }
{ "completed_at": "2024-02-23T16:56:12.441726Z", "created_at": "2024-02-23T16:55:54.253795Z", "data_removed": false, "error": null, "id": "5bbhdf3bdvzerfjo6y2w64zyhi", "input": { "image": "https://replicate.delivery/pbxt/KSG5mMG3J42UaPk2hM6dysUAfQe1vvPVp9ApoS4L3T4b2eFo/40.png", "s_cfg": 7.5, "s_churn": 5, "s_noise": 1.003, "upscale": 1, "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.", "min_size": 1024, "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_stage1": -1, "s_stage2": 1, "edm_steps": 50, "use_llava": true, "linear_CFG": false, "model_name": "SUPIR-v0F", "color_fix_type": "Wavelet", "spt_linear_CFG": 1, "linear_s_stage2": false, "spt_linear_s_stage2": 0 }, "logs": "Using seed: 12159\nCaptions from LLaVA: ['The image features a brick wall with a row of potted plants placed on top of it. The plants are of various sizes and are arranged in a visually appealing manner. The plants are green and leafy, adding a touch of nature to the scene. The brick wall serves as a sturdy base for the plants, creating an attractive display. The combination of the brick wall and the potted plants creates a harmonious and aesthetically pleasing environment.']\nSeed set to 12159", "metrics": { "predict_time": 18.151839, "total_time": 18.187931 }, "output": "https://replicate.delivery/pbxt/X44WTUc3ph6NBduTK2AfPAh7xgPrzkOYlF92HYc4ieYrAoZSA/out.png", "started_at": "2024-02-23T16:55:54.289887Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/5bbhdf3bdvzerfjo6y2w64zyhi", "cancel": "https://api.replicate.com/v1/predictions/5bbhdf3bdvzerfjo6y2w64zyhi/cancel" }, "version": "1302b550b4f7681da87ed0e405016d443fe1fafd64dabce6673401855a5039b5" }
Generated inUsing seed: 12159 Captions from LLaVA: ['The image features a brick wall with a row of potted plants placed on top of it. The plants are of various sizes and are arranged in a visually appealing manner. The plants are green and leafy, adding a touch of nature to the scene. The brick wall serves as a sturdy base for the plants, creating an attractive display. The combination of the brick wall and the potted plants creates a harmonious and aesthetically pleasing environment.'] Seed set to 12159
Want to make some of these yourself?
Run this model