You're looking at a specific version of this model. Jump to the model overview.
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run cjwbw/vqfr using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"cjwbw/vqfr:ccd53a9a38ebbaa783a1e6318d22fa68c14c3aed66cc3589e53ef07d07f5be1d",
{
input: {
image: "https://replicate.delivery/mgxm/010a98fd-fc3d-42be-b26b-1a3dfd082bdb/10045.png",
aligned: false
}
}
);
console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run cjwbw/vqfr using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"cjwbw/vqfr:ccd53a9a38ebbaa783a1e6318d22fa68c14c3aed66cc3589e53ef07d07f5be1d",
input={
"image": "https://replicate.delivery/mgxm/010a98fd-fc3d-42be-b26b-1a3dfd082bdb/10045.png",
"aligned": False
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run cjwbw/vqfr 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": "ccd53a9a38ebbaa783a1e6318d22fa68c14c3aed66cc3589e53ef07d07f5be1d",
"input": {
"image": "https://replicate.delivery/mgxm/010a98fd-fc3d-42be-b26b-1a3dfd082bdb/10045.png",
"aligned": false
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
brew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run cjwbw/vqfr using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/chenxwh/vqfr@sha256:ccd53a9a38ebbaa783a1e6318d22fa68c14c3aed66cc3589e53ef07d07f5be1d \
-i 'image="https://replicate.delivery/mgxm/010a98fd-fc3d-42be-b26b-1a3dfd082bdb/10045.png"' \
-i 'aligned=false'
To learn more, take a look at the Cog documentation.
Pull and run cjwbw/vqfr using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 --gpus=all r8.im/chenxwh/vqfr@sha256:ccd53a9a38ebbaa783a1e6318d22fa68c14c3aed66cc3589e53ef07d07f5be1d
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "image": "https://replicate.delivery/mgxm/010a98fd-fc3d-42be-b26b-1a3dfd082bdb/10045.png", "aligned": false } }' \ http://localhost:5000/predictions
Add a payment method to run this model.
Each run costs approximately $0.026. Alternatively, try out our featured models for free.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2022-08-03T21:13:25.901782Z",
"created_at": "2022-08-03T21:13:18.698426Z",
"data_removed": false,
"error": null,
"id": "ot6cl5z2gfesrb3p3ugyv2tq3u",
"input": {
"image": "https://replicate.delivery/mgxm/010a98fd-fc3d-42be-b26b-1a3dfd082bdb/10045.png",
"aligned": false
},
"logs": "\tTile 1/6\n\tTile 2/6\n\tTile 3/6\n\tTile 4/6\n\tTile 5/6\n\tTile 6/6",
"metrics": {
"predict_time": 7.029647,
"total_time": 7.203356
},
"output": [
{
"image": "https://replicate.delivery/mgxm/4f977cbc-6502-4aef-8996-60021a7deb65/output_0.png"
},
{
"image": "https://replicate.delivery/mgxm/215445fb-5466-4878-b95b-c0887d46da0a/output_1.png"
},
{
"image": "https://replicate.delivery/mgxm/baf98bb8-954e-4b0a-be6e-e172e3e70924/output_2.png"
},
{
"image": "https://replicate.delivery/mgxm/369f174e-3f4d-444b-be41-c44bedfd4106/output.png"
}
],
"started_at": "2022-08-03T21:13:18.872135Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/ot6cl5z2gfesrb3p3ugyv2tq3u",
"cancel": "https://api.replicate.com/v1/predictions/ot6cl5z2gfesrb3p3ugyv2tq3u/cancel"
},
"version": "ccd53a9a38ebbaa783a1e6318d22fa68c14c3aed66cc3589e53ef07d07f5be1d"
}
Tile 1/6
Tile 2/6
Tile 3/6
Tile 4/6
Tile 5/6
Tile 6/6