arielreplicate
/
tres_iqa
Assess the quality of an image
Run arielreplicate/tres_iqa with an API
Use one of our client libraries to get started quickly.
Set the REPLICATE_API_TOKEN
environment variable
export REPLICATE_API_TOKEN=<paste-your-token-here>
Learn more about authentication
Install Replicate’s Node.js client library
npm install replicate
Run arielreplicate/tres_iqa using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
import Replicate from "replicate";
const replicate = new Replicate();
const input = {
input_image: "https://replicate.delivery/pbxt/IC61s3dEF28OhrwRXokmtENnM75qwzUCvFAqqnn6R4Qse3sY/alberta-2297204_960_720.jpg"
};
const output = await replicate.run("arielreplicate/tres_iqa:1daedb13151ae74f051b944b0d8127c23ef7f1a6b518931151f9285d89350713", { input });
console.log(output)
//=> 17.294212341308594