lucataco
/
interpany-clearer
InterpAny-Clearer: Clearer anytime frame interpolation & Manipulated interpolation
Prediction
lucataco/interpany-clearer:d5df8241IDaxr2ydtbx3h2xv7m77yvbxkr3iStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- fps
- 15
- num
- 3
- video
{ "fps": 15, "num": 3, "video": "https://replicate.delivery/pbxt/JxSR1KfHBCCMBpETm26xlkReOvdCKdR12sX2RoM1a78EuCX0/video_demo.mp4" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run lucataco/interpany-clearer using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/interpany-clearer:d5df8241c4805b46a14901f0c0ac174f2004bb35387ea8e29909c0d7c58088af", { input: { fps: 15, num: 3, video: "https://replicate.delivery/pbxt/JxSR1KfHBCCMBpETm26xlkReOvdCKdR12sX2RoM1a78EuCX0/video_demo.mp4" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run lucataco/interpany-clearer using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/interpany-clearer:d5df8241c4805b46a14901f0c0ac174f2004bb35387ea8e29909c0d7c58088af", input={ "fps": 15, "num": 3, "video": "https://replicate.delivery/pbxt/JxSR1KfHBCCMBpETm26xlkReOvdCKdR12sX2RoM1a78EuCX0/video_demo.mp4" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run lucataco/interpany-clearer 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": "d5df8241c4805b46a14901f0c0ac174f2004bb35387ea8e29909c0d7c58088af", "input": { "fps": 15, "num": 3, "video": "https://replicate.delivery/pbxt/JxSR1KfHBCCMBpETm26xlkReOvdCKdR12sX2RoM1a78EuCX0/video_demo.mp4" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run lucataco/interpany-clearer using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/lucataco/interpany-clearer@sha256:d5df8241c4805b46a14901f0c0ac174f2004bb35387ea8e29909c0d7c58088af \ -i 'fps=15' \ -i 'num=3' \ -i 'video="https://replicate.delivery/pbxt/JxSR1KfHBCCMBpETm26xlkReOvdCKdR12sX2RoM1a78EuCX0/video_demo.mp4"'
To learn more, take a look at the Cog documentation.
Pull and run lucataco/interpany-clearer using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 --gpus=all r8.im/lucataco/interpany-clearer@sha256:d5df8241c4805b46a14901f0c0ac174f2004bb35387ea8e29909c0d7c58088af
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "fps": 15, "num": 3, "video": "https://replicate.delivery/pbxt/JxSR1KfHBCCMBpETm26xlkReOvdCKdR12sX2RoM1a78EuCX0/video_demo.mp4" } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2023-11-29T16:14:49.710590Z", "created_at": "2023-11-29T16:14:33.247460Z", "data_removed": false, "error": null, "id": "axr2ydtbx3h2xv7m77yvbxkr3i", "input": { "fps": 15, "num": 3, "video": "https://replicate.delivery/pbxt/JxSR1KfHBCCMBpETm26xlkReOvdCKdR12sX2RoM1a78EuCX0/video_demo.mp4" }, "logs": "Input file path: /tmp/tmp2rqzfuvtvideo_demo.mp4\n2rqzfuvtvideo_demo.mp4\nRunning subprocess command\nBefore interpolate, the video has 86 frames\nAfter interpolate, the video has 341 frames\nFinished subprocess command\nffmpeg version 4.2.7-0ubuntu0.1 Copyright (c) 2000-2022 the FFmpeg developers\nbuilt with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)\nconfiguration: --prefix=/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --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-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\nlibavutil 56. 31.100 / 56. 31.100\nlibavcodec 58. 54.100 / 58. 54.100\nlibavformat 58. 29.100 / 58. 29.100\nlibavdevice 58. 8.100 / 58. 8.100\nlibavfilter 7. 57.100 / 7. 57.100\nlibavresample 4. 0. 0 / 4. 0. 0\nlibswscale 5. 5.100 / 5. 5.100\nlibswresample 3. 5.100 / 3. 5.100\nlibpostproc 55. 5.100 / 55. 5.100\nInput #0, mov,mp4,m4a,3gp,3g2,mj2, from '/InterpAny/results/video_results/2rqzfuvtvideo_demo.mp4':\nMetadata:\nmajor_brand : isom\nminor_version : 512\ncompatible_brands: isomiso2mp41\nencoder : Lavf59.27.100\nDuration: 00:00:22.73, start: 0.000000, bitrate: 781 kb/s\nStream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 432x768 [SAR 1:1 DAR 9:16], 780 kb/s, 15 fps, 15 tbr, 15360 tbn, 15 tbc (default)\nMetadata:\nhandler_name : VideoHandler\nStream mapping:\nStream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))\nPress [q] to stop, [?] for help\n[libx264 @ 0x55604b8fa700] using SAR=1/1\n[libx264 @ 0x55604b8fa700] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2\n[libx264 @ 0x55604b8fa700] profile High, level 2.2\n[libx264 @ 0x55604b8fa700] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - 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=15 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\nOutput #0, mp4, to '/tmp/output.mp4':\nMetadata:\nmajor_brand : isom\nminor_version : 512\ncompatible_brands: isomiso2mp41\nencoder : Lavf58.29.100\nStream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 432x768 [SAR 1:1 DAR 9:16], q=-1--1, 15 fps, 15360 tbn, 15 tbc (default)\nMetadata:\nhandler_name : VideoHandler\nencoder : Lavc58.54.100 libx264\nSide data:\ncpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1\nframe= 214 fps=0.0 q=27.0 size= 512kB time=00:00:10.13 bitrate= 413.9kbits/s speed=20.3x\nframe= 341 fps=0.0 q=-1.0 Lsize= 1417kB time=00:00:22.53 bitrate= 515.1kbits/s speed=23.9x\nvideo:1414kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.205821%\n[libx264 @ 0x55604b8fa700] frame I:2 Avg QP:18.91 size: 21799\n[libx264 @ 0x55604b8fa700] frame P:298 Avg QP:20.70 size: 4536\n[libx264 @ 0x55604b8fa700] frame B:41 Avg QP:24.48 size: 1266\n[libx264 @ 0x55604b8fa700] consecutive B-frames: 78.9% 12.3% 8.8% 0.0%\n[libx264 @ 0x55604b8fa700] mb I I16..4: 15.8% 76.5% 7.7%\n[libx264 @ 0x55604b8fa700] mb P I16..4: 0.9% 4.8% 0.1% P16..4: 51.4% 13.0% 7.4% 0.0% 0.0% skip:22.3%\n[libx264 @ 0x55604b8fa700] mb B I16..4: 0.7% 3.4% 0.0% B16..8: 34.8% 2.0% 0.3% direct: 0.5% skip:58.3% L0:63.0% L1:23.3% BI:13.7%\n[libx264 @ 0x55604b8fa700] 8x8 transform intra:81.8% inter:79.4%\n[libx264 @ 0x55604b8fa700] coded y,uvDC,uvAC intra: 52.1% 60.4% 14.6% inter: 16.8% 24.8% 2.0%\n[libx264 @ 0x55604b8fa700] i16 v,h,dc,p: 14% 50% 26% 11%\n[libx264 @ 0x55604b8fa700] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 40% 34% 1% 1% 1% 2% 1% 3%\n[libx264 @ 0x55604b8fa700] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 35% 11% 3% 6% 5% 6% 3% 4%\n[libx264 @ 0x55604b8fa700] i8c dc,h,v,p: 42% 41% 13% 4%\n[libx264 @ 0x55604b8fa700] Weighted P-Frames: Y:0.0% UV:0.0%\n[libx264 @ 0x55604b8fa700] ref P L0: 71.6% 11.8% 12.7% 3.9%\n[libx264 @ 0x55604b8fa700] ref B L0: 84.8% 14.5% 0.7%\n[libx264 @ 0x55604b8fa700] kb/s:509.27", "metrics": { "predict_time": 14.301541, "total_time": 16.46313 }, "output": "https://replicate.delivery/pbxt/w71UdGzSpWJkLtwVu4imIw6owup7PICqyiRm7Cew2bN8qoeRA/output.mp4", "started_at": "2023-11-29T16:14:35.409049Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/axr2ydtbx3h2xv7m77yvbxkr3i", "cancel": "https://api.replicate.com/v1/predictions/axr2ydtbx3h2xv7m77yvbxkr3i/cancel" }, "version": "d5df8241c4805b46a14901f0c0ac174f2004bb35387ea8e29909c0d7c58088af" }
Generated inInput file path: /tmp/tmp2rqzfuvtvideo_demo.mp4 2rqzfuvtvideo_demo.mp4 Running subprocess command Before interpolate, the video has 86 frames After interpolate, the video has 341 frames Finished subprocess command ffmpeg version 4.2.7-0ubuntu0.1 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1) configuration: --prefix=/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --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-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared libavutil 56. 31.100 / 56. 31.100 libavcodec 58. 54.100 / 58. 54.100 libavformat 58. 29.100 / 58. 29.100 libavdevice 58. 8.100 / 58. 8.100 libavfilter 7. 57.100 / 7. 57.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 5.100 / 5. 5.100 libswresample 3. 5.100 / 3. 5.100 libpostproc 55. 5.100 / 55. 5.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/InterpAny/results/video_results/2rqzfuvtvideo_demo.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2mp41 encoder : Lavf59.27.100 Duration: 00:00:22.73, start: 0.000000, bitrate: 781 kb/s Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 432x768 [SAR 1:1 DAR 9:16], 780 kb/s, 15 fps, 15 tbr, 15360 tbn, 15 tbc (default) Metadata: handler_name : VideoHandler Stream mapping: Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264)) Press [q] to stop, [?] for help [libx264 @ 0x55604b8fa700] using SAR=1/1 [libx264 @ 0x55604b8fa700] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @ 0x55604b8fa700] profile High, level 2.2 [libx264 @ 0x55604b8fa700] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - 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=15 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.29.100 Stream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 432x768 [SAR 1:1 DAR 9:16], q=-1--1, 15 fps, 15360 tbn, 15 tbc (default) Metadata: handler_name : VideoHandler encoder : Lavc58.54.100 libx264 Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1 frame= 214 fps=0.0 q=27.0 size= 512kB time=00:00:10.13 bitrate= 413.9kbits/s speed=20.3x frame= 341 fps=0.0 q=-1.0 Lsize= 1417kB time=00:00:22.53 bitrate= 515.1kbits/s speed=23.9x video:1414kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.205821% [libx264 @ 0x55604b8fa700] frame I:2 Avg QP:18.91 size: 21799 [libx264 @ 0x55604b8fa700] frame P:298 Avg QP:20.70 size: 4536 [libx264 @ 0x55604b8fa700] frame B:41 Avg QP:24.48 size: 1266 [libx264 @ 0x55604b8fa700] consecutive B-frames: 78.9% 12.3% 8.8% 0.0% [libx264 @ 0x55604b8fa700] mb I I16..4: 15.8% 76.5% 7.7% [libx264 @ 0x55604b8fa700] mb P I16..4: 0.9% 4.8% 0.1% P16..4: 51.4% 13.0% 7.4% 0.0% 0.0% skip:22.3% [libx264 @ 0x55604b8fa700] mb B I16..4: 0.7% 3.4% 0.0% B16..8: 34.8% 2.0% 0.3% direct: 0.5% skip:58.3% L0:63.0% L1:23.3% BI:13.7% [libx264 @ 0x55604b8fa700] 8x8 transform intra:81.8% inter:79.4% [libx264 @ 0x55604b8fa700] coded y,uvDC,uvAC intra: 52.1% 60.4% 14.6% inter: 16.8% 24.8% 2.0% [libx264 @ 0x55604b8fa700] i16 v,h,dc,p: 14% 50% 26% 11% [libx264 @ 0x55604b8fa700] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 40% 34% 1% 1% 1% 2% 1% 3% [libx264 @ 0x55604b8fa700] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 35% 11% 3% 6% 5% 6% 3% 4% [libx264 @ 0x55604b8fa700] i8c dc,h,v,p: 42% 41% 13% 4% [libx264 @ 0x55604b8fa700] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0x55604b8fa700] ref P L0: 71.6% 11.8% 12.7% 3.9% [libx264 @ 0x55604b8fa700] ref B L0: 84.8% 14.5% 0.7% [libx264 @ 0x55604b8fa700] kb/s:509.27
Prediction
lucataco/interpany-clearer:d5df8241IDwg254cdbpbduvkc4hz324kjrkeStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- num
- 3
- video
{ "num": 3, "video": "https://replicate.delivery/pbxt/JxiqfzxJxZnU8Bi5O8g5df2Eku2mGKtritaKqtWW4Z2WUvhf/replicate-prediction-exworydboq3i52tdwyikzkidce.mp4" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run lucataco/interpany-clearer using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/interpany-clearer:d5df8241c4805b46a14901f0c0ac174f2004bb35387ea8e29909c0d7c58088af", { input: { num: 3, video: "https://replicate.delivery/pbxt/JxiqfzxJxZnU8Bi5O8g5df2Eku2mGKtritaKqtWW4Z2WUvhf/replicate-prediction-exworydboq3i52tdwyikzkidce.mp4" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run lucataco/interpany-clearer using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/interpany-clearer:d5df8241c4805b46a14901f0c0ac174f2004bb35387ea8e29909c0d7c58088af", input={ "num": 3, "video": "https://replicate.delivery/pbxt/JxiqfzxJxZnU8Bi5O8g5df2Eku2mGKtritaKqtWW4Z2WUvhf/replicate-prediction-exworydboq3i52tdwyikzkidce.mp4" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run lucataco/interpany-clearer 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": "d5df8241c4805b46a14901f0c0ac174f2004bb35387ea8e29909c0d7c58088af", "input": { "num": 3, "video": "https://replicate.delivery/pbxt/JxiqfzxJxZnU8Bi5O8g5df2Eku2mGKtritaKqtWW4Z2WUvhf/replicate-prediction-exworydboq3i52tdwyikzkidce.mp4" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run lucataco/interpany-clearer using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/lucataco/interpany-clearer@sha256:d5df8241c4805b46a14901f0c0ac174f2004bb35387ea8e29909c0d7c58088af \ -i 'num=3' \ -i 'video="https://replicate.delivery/pbxt/JxiqfzxJxZnU8Bi5O8g5df2Eku2mGKtritaKqtWW4Z2WUvhf/replicate-prediction-exworydboq3i52tdwyikzkidce.mp4"'
To learn more, take a look at the Cog documentation.
Pull and run lucataco/interpany-clearer using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 --gpus=all r8.im/lucataco/interpany-clearer@sha256:d5df8241c4805b46a14901f0c0ac174f2004bb35387ea8e29909c0d7c58088af
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "num": 3, "video": "https://replicate.delivery/pbxt/JxiqfzxJxZnU8Bi5O8g5df2Eku2mGKtritaKqtWW4Z2WUvhf/replicate-prediction-exworydboq3i52tdwyikzkidce.mp4" } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2023-11-29T16:15:41.478870Z", "created_at": "2023-11-29T16:15:33.841894Z", "data_removed": false, "error": null, "id": "wg254cdbpbduvkc4hz324kjrke", "input": { "num": 3, "video": "https://replicate.delivery/pbxt/JxiqfzxJxZnU8Bi5O8g5df2Eku2mGKtritaKqtWW4Z2WUvhf/replicate-prediction-exworydboq3i52tdwyikzkidce.mp4" }, "logs": "Input file path: /tmp/tmp7ghi1eggreplicate-prediction-exworydboq3i52tdwyikzkidce.mp4\n7ghi1eggreplicate-prediction-exworydboq3i52tdwyikzkidce.mp4\nRunning subprocess command\nBefore interpolate, the video has 14 frames\nAfter interpolate, the video has 53 frames\nFinished subprocess command\nffmpeg version 4.2.7-0ubuntu0.1 Copyright (c) 2000-2022 the FFmpeg developers\nbuilt with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)\nconfiguration: --prefix=/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --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-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\nlibavutil 56. 31.100 / 56. 31.100\nlibavcodec 58. 54.100 / 58. 54.100\nlibavformat 58. 29.100 / 58. 29.100\nlibavdevice 58. 8.100 / 58. 8.100\nlibavfilter 7. 57.100 / 7. 57.100\nlibavresample 4. 0. 0 / 4. 0. 0\nlibswscale 5. 5.100 / 5. 5.100\nlibswresample 3. 5.100 / 3. 5.100\nlibpostproc 55. 5.100 / 55. 5.100\nInput #0, mov,mp4,m4a,3gp,3g2,mj2, from '/InterpAny/results/video_results/7ghi1eggreplicate-prediction-exworydboq3i52tdwyikzkidce.mp4':\nMetadata:\nmajor_brand : isom\nminor_version : 512\ncompatible_brands: isomiso2mp41\nencoder : Lavf59.27.100\nDuration: 00:00:03.53, start: 0.000000, bitrate: 898 kb/s\nStream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 1024x576 [SAR 1:1 DAR 16:9], 895 kb/s, 15 fps, 15 tbr, 15360 tbn, 15 tbc (default)\nMetadata:\nhandler_name : VideoHandler\nStream mapping:\nStream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))\nPress [q] to stop, [?] for help\n[libx264 @ 0x55f85e411740] using SAR=1/1\n[libx264 @ 0x55f85e411740] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2\n[libx264 @ 0x55f85e411740] profile High, level 3.1\n[libx264 @ 0x55f85e411740] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - 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=15 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\nOutput #0, mp4, to '/tmp/output.mp4':\nMetadata:\nmajor_brand : isom\nminor_version : 512\ncompatible_brands: isomiso2mp41\nencoder : Lavf58.29.100\nStream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1024x576 [SAR 1:1 DAR 16:9], q=-1--1, 15 fps, 15360 tbn, 15 tbc (default)\nMetadata:\nhandler_name : VideoHandler\nencoder : Lavc58.54.100 libx264\nSide data:\ncpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1\nframe= 53 fps=0.0 q=-1.0 Lsize= 272kB time=00:00:03.33 bitrate= 669.3kbits/s speed=10.3x\nvideo:271kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.504899%\n[libx264 @ 0x55f85e411740] frame I:1 Avg QP:18.55 size: 17611\n[libx264 @ 0x55f85e411740] frame P:33 Avg QP:19.58 size: 6810\n[libx264 @ 0x55f85e411740] frame B:19 Avg QP:22.15 size: 1814\n[libx264 @ 0x55f85e411740] consecutive B-frames: 35.8% 41.5% 22.6% 0.0%\n[libx264 @ 0x55f85e411740] mb I I16..4: 17.5% 80.2% 2.3%\n[libx264 @ 0x55f85e411740] mb P I16..4: 1.8% 11.7% 0.1% P16..4: 55.5% 7.3% 3.8% 0.0% 0.0% skip:19.6%\n[libx264 @ 0x55f85e411740] mb B I16..4: 0.1% 0.3% 0.0% B16..8: 42.2% 1.2% 0.1% direct: 0.3% skip:55.8% L0:65.4% L1:27.6% BI: 7.0%\n[libx264 @ 0x55f85e411740] 8x8 transform intra:84.5% inter:86.0%\n[libx264 @ 0x55f85e411740] coded y,uvDC,uvAC intra: 39.0% 54.0% 10.9% inter: 8.3% 12.9% 0.2%\n[libx264 @ 0x55f85e411740] i16 v,h,dc,p: 12% 66% 16% 5%\n[libx264 @ 0x55f85e411740] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 48% 33% 0% 0% 0% 1% 0% 2%\n[libx264 @ 0x55f85e411740] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 37% 36% 10% 2% 3% 4% 3% 3% 3%\n[libx264 @ 0x55f85e411740] i8c dc,h,v,p: 36% 44% 16% 4%\n[libx264 @ 0x55f85e411740] Weighted P-Frames: Y:0.0% UV:0.0%\n[libx264 @ 0x55f85e411740] ref P L0: 73.9% 5.4% 15.7% 5.1%\n[libx264 @ 0x55f85e411740] ref B L0: 76.7% 21.8% 1.5%\n[libx264 @ 0x55f85e411740] kb/s:626.70", "metrics": { "predict_time": 7.602432, "total_time": 7.636976 }, "output": "https://replicate.delivery/pbxt/KlA4RWniq368LdpS8QoRVFW6i1ObkZMFQkIepsRFtFfsWR9RA/output.mp4", "started_at": "2023-11-29T16:15:33.876438Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/wg254cdbpbduvkc4hz324kjrke", "cancel": "https://api.replicate.com/v1/predictions/wg254cdbpbduvkc4hz324kjrke/cancel" }, "version": "d5df8241c4805b46a14901f0c0ac174f2004bb35387ea8e29909c0d7c58088af" }
Generated inInput file path: /tmp/tmp7ghi1eggreplicate-prediction-exworydboq3i52tdwyikzkidce.mp4 7ghi1eggreplicate-prediction-exworydboq3i52tdwyikzkidce.mp4 Running subprocess command Before interpolate, the video has 14 frames After interpolate, the video has 53 frames Finished subprocess command ffmpeg version 4.2.7-0ubuntu0.1 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1) configuration: --prefix=/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --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-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared libavutil 56. 31.100 / 56. 31.100 libavcodec 58. 54.100 / 58. 54.100 libavformat 58. 29.100 / 58. 29.100 libavdevice 58. 8.100 / 58. 8.100 libavfilter 7. 57.100 / 7. 57.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 5.100 / 5. 5.100 libswresample 3. 5.100 / 3. 5.100 libpostproc 55. 5.100 / 55. 5.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/InterpAny/results/video_results/7ghi1eggreplicate-prediction-exworydboq3i52tdwyikzkidce.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2mp41 encoder : Lavf59.27.100 Duration: 00:00:03.53, start: 0.000000, bitrate: 898 kb/s Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 1024x576 [SAR 1:1 DAR 16:9], 895 kb/s, 15 fps, 15 tbr, 15360 tbn, 15 tbc (default) Metadata: handler_name : VideoHandler Stream mapping: Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264)) Press [q] to stop, [?] for help [libx264 @ 0x55f85e411740] using SAR=1/1 [libx264 @ 0x55f85e411740] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @ 0x55f85e411740] profile High, level 3.1 [libx264 @ 0x55f85e411740] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - 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=15 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.29.100 Stream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1024x576 [SAR 1:1 DAR 16:9], q=-1--1, 15 fps, 15360 tbn, 15 tbc (default) Metadata: handler_name : VideoHandler encoder : Lavc58.54.100 libx264 Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1 frame= 53 fps=0.0 q=-1.0 Lsize= 272kB time=00:00:03.33 bitrate= 669.3kbits/s speed=10.3x video:271kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.504899% [libx264 @ 0x55f85e411740] frame I:1 Avg QP:18.55 size: 17611 [libx264 @ 0x55f85e411740] frame P:33 Avg QP:19.58 size: 6810 [libx264 @ 0x55f85e411740] frame B:19 Avg QP:22.15 size: 1814 [libx264 @ 0x55f85e411740] consecutive B-frames: 35.8% 41.5% 22.6% 0.0% [libx264 @ 0x55f85e411740] mb I I16..4: 17.5% 80.2% 2.3% [libx264 @ 0x55f85e411740] mb P I16..4: 1.8% 11.7% 0.1% P16..4: 55.5% 7.3% 3.8% 0.0% 0.0% skip:19.6% [libx264 @ 0x55f85e411740] mb B I16..4: 0.1% 0.3% 0.0% B16..8: 42.2% 1.2% 0.1% direct: 0.3% skip:55.8% L0:65.4% L1:27.6% BI: 7.0% [libx264 @ 0x55f85e411740] 8x8 transform intra:84.5% inter:86.0% [libx264 @ 0x55f85e411740] coded y,uvDC,uvAC intra: 39.0% 54.0% 10.9% inter: 8.3% 12.9% 0.2% [libx264 @ 0x55f85e411740] i16 v,h,dc,p: 12% 66% 16% 5% [libx264 @ 0x55f85e411740] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 48% 33% 0% 0% 0% 1% 0% 2% [libx264 @ 0x55f85e411740] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 37% 36% 10% 2% 3% 4% 3% 3% 3% [libx264 @ 0x55f85e411740] i8c dc,h,v,p: 36% 44% 16% 4% [libx264 @ 0x55f85e411740] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0x55f85e411740] ref P L0: 73.9% 5.4% 15.7% 5.1% [libx264 @ 0x55f85e411740] ref B L0: 76.7% 21.8% 1.5% [libx264 @ 0x55f85e411740] kb/s:626.70
Want to make some of these yourself?
Run this model