ddvinh1/tool-faceswap ❓🖼️🔢✓ → 🖼️
About

Example Output
Output

Performance Metrics
5.26s
Prediction Time
234.43s
Total Time
All Input Parameters
{ "mode": "single", "source": "https://replicate.delivery/pbxt/Ncn3HHXgCNErRs9hVHXV7xeiwzB5Z2CF9hXlGH0SIflu88Sx/cpc_ackboo.jpg", "target": "https://replicate.delivery/pbxt/Ncn3HwBT2Ffc86PyL9DpadNZuEjdksxaSIAglo5B0cwVRF6W/starwars_meme.jpg", "det_thresh": 0.6, "is_use_mask": true, "cropped_size": 512 }
Input Parameters
- mode
- Swap mode: 'single' for one face, 'all' for all detected faces
- source (required)
- Source image (person whose face will be swapped)
- target (required)
- Target image (person whose face will be replaced)
- det_thresh
- Face detection threshold
- is_use_mask
- Use face parsing mask for better results
- cropped_size
- Crop size for face detection
Output Schema
Output
Example Execution Logs
(142, 366, 4) /src/models/base_model.py:68: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature. network.load_state_dict(torch.load(save_path)) /src/models/base_model.py:70: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature. pretrained_dict = torch.load(save_path) set det-size: (640, 640) Downloading: "https://download.pytorch.org/models/resnet18-5c106cde.pth" to /root/.cache/torch/hub/checkpoints/resnet18-5c106cde.pth 0%| | 0.00/44.7M [00:00<?, ?B/s] 31%|███ | 13.6M/44.7M [00:00<00:00, 143MB/s] 100%|██████████| 44.7M/44.7M [00:00<00:00, 253MB/s] /src/predict.py:215: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature. net.load_state_dict(torch.load(save_pth)) /root/.pyenv/versions/3.12.11/lib/python3.12/site-packages/torch/functional.py:513: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at ../aten/src/ATen/native/TensorShape.cpp:3609.) return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined] ************ Done ! ************
Version Details
- Version ID
eb7ba9899d3f4481d713288d937f337643c29e17a5214d70e65a696ffe53c915
- Version Created
- August 30, 2025