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/17434c8c-72a7-427e-9ca5-4c927a6b8684/00.jpeg",
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/17434c8c-72a7-427e-9ca5-4c927a6b8684/00.jpeg",
"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/17434c8c-72a7-427e-9ca5-4c927a6b8684/00.jpeg",
"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/17434c8c-72a7-427e-9ca5-4c927a6b8684/00.jpeg"' \
-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/17434c8c-72a7-427e-9ca5-4c927a6b8684/00.jpeg", "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:06.590475Z",
"created_at": "2022-08-03T21:12:55.300987Z",
"data_removed": false,
"error": null,
"id": "xqmsbvrjsjenpmqxykub4jwgti",
"input": {
"image": "https://replicate.delivery/mgxm/17434c8c-72a7-427e-9ca5-4c927a6b8684/00.jpeg",
"aligned": false
},
"logs": "\tTile 1/20\n\tTile 2/20\n\tTile 3/20\n\tTile 4/20\n\tTile 5/20\n\tTile 6/20\n\tTile 7/20\n\tTile 8/20\n\tTile 9/20\n\tTile 10/20\n\tTile 11/20\n\tTile 12/20\n\tTile 13/20\n\tTile 14/20\n\tTile 15/20\n\tTile 16/20\n\tTile 17/20\n\tTile 18/20\n\tTile 19/20\n\tTile 20/20",
"metrics": {
"predict_time": 11.101639,
"total_time": 11.289488
},
"output": [
{
"image": "https://replicate.delivery/mgxm/76eede4d-a9ad-4e7d-be97-011c40d5d784/output_0.png"
},
{
"image": "https://replicate.delivery/mgxm/c592620a-f56a-4d97-bf89-8442194cd315/output_1.png"
},
{
"image": "https://replicate.delivery/mgxm/33a11530-ba5e-47a9-8218-4bef457374cc/output.png"
}
],
"started_at": "2022-08-03T21:12:55.488836Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/xqmsbvrjsjenpmqxykub4jwgti",
"cancel": "https://api.replicate.com/v1/predictions/xqmsbvrjsjenpmqxykub4jwgti/cancel"
},
"version": "ccd53a9a38ebbaa783a1e6318d22fa68c14c3aed66cc3589e53ef07d07f5be1d"
}
Tile 1/20
Tile 2/20
Tile 3/20
Tile 4/20
Tile 5/20
Tile 6/20
Tile 7/20
Tile 8/20
Tile 9/20
Tile 10/20
Tile 11/20
Tile 12/20
Tile 13/20
Tile 14/20
Tile 15/20
Tile 16/20
Tile 17/20
Tile 18/20
Tile 19/20
Tile 20/20