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.
scamai /deepfake-faceswap-detection:163f897b
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 scamai/deepfake-faceswap-detection using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"scamai/deepfake-faceswap-detection:163f897bd0e920d375e4e67299bfc4c5eeeb8beb243d5ea9b309d1c299f562e7",
{
input: {
image: "https://replicate.delivery/pbxt/ME8q1eNNLtTY3Pudy1oEM8rVRGJ3sqbFJj9s2KGQlKxXWtnh/000250_swap_with_004635.jpg"
}
}
);
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 variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run scamai/deepfake-faceswap-detection using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"scamai/deepfake-faceswap-detection:163f897bd0e920d375e4e67299bfc4c5eeeb8beb243d5ea9b309d1c299f562e7",
input={
"image": "https://replicate.delivery/pbxt/ME8q1eNNLtTY3Pudy1oEM8rVRGJ3sqbFJj9s2KGQlKxXWtnh/000250_swap_with_004635.jpg"
}
)
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 scamai/deepfake-faceswap-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": "scamai/deepfake-faceswap-detection:163f897bd0e920d375e4e67299bfc4c5eeeb8beb243d5ea9b309d1c299f562e7",
"input": {
"image": "https://replicate.delivery/pbxt/ME8q1eNNLtTY3Pudy1oEM8rVRGJ3sqbFJj9s2KGQlKxXWtnh/000250_swap_with_004635.jpg"
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{
"completed_at": "2024-12-29T06:33:23.895586Z",
"created_at": "2024-12-29T06:33:20.286000Z",
"data_removed": false,
"error": null,
"id": "vn961jm4ksrge0cm24fbssz9bc",
"input": {
"image": "https://replicate.delivery/pbxt/ME8q1eNNLtTY3Pudy1oEM8rVRGJ3sqbFJj9s2KGQlKxXWtnh/000250_swap_with_004635.jpg"
},
"logs": "2024-12-29 06:33:22,589 - predict - INFO - Face detected with highest score: 0.9977824091911316\n2024-12-29 06:33:23,291 - predict - INFO - AI super-resolution filter prob: 0.0\n2024-12-29 06:33:23,892 - predict - INFO - Deepfake faceswap prob: 0.9896",
"metrics": {
"predict_time": 3.593507588,
"total_time": 3.609586
},
"output": "Deepfake faceswap probability = 0.9896",
"started_at": "2024-12-29T06:33:20.302078Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/vn961jm4ksrge0cm24fbssz9bc",
"cancel": "https://api.replicate.com/v1/predictions/vn961jm4ksrge0cm24fbssz9bc/cancel"
},
"version": "163f897bd0e920d375e4e67299bfc4c5eeeb8beb243d5ea9b309d1c299f562e7"
}
2024-12-29 06:33:22,589 - predict - INFO - Face detected with highest score: 0.9977824091911316
2024-12-29 06:33:23,291 - predict - INFO - AI super-resolution filter prob: 0.0
2024-12-29 06:33:23,892 - predict - INFO - Deepfake faceswap prob: 0.9896