arabyai-replicate/roop_face_swap 🖼️ → 🖼️

▶️ 32.8K runs 📅 May 2024 ⚙️ Cog 0.9.8
face-swap video-editing video-face-swap video-to-video

About

araby.ai oneshot video faceswap

Example Output

Output

Performance Metrics

237.53s Prediction Time
309.19s Total Time
All Input Parameters
{
  "swap_image": "https://replicate.delivery/pbxt/KzYR4BozldWyuyVrRR7kYRrFUZwbIQDnCOnHyUJ5sfIRlEIH/tony.jpg",
  "target_video": "https://replicate.delivery/pbxt/KzYR3t8AzCDFrUWWoVdDU5ACvC23TC2AzTUIjwR8pvtIeBuE/input.mp4"
}
Input Parameters
swap_image (required) Type: string
Swap/source image
target_video (required) Type: string
Target/base video
Output Schema

Output

Type: stringFormat: uri

Example Execution Logs
/root/.pyenv/versions/3.8.19/lib/python3.8/site-packages/insightface/utils/transform.py:68: FutureWarning: `rcond` parameter will change to the default of machine precision times ``max(M, N)`` where M and N are the input matrix dimensions.
To use the future default and silence this warning we advise to pass `rcond=None`, to keep using the old, explicitly pass `rcond=-1`.
P = np.linalg.lstsq(X_homo, Y)[0].T # Affine matrix. 3 x 4
Processing frame 1
Processing frame 2
Processing frame 3
Processing frame 4
Processing frame 5
Processing frame 6
Processing frame 7
Processing frame 8
Processing frame 9
Processing frame 10
Processing frame 11
Processing frame 12
Processing frame 13
Processing frame 14
Processing frame 15
Processing frame 16
Processing frame 17
Processing frame 18
Processing frame 19
Processing frame 20
Processing frame 21
Processing frame 22
Processing frame 23
Processing frame 24
Processing frame 25
Processing frame 26
Processing frame 27
Processing frame 28
Processing frame 29
Processing frame 30
Processing frame 31
Processing frame 32
Processing frame 33
Processing frame 34
Processing frame 35
Processing frame 36
Processing frame 37
Processing frame 38
Processing frame 39
Processing frame 40
Processing frame 41
Processing frame 42
Processing frame 43
Processing frame 44
Processing frame 45
Processing frame 46
Processing frame 47
Processing frame 48
Processing frame 49
Processing frame 50
Processing frame 51
Processing frame 52
Processing frame 53
Processing frame 54
Processing frame 55
Processing frame 56
Processing frame 57
Processing frame 58
Processing frame 59
Processing frame 60
Processing frame 61
Processing frame 62
Processing frame 63
Processing frame 64
Processing frame 65
Processing frame 66
Processing frame 67
Processing frame 68
Processing frame 69
Processing frame 70
Processing frame 71
Processing frame 72
Processing frame 73
Processing frame 74
Processing frame 75
Processing frame 76
Processing frame 77
Processing frame 78
Processing frame 79
Processing frame 80
Processing frame 81
Processing frame 82
Processing frame 83
Processing frame 84
Processing frame 85
Processing frame 86
Processing frame 87
Processing frame 88
Processing frame 89
Processing frame 90
Processing frame 91
Processing frame 92
Processing frame 93
Processing frame 94
Processing frame 95
Processing frame 96
Processing frame 97
Processing frame 98
Processing frame 99
Processing frame 100
Processing frame 101
Processing frame 102
Processing frame 103
Processing frame 104
Processing frame 105
Processing frame 106
Processing frame 107
Processing frame 108
Processing frame 109
Processing frame 110
Processing frame 111
Processing frame 112
Processing frame 113
Processing frame 114
Processing frame 115
Processing frame 116
Processing frame 117
Processing frame 118
Processing frame 119
Processing frame 120
Processing frame 121
Processing frame 122
Processing frame 123
Processing frame 124
Processing frame 125
Processing frame 126
Processing frame 127
Processing frame 128
Processing frame 129
Processing frame 130
Processing frame 131
Processing frame 132
Processing frame 133
Processing frame 134
Processing frame 135
Processing frame 136
Processing frame 137
Processing frame 138
Processing frame 139
Processing frame 140
Processing frame 141
Processing frame 142
Processing frame 143
Processing frame 144
Processing frame 145
Processing frame 146
Processing frame 147
Processing frame 148
Processing frame 149
Processing frame 150
Processing frame 151
Processing frame 152
Processing frame 153
Processing frame 154
Processing frame 155
Processing frame 156
Processing frame 157
Processing frame 158
Processing frame 159
Processing frame 160
Processing frame 161
Processing frame 162
Processing frame 163
Processing frame 164
Processing frame 165
Processing frame 166
Processing frame 167
Processing frame 168
Processing frame 169
Processing frame 170
Processing frame 171
Processing frame 172
Processing frame 173
Processing frame 174
Processing frame 175
Processing frame 176
Processing frame 177
Processing frame 178
Processing frame 179
Processing frame 180
Processing frame 181
Processing frame 182
Processing frame 183
Processing frame 184
Processing frame 185
Processing frame 186
Processing frame 187
Processing frame 188
Processing frame 189
Processing frame 190
Processing frame 191
Processing frame 192
Processing frame 193
Processing frame 194
Processing frame 195
Processing frame 196
Processing frame 197
Processing frame 198
Processing frame 199
Processing frame 200
Processing frame 201
Processing frame 202
Processing frame 203
Processing frame 204
Processing frame 205
Processing frame 206
Processing frame 207
Processing frame 208
Processing frame 209
Processing frame 210
Processing frame 211
Processing frame 212
Processing frame 213
Processing frame 214
Processing frame 215
Processing frame 216
Processing frame 217
Processing frame 218
Processing frame 219
Processing frame 220
Processing frame 221
Processing frame 222
Processing frame 223
Processing frame 224
Processing frame 225
Processing frame 226
Processing frame 227
Processing frame 228
Processing frame 229
Processing frame 230
Processing frame 231
Processing frame 232
Processing frame 233
Processing frame 234
Processing frame 235
Processing frame 236
Processing frame 237
Processing frame 238
Processing frame 239
Processing frame 240
Processing frame 241
Processing frame 242
Processing frame 243
Processing frame 244
Processing frame 245
Processing frame 246
Processing frame 247
Processing frame 248
Processing frame 249
Processing frame 250
Processing frame 251
Processing frame 252
Processing frame 253
Processing frame 254
Processing frame 255
Processing frame 256
Processing frame 257
Processing frame 258
Processing frame 259
Processing frame 260
Processing frame 261
Processing frame 262
Processing frame 263
Processing frame 264
Processing frame 265
Processing frame 266
Processing frame 267
Processing frame 268
Processing frame 269
Processing frame 270
ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil      56. 70.100 / 56. 70.100
libavcodec     58.134.100 / 58.134.100
libavformat    58. 76.100 / 58. 76.100
libavdevice    58. 13.100 / 58. 13.100
libavfilter     7.110.100 /  7.110.100
libswscale      5.  9.100 /  5.  9.100
libswresample   3.  9.100 /  3.  9.100
libpostproc    55.  9.100 / 55.  9.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/tmp/tmp.mp4':
Metadata:
major_brand     : isom
minor_version   : 512
compatible_brands: isomiso2mp41
encoder         : Lavf59.27.100
Duration: 00:00:10.80, start: 0.000000, bitrate: 20236 kb/s
Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 3840x2160 [SAR 1:1 DAR 16:9], 20235 kb/s, 25 fps, 25 tbr, 12800 tbn, 25 tbc (default)
Metadata:
handler_name    : VideoHandler
vendor_id       : [0][0][0][0]
Stream mapping:
Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0x55a2dbcba240] using SAR=1/1
[libx264 @ 0x55a2dbcba240] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 AVX512
[libx264 @ 0x55a2dbcba240] profile High, level 5.1, 4:2:0, 8-bit
[libx264 @ 0x55a2dbcba240] 264 - core 163 r3060 5db6aa6 - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=15 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/tmp/output.mp4':
Metadata:
major_brand     : isom
minor_version   : 512
compatible_brands: isomiso2mp41
encoder         : Lavf58.76.100
Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 12800 tbn (default)
Metadata:
handler_name    : VideoHandler
vendor_id       : [0][0][0][0]
encoder         : Lavc58.134.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
frame=    1 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
frame=   47 fps= 29 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
frame=   56 fps= 26 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
frame=   64 fps= 24 q=28.0 size=     256kB time=00:00:00.08 bitrate=26193.7kbits/s speed=0.0299x
frame=   72 fps= 22 q=28.0 size=     768kB time=00:00:00.40 bitrate=15726.5kbits/s speed=0.123x
frame=   80 fps= 21 q=28.0 size=    1280kB time=00:00:00.72 bitrate=14562.5kbits/s speed=0.188x
frame=   88 fps= 20 q=28.0 size=    1792kB time=00:00:01.04 bitrate=14114.8kbits/s speed=0.237x
frame=   95 fps= 19 q=28.0 size=    2304kB time=00:00:01.32 bitrate=14298.2kbits/s speed=0.27x
frame=  100 fps= 19 q=28.0 size=    2560kB time=00:00:01.52 bitrate=13796.6kbits/s speed=0.281x
frame=  106 fps= 18 q=28.0 size=    3072kB time=00:00:01.76 bitrate=14298.3kbits/s speed=0.294x
frame=  116 fps= 18 q=28.0 size=    3840kB time=00:00:02.16 bitrate=14563.2kbits/s speed=0.332x
frame=  123 fps= 17 q=28.0 size=    4352kB time=00:00:02.44 bitrate=14611.0kbits/s speed=0.346x
frame=  130 fps= 17 q=25.0 size=    4864kB time=00:00:02.72 bitrate=14648.9kbits/s speed=0.354x
frame=  138 fps= 17 q=28.0 size=    5376kB time=00:00:03.04 bitrate=14486.7kbits/s speed=0.369x
frame=  147 fps= 17 q=28.0 size=    6144kB time=00:00:03.40 bitrate=14803.2kbits/s speed=0.389x
frame=  154 fps= 17 q=28.0 size=    6656kB time=00:00:03.68 bitrate=14816.6kbits/s speed=0.397x
frame=  160 fps= 16 q=28.0 size=    7168kB time=00:00:03.92 bitrate=14979.5kbits/s speed=0.398x
frame=  167 fps= 16 q=28.0 size=    7680kB time=00:00:04.20 bitrate=14979.5kbits/s speed=0.402x
frame=  174 fps= 16 q=28.0 size=    7936kB time=00:00:04.48 bitrate=14511.4kbits/s speed=0.409x
frame=  180 fps= 16 q=28.0 size=    8448kB time=00:00:04.72 bitrate=14662.1kbits/s speed=0.411x
frame=  190 fps= 16 q=28.0 size=    9216kB time=00:00:05.12 bitrate=14745.5kbits/s speed=0.424x
frame=  199 fps= 16 q=28.0 size=    9728kB time=00:00:05.48 bitrate=14542.2kbits/s speed=0.434x
frame=  204 fps= 15 q=28.0 size=   10240kB time=00:00:05.68 bitrate=14768.5kbits/s speed=0.428x
frame=  215 fps= 16 q=28.0 size=   11008kB time=00:00:06.12 bitrate=14734.8kbits/s speed=0.443x
frame=  223 fps= 16 q=28.0 size=   11264kB time=00:00:06.44 bitrate=14328.3kbits/s speed=0.45x
frame=  228 fps= 15 q=28.0 size=   11520kB time=00:00:06.64 bitrate=14212.5kbits/s speed=0.445x
frame=  240 fps= 15 q=28.0 size=   12288kB time=00:00:07.12 bitrate=14138.0kbits/s speed=0.458x
frame=  248 fps= 15 q=28.0 size=   12800kB time=00:00:07.44 bitrate=14093.7kbits/s speed=0.463x
frame=  252 fps= 15 q=28.0 size=   13056kB time=00:00:07.60 bitrate=14072.9kbits/s speed=0.456x
frame=  260 fps= 15 q=28.0 size=   13568kB time=00:00:07.92 bitrate=14033.9kbits/s speed=0.46x
frame=  270 fps= 13 q=-1.0 Lsize=   18423kB time=00:00:10.68 bitrate=14130.8kbits/s speed=0.511x
video:18420kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.013577%
[libx264 @ 0x55a2dbcba240] frame I:7     Avg QP:17.91  size:115830
[libx264 @ 0x55a2dbcba240] frame P:247   Avg QP:20.83  size: 69978
[libx264 @ 0x55a2dbcba240] frame B:16    Avg QP:22.02  size: 47883
[libx264 @ 0x55a2dbcba240] consecutive B-frames: 88.1% 11.9%  0.0%  0.0%
[libx264 @ 0x55a2dbcba240] mb I  I16..4: 31.9% 68.0%  0.1%
[libx264 @ 0x55a2dbcba240] mb P  I16..4:  8.2% 20.4%  0.1%  P16..4: 46.3%  2.4%  0.7%  0.0%  0.0%    skip:21.9%
[libx264 @ 0x55a2dbcba240] mb B  I16..4:  3.3%  7.7%  0.0%  B16..8: 42.4%  2.2%  0.1%  direct: 1.4%  skip:42.9%  L0:79.1% L1:19.9% BI: 1.0%
[libx264 @ 0x55a2dbcba240] 8x8 transform intra:71.0% inter:97.5%
[libx264 @ 0x55a2dbcba240] coded y,uvDC,uvAC intra: 23.4% 36.7% 2.4% inter: 6.8% 14.2% 0.0%
[libx264 @ 0x55a2dbcba240] i16 v,h,dc,p: 35% 27% 18% 20%
[libx264 @ 0x55a2dbcba240] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 37% 23% 34%  1%  1%  1%  1%  1%  1%
[libx264 @ 0x55a2dbcba240] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 59% 22%  8%  1%  3%  4%  2%  1%  0%
[libx264 @ 0x55a2dbcba240] i8c dc,h,v,p: 55% 20% 23%  2%
[libx264 @ 0x55a2dbcba240] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x55a2dbcba240] ref P L0: 88.0%  3.3%  7.0%  1.7%
[libx264 @ 0x55a2dbcba240] ref B L0: 91.3%  8.7%
[libx264 @ 0x55a2dbcba240] kb/s:13971.44
Version Details
Version ID
11b6bf0f4e14d808f655e87e5448233cceff10a45f659d71539cafb7163b2e84
Version Created
July 12, 2024
Run on Replicate →