Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
highwaywu /image-forgery-detection:ab6f81af
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export 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 highwaywu/image-forgery-detection using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"highwaywu/image-forgery-detection:ab6f81afdf0de95354d44b61c18f4dfe31dc0ad83da8b0406d57afff8f6ace08",
{
input: {
image: "https://replicate.delivery/mgxm/f88fe9c4-7c68-4eaf-a0f2-57c4792cb05c/Screen_Shot_2022-06-26_at_5.51.33_PM.png"
}
}
);
// To access the file URL:
console.log(output.url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run highwaywu/image-forgery-detection using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"highwaywu/image-forgery-detection:ab6f81afdf0de95354d44b61c18f4dfe31dc0ad83da8b0406d57afff8f6ace08",
input={
"image": "https://replicate.delivery/mgxm/f88fe9c4-7c68-4eaf-a0f2-57c4792cb05c/Screen_Shot_2022-06-26_at_5.51.33_PM.png"
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run highwaywu/image-forgery-detection 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": "highwaywu/image-forgery-detection:ab6f81afdf0de95354d44b61c18f4dfe31dc0ad83da8b0406d57afff8f6ace08",
"input": {
"image": "https://replicate.delivery/mgxm/f88fe9c4-7c68-4eaf-a0f2-57c4792cb05c/Screen_Shot_2022-06-26_at_5.51.33_PM.png"
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2022-06-27T00:51:42.477452Z",
"created_at": "2022-06-27T00:51:39.271969Z",
"data_removed": false,
"error": null,
"id": "viijwod7zvbyvmuhfiwbpi73ti",
"input": {
"image": "https://replicate.delivery/mgxm/f88fe9c4-7c68-4eaf-a0f2-57c4792cb05c/Screen_Shot_2022-06-26_at_5.51.33_PM.png"
},
"logs": "Saving output image........\nPerforming decomposition.......\nDecomposition complete.\nPerforming model inference.......\nPrediction complete.\nMerging complete.\nSaving output image to cog_temp/input_decompose_896_pred/image_001.png",
"metrics": {
"predict_time": 3.087388,
"total_time": 3.205483
},
"output": "https://replicate.delivery/mgxm/42d1e511-7519-4ed8-82f1-558a923781e6/image_001.png",
"started_at": "2022-06-27T00:51:39.390064Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/viijwod7zvbyvmuhfiwbpi73ti",
"cancel": "https://api.replicate.com/v1/predictions/viijwod7zvbyvmuhfiwbpi73ti/cancel"
},
"version": "ab6f81afdf0de95354d44b61c18f4dfe31dc0ad83da8b0406d57afff8f6ace08"
}
Saving output image........
Performing decomposition.......
Decomposition complete.
Performing model inference.......
Prediction complete.
Merging complete.
Saving output image to cog_temp/input_decompose_896_pred/image_001.png