codeslake
/
refvsr-cvpr2022
Super-resolves an LR video frame (ultra-wide) using a reference video frame (wide-angle)
Prediction
codeslake/refvsr-cvpr2022:beaf0c28Input
{ "LR": "https://replicate.delivery/mgxm/f358ca02-e31a-4a90-b6b4-1b5250318166/LR.png", "Ref": "https://replicate.delivery/mgxm/a2959f3a-89e9-412d-b330-45de2b36a3d0/Ref.png" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run codeslake/refvsr-cvpr2022 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "codeslake/refvsr-cvpr2022:beaf0c2880ac8aa830cba26eb3e47c85937559aff4ece8eb85ca80377e0fdfbd", { input: { LR: "https://replicate.delivery/mgxm/f358ca02-e31a-4a90-b6b4-1b5250318166/LR.png", Ref: "https://replicate.delivery/mgxm/a2959f3a-89e9-412d-b330-45de2b36a3d0/Ref.png" } } ); console.log(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
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run codeslake/refvsr-cvpr2022 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "codeslake/refvsr-cvpr2022:beaf0c2880ac8aa830cba26eb3e47c85937559aff4ece8eb85ca80377e0fdfbd", input={ "LR": "https://replicate.delivery/mgxm/f358ca02-e31a-4a90-b6b4-1b5250318166/LR.png", "Ref": "https://replicate.delivery/mgxm/a2959f3a-89e9-412d-b330-45de2b36a3d0/Ref.png" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run codeslake/refvsr-cvpr2022 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": "beaf0c2880ac8aa830cba26eb3e47c85937559aff4ece8eb85ca80377e0fdfbd", "input": { "LR": "https://replicate.delivery/mgxm/f358ca02-e31a-4a90-b6b4-1b5250318166/LR.png", "Ref": "https://replicate.delivery/mgxm/a2959f3a-89e9-412d-b330-45de2b36a3d0/Ref.png" } }' \ 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/codeslake/refvsr-cvpr2022@sha256:beaf0c2880ac8aa830cba26eb3e47c85937559aff4ece8eb85ca80377e0fdfbd \ -i 'LR="https://replicate.delivery/mgxm/f358ca02-e31a-4a90-b6b4-1b5250318166/LR.png"' \ -i 'Ref="https://replicate.delivery/mgxm/a2959f3a-89e9-412d-b330-45de2b36a3d0/Ref.png"'
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/codeslake/refvsr-cvpr2022@sha256:beaf0c2880ac8aa830cba26eb3e47c85937559aff4ece8eb85ca80377e0fdfbd
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "LR": "https://replicate.delivery/mgxm/f358ca02-e31a-4a90-b6b4-1b5250318166/LR.png", "Ref": "https://replicate.delivery/mgxm/a2959f3a-89e9-412d-b330-45de2b36a3d0/Ref.png" } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2022-04-19T14:12:34.841420Z", "created_at": "2022-04-19T14:09:10.341796Z", "data_removed": false, "error": null, "id": "afzvtlguonczhidfpo3sa54vge", "input": { "LR": "https://replicate.delivery/mgxm/f358ca02-e31a-4a90-b6b4-1b5250318166/LR.png", "Ref": "https://replicate.delivery/mgxm/a2959f3a-89e9-412d-b330-45de2b36a3d0/Ref.png" }, "logs": null, "metrics": { "predict_time": 10.632596, "total_time": 204.499624 }, "output": { "LR_input": "https://replicate.delivery/mgxm/84eb2ac9-5919-4e36-baf3-15a124049357/inp.png", "SR_output": "https://replicate.delivery/mgxm/65db99eb-5153-47d7-8117-af56f93dfdf9/out.png" }, "started_at": "2022-04-19T14:12:24.208824Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/afzvtlguonczhidfpo3sa54vge", "cancel": "https://api.replicate.com/v1/predictions/afzvtlguonczhidfpo3sa54vge/cancel" }, "version": "beaf0c2880ac8aa830cba26eb3e47c85937559aff4ece8eb85ca80377e0fdfbd" }
Generated inPrediction
codeslake/refvsr-cvpr2022:beaf0c28IDyqqj3zgx2vg6bk4h56dyewykueStatusSucceededSourceWebHardware–Total durationCreatedInput
{ "LR": "https://replicate.delivery/mgxm/c6935d38-99cf-407e-813d-22a0debe9508/LR.png", "Ref": "https://replicate.delivery/mgxm/23dab9e1-52d6-4382-b58e-28326caa7ad8/Ref.png" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run codeslake/refvsr-cvpr2022 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "codeslake/refvsr-cvpr2022:beaf0c2880ac8aa830cba26eb3e47c85937559aff4ece8eb85ca80377e0fdfbd", { input: { LR: "https://replicate.delivery/mgxm/c6935d38-99cf-407e-813d-22a0debe9508/LR.png", Ref: "https://replicate.delivery/mgxm/23dab9e1-52d6-4382-b58e-28326caa7ad8/Ref.png" } } ); console.log(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
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run codeslake/refvsr-cvpr2022 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "codeslake/refvsr-cvpr2022:beaf0c2880ac8aa830cba26eb3e47c85937559aff4ece8eb85ca80377e0fdfbd", input={ "LR": "https://replicate.delivery/mgxm/c6935d38-99cf-407e-813d-22a0debe9508/LR.png", "Ref": "https://replicate.delivery/mgxm/23dab9e1-52d6-4382-b58e-28326caa7ad8/Ref.png" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run codeslake/refvsr-cvpr2022 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": "beaf0c2880ac8aa830cba26eb3e47c85937559aff4ece8eb85ca80377e0fdfbd", "input": { "LR": "https://replicate.delivery/mgxm/c6935d38-99cf-407e-813d-22a0debe9508/LR.png", "Ref": "https://replicate.delivery/mgxm/23dab9e1-52d6-4382-b58e-28326caa7ad8/Ref.png" } }' \ 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/codeslake/refvsr-cvpr2022@sha256:beaf0c2880ac8aa830cba26eb3e47c85937559aff4ece8eb85ca80377e0fdfbd \ -i 'LR="https://replicate.delivery/mgxm/c6935d38-99cf-407e-813d-22a0debe9508/LR.png"' \ -i 'Ref="https://replicate.delivery/mgxm/23dab9e1-52d6-4382-b58e-28326caa7ad8/Ref.png"'
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/codeslake/refvsr-cvpr2022@sha256:beaf0c2880ac8aa830cba26eb3e47c85937559aff4ece8eb85ca80377e0fdfbd
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "LR": "https://replicate.delivery/mgxm/c6935d38-99cf-407e-813d-22a0debe9508/LR.png", "Ref": "https://replicate.delivery/mgxm/23dab9e1-52d6-4382-b58e-28326caa7ad8/Ref.png" } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2022-04-19T14:16:47.003151Z", "created_at": "2022-04-19T14:16:34.596260Z", "data_removed": false, "error": null, "id": "yqqj3zgx2vg6bk4h56dyewykue", "input": { "LR": "https://replicate.delivery/mgxm/c6935d38-99cf-407e-813d-22a0debe9508/LR.png", "Ref": "https://replicate.delivery/mgxm/23dab9e1-52d6-4382-b58e-28326caa7ad8/Ref.png" }, "logs": null, "metrics": { "predict_time": 12.108895, "total_time": 12.406891 }, "output": { "LR_input": "https://replicate.delivery/mgxm/fdd8ad59-ec30-4f78-a36f-c352b9af0848/inp.png", "SR_output": "https://replicate.delivery/mgxm/8c613806-cc5c-4846-9662-45361de1de0b/out.png" }, "started_at": "2022-04-19T14:16:34.894256Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/yqqj3zgx2vg6bk4h56dyewykue", "cancel": "https://api.replicate.com/v1/predictions/yqqj3zgx2vg6bk4h56dyewykue/cancel" }, "version": "beaf0c2880ac8aa830cba26eb3e47c85937559aff4ece8eb85ca80377e0fdfbd" }
Generated inPrediction
codeslake/refvsr-cvpr2022:beaf0c28ID63mjtknr7ff37i2ywphmr3pjseStatusSucceededSourceWebHardware–Total durationCreatedInput
{ "LR": "https://replicate.delivery/mgxm/31e82020-849f-4c16-94e1-05bc29fc1b2a/LR.png", "Ref": "https://replicate.delivery/mgxm/8889e8d6-024f-49fb-b225-7762c589d80c/Ref.png" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run codeslake/refvsr-cvpr2022 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "codeslake/refvsr-cvpr2022:beaf0c2880ac8aa830cba26eb3e47c85937559aff4ece8eb85ca80377e0fdfbd", { input: { LR: "https://replicate.delivery/mgxm/31e82020-849f-4c16-94e1-05bc29fc1b2a/LR.png", Ref: "https://replicate.delivery/mgxm/8889e8d6-024f-49fb-b225-7762c589d80c/Ref.png" } } ); console.log(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
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run codeslake/refvsr-cvpr2022 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "codeslake/refvsr-cvpr2022:beaf0c2880ac8aa830cba26eb3e47c85937559aff4ece8eb85ca80377e0fdfbd", input={ "LR": "https://replicate.delivery/mgxm/31e82020-849f-4c16-94e1-05bc29fc1b2a/LR.png", "Ref": "https://replicate.delivery/mgxm/8889e8d6-024f-49fb-b225-7762c589d80c/Ref.png" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run codeslake/refvsr-cvpr2022 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": "beaf0c2880ac8aa830cba26eb3e47c85937559aff4ece8eb85ca80377e0fdfbd", "input": { "LR": "https://replicate.delivery/mgxm/31e82020-849f-4c16-94e1-05bc29fc1b2a/LR.png", "Ref": "https://replicate.delivery/mgxm/8889e8d6-024f-49fb-b225-7762c589d80c/Ref.png" } }' \ 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/codeslake/refvsr-cvpr2022@sha256:beaf0c2880ac8aa830cba26eb3e47c85937559aff4ece8eb85ca80377e0fdfbd \ -i 'LR="https://replicate.delivery/mgxm/31e82020-849f-4c16-94e1-05bc29fc1b2a/LR.png"' \ -i 'Ref="https://replicate.delivery/mgxm/8889e8d6-024f-49fb-b225-7762c589d80c/Ref.png"'
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/codeslake/refvsr-cvpr2022@sha256:beaf0c2880ac8aa830cba26eb3e47c85937559aff4ece8eb85ca80377e0fdfbd
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "LR": "https://replicate.delivery/mgxm/31e82020-849f-4c16-94e1-05bc29fc1b2a/LR.png", "Ref": "https://replicate.delivery/mgxm/8889e8d6-024f-49fb-b225-7762c589d80c/Ref.png" } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2022-04-19T14:16:04.303199Z", "created_at": "2022-04-19T14:15:51.544215Z", "data_removed": false, "error": null, "id": "63mjtknr7ff37i2ywphmr3pjse", "input": { "LR": "https://replicate.delivery/mgxm/31e82020-849f-4c16-94e1-05bc29fc1b2a/LR.png", "Ref": "https://replicate.delivery/mgxm/8889e8d6-024f-49fb-b225-7762c589d80c/Ref.png" }, "logs": null, "metrics": { "predict_time": 12.535436, "total_time": 12.758984 }, "output": { "LR_input": "https://replicate.delivery/mgxm/dd27e9c9-fbdd-44e3-8ff7-8a702fb882b5/inp.png", "SR_output": "https://replicate.delivery/mgxm/d4c7cf3c-4880-4237-947a-f9938bda447f/out.png" }, "started_at": "2022-04-19T14:15:51.767763Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/63mjtknr7ff37i2ywphmr3pjse", "cancel": "https://api.replicate.com/v1/predictions/63mjtknr7ff37i2ywphmr3pjse/cancel" }, "version": "beaf0c2880ac8aa830cba26eb3e47c85937559aff4ece8eb85ca80377e0fdfbd" }
Generated in
Want to make some of these yourself?
Run this model