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/5da1563f-ce05-4124-a504-3d9ebd311909/029_Blake_Lively_00_lq.png",
aligned: true
}
}
);
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/5da1563f-ce05-4124-a504-3d9ebd311909/029_Blake_Lively_00_lq.png",
"aligned": True
}
)
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/5da1563f-ce05-4124-a504-3d9ebd311909/029_Blake_Lively_00_lq.png",
"aligned": true
}
}' \
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/5da1563f-ce05-4124-a504-3d9ebd311909/029_Blake_Lively_00_lq.png"' \
-i 'aligned=true'
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/5da1563f-ce05-4124-a504-3d9ebd311909/029_Blake_Lively_00_lq.png", "aligned": true } }' \ 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:12:21.503235Z",
"created_at": "2022-08-03T21:12:19.949955Z",
"data_removed": false,
"error": null,
"id": "p2tvyydx7fbttk4muihivxzoay",
"input": {
"image": "https://replicate.delivery/mgxm/5da1563f-ce05-4124-a504-3d9ebd311909/029_Blake_Lively_00_lq.png",
"aligned": true
},
"logs": null,
"metrics": {
"predict_time": 1.377835,
"total_time": 1.55328
},
"output": [
{
"image": "https://replicate.delivery/mgxm/bc7a348f-60f5-40fb-89e4-ed3dd250cb31/output_0.png"
}
],
"started_at": "2022-08-03T21:12:20.125400Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/p2tvyydx7fbttk4muihivxzoay",
"cancel": "https://api.replicate.com/v1/predictions/p2tvyydx7fbttk4muihivxzoay/cancel"
},
"version": "ccd53a9a38ebbaa783a1e6318d22fa68c14c3aed66cc3589e53ef07d07f5be1d"
}