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.
fofr /face-to-sticker:a99a32fd
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 fofr/face-to-sticker using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"fofr/face-to-sticker:a99a32fdaa9a9650cfc7900d54323d0d247dac69f7abb05eac0e742687a25662",
{
input: {
image: "https://replicate.delivery/pbxt/KU1AG0cit5nc3xIG1BBZ6DKkhunvvGsZXmEZzuW9HPYVkj8o/MTk4MTczMTkzNzI1Mjg5NjYy.webp",
steps: 20,
width: 1024,
height: 1024,
prompt: "arnold",
upscale: false,
upscale_steps: 10,
negative_prompt: "",
prompt_strength: 4.5,
ip_adapter_noise: 0.5,
ip_adapter_weight: 0.2,
instant_id_strength: 0.7
}
}
);
// To access the file URL:
console.log(output[0].url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output[0]);
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 fofr/face-to-sticker using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"fofr/face-to-sticker:a99a32fdaa9a9650cfc7900d54323d0d247dac69f7abb05eac0e742687a25662",
input={
"image": "https://replicate.delivery/pbxt/KU1AG0cit5nc3xIG1BBZ6DKkhunvvGsZXmEZzuW9HPYVkj8o/MTk4MTczMTkzNzI1Mjg5NjYy.webp",
"steps": 20,
"width": 1024,
"height": 1024,
"prompt": "arnold",
"upscale": False,
"upscale_steps": 10,
"negative_prompt": "",
"prompt_strength": 4.5,
"ip_adapter_noise": 0.5,
"ip_adapter_weight": 0.2,
"instant_id_strength": 0.7
}
)
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 fofr/face-to-sticker 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": "fofr/face-to-sticker:a99a32fdaa9a9650cfc7900d54323d0d247dac69f7abb05eac0e742687a25662",
"input": {
"image": "https://replicate.delivery/pbxt/KU1AG0cit5nc3xIG1BBZ6DKkhunvvGsZXmEZzuW9HPYVkj8o/MTk4MTczMTkzNzI1Mjg5NjYy.webp",
"steps": 20,
"width": 1024,
"height": 1024,
"prompt": "arnold",
"upscale": false,
"upscale_steps": 10,
"negative_prompt": "",
"prompt_strength": 4.5,
"ip_adapter_noise": 0.5,
"ip_adapter_weight": 0.2,
"instant_id_strength": 0.7
}
}' \
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": "2024-02-28T17:27:00.231622Z",
"created_at": "2024-02-28T17:25:26.718692Z",
"data_removed": false,
"error": null,
"id": "qqentxlbvmryks22glbxjiw2za",
"input": {
"image": "https://replicate.delivery/pbxt/KU1AG0cit5nc3xIG1BBZ6DKkhunvvGsZXmEZzuW9HPYVkj8o/MTk4MTczMTkzNzI1Mjg5NjYy.webp",
"steps": 20,
"width": 1024,
"height": 1024,
"prompt": "arnold",
"upscale": false,
"upscale_steps": 10,
"negative_prompt": "",
"prompt_strength": 4.5,
"ip_adapter_noise": 0.5,
"ip_adapter_weight": 0.2,
"instant_id_strength": 0.7
},
"logs": "Random seed set to: 966518876\nChecking inputs\n✅ /tmp/inputs/input.webp\n====================================\nRunning workflow\ngot prompt\nExecuting node 22, title: Load Image, class type: LoadImage\nExecuting node 25, title: AIO Aux Preprocessor, class type: AIO_Preprocessor\nExecuting node 47, title: Preview Image, class type: PreviewImage\nExecuting node 28, title: Control Net Stacker, class type: Control Net Stacker\nExecuting node 2, title: Efficient Loader, class type: Efficient Loader\nRequested to load SDXLClipModel\nLoading 1 new model\n----------------------------------------\n\u001b[36mEfficient Loader Models Cache:\u001b[0m\nCkpt:\n[1] albedobaseXL_v13\nLora:\n[1] base_ckpt: albedobaseXL_v13\nlora(mod,clip): StickersRedmond(1,1)\nExecuting node 41, title: Apply InstantID, class type: ApplyInstantID\n\u001b[33mINFO: the IPAdapter reference image is not a square, CLIPImageProcessor will resize and crop it at the center. If the main focus of the picture is not in the middle the result might not be what you are expecting.\u001b[0m\nExecuting node 43, title: Apply IPAdapter FaceID, class type: IPAdapterApplyFaceID\nExecuting node 4, title: KSampler (Efficient), class type: KSampler (Efficient)\nRequested to load SDXL\nRequested to load ControlNet\nRequested to load ControlNet\nLoading 3 new models\n 0%| | 0/20 [00:00<?, ?it/s]\n 5%|▌ | 1/20 [00:00<00:08, 2.32it/s]\n 10%|█ | 2/20 [00:00<00:07, 2.28it/s]\n 15%|█▌ | 3/20 [00:01<00:07, 2.28it/s]\n 20%|██ | 4/20 [00:01<00:07, 2.27it/s]\n 25%|██▌ | 5/20 [00:02<00:06, 2.27it/s]\n 30%|███ | 6/20 [00:02<00:06, 2.31it/s]\n 35%|███▌ | 7/20 [00:03<00:05, 2.34it/s]\n 40%|████ | 8/20 [00:03<00:05, 2.35it/s]\n 45%|████▌ | 9/20 [00:03<00:04, 2.36it/s]\n 50%|█████ | 10/20 [00:04<00:04, 2.37it/s]\n 55%|█████▌ | 11/20 [00:04<00:03, 2.38it/s]\n 60%|██████ | 12/20 [00:05<00:03, 2.55it/s]\n 65%|██████▌ | 13/20 [00:05<00:02, 2.68it/s]\n 70%|███████ | 14/20 [00:05<00:02, 2.78it/s]\n 75%|███████▌ | 15/20 [00:06<00:01, 2.85it/s]\n 80%|████████ | 16/20 [00:06<00:01, 2.91it/s]\n 85%|████████▌ | 17/20 [00:06<00:01, 2.95it/s]\n 90%|█████████ | 18/20 [00:07<00:00, 2.99it/s]\n 95%|█████████▌| 19/20 [00:07<00:00, 3.05it/s]\n100%|██████████| 20/20 [00:07<00:00, 3.13it/s]\n100%|██████████| 20/20 [00:07<00:00, 2.63it/s]\nExecuting node 5, title: Save Image, class type: SaveImage\nExecuting node 9, title: 🧹BRIA RMBG, class type: BRIA_RMBG_Zho\nExecuting node 10, title: Save Image, class type: SaveImage\nPrompt executed in 32.53 seconds\noutputs: {'47': {'images': [{'filename': 'ComfyUI_temp_epfle_00001_.png', 'subfolder': '', 'type': 'temp'}]}, '4': {'images': []}, '5': {'images': [{'filename': 'ComfyUI_00001_.png', 'subfolder': '', 'type': 'output'}]}, '10': {'images': [{'filename': 'ComfyUI_00002_.png', 'subfolder': '', 'type': 'output'}]}}\n====================================\nContents of /tmp/outputs:\nComfyUI_00001_.png\nComfyUI_00002_.png",
"metrics": {
"predict_time": 35.214478,
"total_time": 93.51293
},
"output": [
"https://replicate.delivery/pbxt/xvqWvV3152KsEZh4fWdR9yMeXWs2SO1K9Ozgh3f91vHF3j2kA/ComfyUI_00001_.png",
"https://replicate.delivery/pbxt/RZzqVdLsqSZgHtEefD00iMK8VuDif6iVmXlSbNeiAShPuHtJB/ComfyUI_00002_.png"
],
"started_at": "2024-02-28T17:26:25.017144Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/qqentxlbvmryks22glbxjiw2za",
"cancel": "https://api.replicate.com/v1/predictions/qqentxlbvmryks22glbxjiw2za/cancel"
},
"version": "a99a32fdaa9a9650cfc7900d54323d0d247dac69f7abb05eac0e742687a25662"
}
Random seed set to: 966518876
Checking inputs
✅ /tmp/inputs/input.webp
====================================
Running workflow
got prompt
Executing node 22, title: Load Image, class type: LoadImage
Executing node 25, title: AIO Aux Preprocessor, class type: AIO_Preprocessor
Executing node 47, title: Preview Image, class type: PreviewImage
Executing node 28, title: Control Net Stacker, class type: Control Net Stacker
Executing node 2, title: Efficient Loader, class type: Efficient Loader
Requested to load SDXLClipModel
Loading 1 new model
----------------------------------------
Efficient Loader Models Cache:
Ckpt:
[1] albedobaseXL_v13
Lora:
[1] base_ckpt: albedobaseXL_v13
lora(mod,clip): StickersRedmond(1,1)
Executing node 41, title: Apply InstantID, class type: ApplyInstantID
INFO: the IPAdapter reference image is not a square, CLIPImageProcessor will resize and crop it at the center. If the main focus of the picture is not in the middle the result might not be what you are expecting.
Executing node 43, title: Apply IPAdapter FaceID, class type: IPAdapterApplyFaceID
Executing node 4, title: KSampler (Efficient), class type: KSampler (Efficient)
Requested to load SDXL
Requested to load ControlNet
Requested to load ControlNet
Loading 3 new models
0%| | 0/20 [00:00<?, ?it/s]
5%|▌ | 1/20 [00:00<00:08, 2.32it/s]
10%|█ | 2/20 [00:00<00:07, 2.28it/s]
15%|█▌ | 3/20 [00:01<00:07, 2.28it/s]
20%|██ | 4/20 [00:01<00:07, 2.27it/s]
25%|██▌ | 5/20 [00:02<00:06, 2.27it/s]
30%|███ | 6/20 [00:02<00:06, 2.31it/s]
35%|███▌ | 7/20 [00:03<00:05, 2.34it/s]
40%|████ | 8/20 [00:03<00:05, 2.35it/s]
45%|████▌ | 9/20 [00:03<00:04, 2.36it/s]
50%|█████ | 10/20 [00:04<00:04, 2.37it/s]
55%|█████▌ | 11/20 [00:04<00:03, 2.38it/s]
60%|██████ | 12/20 [00:05<00:03, 2.55it/s]
65%|██████▌ | 13/20 [00:05<00:02, 2.68it/s]
70%|███████ | 14/20 [00:05<00:02, 2.78it/s]
75%|███████▌ | 15/20 [00:06<00:01, 2.85it/s]
80%|████████ | 16/20 [00:06<00:01, 2.91it/s]
85%|████████▌ | 17/20 [00:06<00:01, 2.95it/s]
90%|█████████ | 18/20 [00:07<00:00, 2.99it/s]
95%|█████████▌| 19/20 [00:07<00:00, 3.05it/s]
100%|██████████| 20/20 [00:07<00:00, 3.13it/s]
100%|██████████| 20/20 [00:07<00:00, 2.63it/s]
Executing node 5, title: Save Image, class type: SaveImage
Executing node 9, title: 🧹BRIA RMBG, class type: BRIA_RMBG_Zho
Executing node 10, title: Save Image, class type: SaveImage
Prompt executed in 32.53 seconds
outputs: {'47': {'images': [{'filename': 'ComfyUI_temp_epfle_00001_.png', 'subfolder': '', 'type': 'temp'}]}, '4': {'images': []}, '5': {'images': [{'filename': 'ComfyUI_00001_.png', 'subfolder': '', 'type': 'output'}]}, '10': {'images': [{'filename': 'ComfyUI_00002_.png', 'subfolder': '', 'type': 'output'}]}}
====================================
Contents of /tmp/outputs:
ComfyUI_00001_.png
ComfyUI_00002_.png