pollinations / adampi
Create a 3D photo from single in-the-wild 2D images
Prediction
pollinations/adampi:80e17332327fac3769729b546a1a856af0e1e7a769a392dbf2dd152bad95d44cID6kggqrw7lfeyznmzjqxuboowx4StatusSucceededSourceWebHardware–Total durationCreatedInput
{ "image": "https://replicate.delivery/mgxm/ffdc85b6-5750-4b91-bcf7-73fda0f5a3ed/thomash_70s_psychedelic_artwork_of_a_happening_with_japanes.png" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run pollinations/adampi using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "pollinations/adampi:80e17332327fac3769729b546a1a856af0e1e7a769a392dbf2dd152bad95d44c", { input: { image: "https://replicate.delivery/mgxm/ffdc85b6-5750-4b91-bcf7-73fda0f5a3ed/thomash_70s_psychedelic_artwork_of_a_happening_with_japanes.png" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run pollinations/adampi using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "pollinations/adampi:80e17332327fac3769729b546a1a856af0e1e7a769a392dbf2dd152bad95d44c", input={ "image": "https://replicate.delivery/mgxm/ffdc85b6-5750-4b91-bcf7-73fda0f5a3ed/thomash_70s_psychedelic_artwork_of_a_happening_with_japanes.png" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run pollinations/adampi 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": "pollinations/adampi:80e17332327fac3769729b546a1a856af0e1e7a769a392dbf2dd152bad95d44c", "input": { "image": "https://replicate.delivery/mgxm/ffdc85b6-5750-4b91-bcf7-73fda0f5a3ed/thomash_70s_psychedelic_artwork_of_a_happening_with_japanes.png" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-08-09T10:17:58.858426Z", "created_at": "2022-08-09T10:16:57.319998Z", "data_removed": false, "error": null, "id": "6kggqrw7lfeyznmzjqxuboowx4", "input": { "image": "https://replicate.delivery/mgxm/ffdc85b6-5750-4b91-bcf7-73fda0f5a3ed/thomash_70s_psychedelic_artwork_of_a_happening_with_japanes.png" }, "logs": "got transformed size 512 512\nimage /DPT/resized.jpg\ninitialize\ndevice: cuda\nstart processing\n processing input/resized.jpg (1/1)\n/root/.pyenv/versions/3.7.13/lib/python3.7/site-packages/torch/nn/functional.py:3635: UserWarning: Default upsampling behavior when mode=bilinear is changed to align_corners=False since 0.4.0. Please specify align_corners=True if the old behavior is desired. See the documentation of nn.Upsample for details.\n \"See the documentation of nn.Upsample for details.\".format(mode)\nfinished\ndepth_map_path /DPT/./output_monodepth/resized.png\nnum_ch_enc= [ 64 64 128 256 512]\nupconv_4_0 514 192\nupconv_4_1 450 192\nupconv_3_0 192 96\nupconv_3_1 226 96\nupconv_2_0 96 48\nupconv_2_1 114 48\nupconv_1_0 48 24\nupconv_1_1 90 24\nupconv_0_0 24 12\nupconv_0_1 12 12\n\n 0%| | 0/90 [00:00<?, ?it/s]\n 2%|▏ | 2/90 [00:00<00:05, 15.99it/s]\n 4%|▍ | 4/90 [00:00<00:05, 16.74it/s]\n 7%|▋ | 6/90 [00:00<00:04, 17.02it/s]\n 9%|▉ | 8/90 [00:00<00:04, 17.21it/s]\n 11%|█ | 10/90 [00:00<00:04, 17.28it/s]\n 13%|█▎ | 12/90 [00:00<00:04, 17.35it/s]\n 16%|█▌ | 14/90 [00:00<00:04, 17.40it/s]\n 18%|█▊ | 16/90 [00:00<00:04, 17.37it/s]\n 20%|██ | 18/90 [00:01<00:04, 17.40it/s]\n 22%|██▏ | 20/90 [00:01<00:04, 17.41it/s]\n 24%|██▍ | 22/90 [00:01<00:03, 17.44it/s]\n 27%|██▋ | 24/90 [00:01<00:03, 17.42it/s]\n 29%|██▉ | 26/90 [00:01<00:03, 17.47it/s]\n 31%|███ | 28/90 [00:01<00:03, 17.48it/s]\n 33%|███▎ | 30/90 [00:01<00:03, 17.51it/s]\n 36%|███▌ | 32/90 [00:01<00:03, 17.52it/s]\n 38%|███▊ | 34/90 [00:01<00:03, 17.51it/s]\n 40%|████ | 36/90 [00:02<00:03, 17.52it/s]\n 42%|████▏ | 38/90 [00:02<00:02, 17.52it/s]\n 44%|████▍ | 40/90 [00:02<00:02, 17.45it/s]\n 47%|████▋ | 42/90 [00:02<00:02, 17.46it/s]\n 49%|████▉ | 44/90 [00:02<00:02, 17.47it/s]\n 51%|█████ | 46/90 [00:02<00:02, 17.46it/s]\n 53%|█████▎ | 48/90 [00:02<00:02, 17.51it/s]\n 56%|█████▌ | 50/90 [00:02<00:02, 17.52it/s]\n 58%|█████▊ | 52/90 [00:02<00:02, 17.54it/s]\n 60%|██████ | 54/90 [00:03<00:02, 17.55it/s]\n 62%|██████▏ | 56/90 [00:03<00:01, 17.54it/s]\n 64%|██████▍ | 58/90 [00:03<00:01, 17.56it/s]\n 67%|██████▋ | 60/90 [00:03<00:01, 17.57it/s]\n 69%|██████▉ | 62/90 [00:03<00:01, 17.58it/s]\n 71%|███████ | 64/90 [00:03<00:01, 17.53it/s]\n 73%|███████▎ | 66/90 [00:03<00:01, 17.43it/s]\n 76%|███████▌ | 68/90 [00:03<00:01, 17.35it/s]\n 78%|███████▊ | 70/90 [00:04<00:01, 17.35it/s]\n 80%|████████ | 72/90 [00:04<00:01, 17.32it/s]\n 82%|████████▏ | 74/90 [00:04<00:00, 17.28it/s]\n 84%|████████▍ | 76/90 [00:04<00:00, 17.22it/s]\n 87%|████████▋ | 78/90 [00:04<00:00, 17.20it/s]\n 89%|████████▉ | 80/90 [00:04<00:00, 17.20it/s]\n 91%|█████████ | 82/90 [00:04<00:00, 17.19it/s]\n 93%|█████████▎| 84/90 [00:04<00:00, 17.16it/s]\n 96%|█████████▌| 86/90 [00:04<00:00, 17.14it/s]\n 98%|█████████▊| 88/90 [00:05<00:00, 17.09it/s]\n100%|██████████| 90/90 [00:05<00:00, 17.09it/s]\n100%|██████████| 90/90 [00:05<00:00, 17.35it/s]\nffmpeg version 4.2.7-0ubuntu0.1 Copyright (c) 2000-2022 the FFmpeg developers\n built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)\n 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\n libavutil 56. 31.100 / 56. 31.100\n libavcodec 58. 54.100 / 58. 54.100\n libavformat 58. 29.100 / 58. 29.100\n libavdevice 58. 8.100 / 58. 8.100\n libavfilter 7. 57.100 / 7. 57.100\n libavresample 4. 0. 0 / 4. 0. 0\n libswscale 5. 5.100 / 5. 5.100\n libswresample 3. 5.100 / 3. 5.100\n libpostproc 55. 5.100 / 55. 5.100\nInput #0, mov,mp4,m4a,3gp,3g2,mj2, from '/tmp/3dphoto.mp4':\n Metadata:\n major_brand : isom\n minor_version : 512\n compatible_brands: isomiso2mp41\n encoder : Lavf58.29.100\n Duration: 00:00:03.00, start: 0.000000, bitrate: 2542 kb/s\n Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 512x512 [SAR 1:1 DAR 1:1], 2539 kb/s, 30 fps, 30 tbr, 15360 tbn, 30 tbc (default)\n Metadata:\n handler_name : VideoHandler\nStream mapping:\n Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))\nPress [q] to stop, [?] for help\n[libx264 @ 0x5558f2a796c0] using SAR=1/1\n[libx264 @ 0x5558f2a796c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2\n[libx264 @ 0x5558f2a796c0] profile High, level 3.2\n[libx264 @ 0x5558f2a796c0] 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=12 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\nOutput #0, mp4, to '/tmp/3dphoto_out.mp4':\n Metadata:\n major_brand : isom\n minor_version : 512\n compatible_brands: isomiso2mp41\n encoder : Lavf58.29.100\n Stream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1024x1024 [SAR 1:1 DAR 1:1], q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)\n Metadata:\n handler_name : VideoHandler\n encoder : Lavc58.54.100 libx264\n Side data:\n cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1\nframe= 47 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x\nframe= 63 fps= 56 q=29.0 size= 0kB time=00:00:00.13 bitrate= 2.9kbits/s speed=0.119x\nframe= 79 fps= 49 q=29.0 size= 256kB time=00:00:00.66 bitrate=3146.0kbits/s speed=0.41x\nframe= 90 fps= 23 q=-1.0 Lsize= 1476kB time=00:00:02.90 bitrate=4170.1kbits/s speed=0.735x\nvideo:1475kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.105754%\n[libx264 @ 0x5558f2a796c0] frame I:1 Avg QP:23.74 size: 80303\n[libx264 @ 0x5558f2a796c0] frame P:60 Avg QP:24.78 size: 20093\n[libx264 @ 0x5558f2a796c0] frame B:29 Avg QP:28.14 size: 7708\n[libx264 @ 0x5558f2a796c0] consecutive B-frames: 56.7% 0.0% 3.3% 40.0%\n[libx264 @ 0x5558f2a796c0] mb I I16..4: 16.6% 77.2% 6.2%\n[libx264 @ 0x5558f2a796c0] mb P I16..4: 0.7% 3.1% 0.2% P16..4: 52.2% 14.8% 6.4% 0.0% 0.0% skip:22.5%\n[libx264 @ 0x5558f2a796c0] mb B I16..4: 0.3% 0.3% 0.0% B16..8: 44.0% 3.4% 0.3% direct: 4.0% skip:47.7% L0:45.9% L1:46.2% BI: 7.9%\n[libx264 @ 0x5558f2a796c0] 8x8 transform intra:75.3% inter:74.1%\n[libx264 @ 0x5558f2a796c0] coded y,uvDC,uvAC intra: 56.8% 66.4% 35.3% inter: 29.6% 35.4% 1.4%\n[libx264 @ 0x5558f2a796c0] i16 v,h,dc,p: 51% 23% 20% 6%\n[libx264 @ 0x5558f2a796c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 15% 29% 5% 7% 6% 6% 6% 7%\n[libx264 @ 0x5558f2a796c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 16% 17% 6% 9% 8% 7% 7% 6%\n[libx264 @ 0x5558f2a796c0] i8c dc,h,v,p: 44% 20% 24% 11%\n[libx264 @ 0x5558f2a796c0] Weighted P-Frames: Y:0.0% UV:0.0%\n[libx264 @ 0x5558f2a796c0] ref P L0: 71.0% 17.3% 9.1% 2.6%\n[libx264 @ 0x5558f2a796c0] ref B L0: 94.2% 4.1% 1.8%\n[libx264 @ 0x5558f2a796c0] ref B L1: 98.0% 2.0%\n[libx264 @ 0x5558f2a796c0] kb/s:4025.13", "metrics": { "predict_time": 37.967047, "total_time": 61.538428 }, "output": "https://replicate.delivery/mgxm/d884d0e3-df89-49dd-a262-db0d9921941c/3dphoto_out.mp4", "started_at": "2022-08-09T10:17:20.891379Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/6kggqrw7lfeyznmzjqxuboowx4", "cancel": "https://api.replicate.com/v1/predictions/6kggqrw7lfeyznmzjqxuboowx4/cancel" }, "version": "80e17332327fac3769729b546a1a856af0e1e7a769a392dbf2dd152bad95d44c" }
Generated ingot transformed size 512 512 image /DPT/resized.jpg initialize device: cuda start processing processing input/resized.jpg (1/1) /root/.pyenv/versions/3.7.13/lib/python3.7/site-packages/torch/nn/functional.py:3635: UserWarning: Default upsampling behavior when mode=bilinear is changed to align_corners=False since 0.4.0. Please specify align_corners=True if the old behavior is desired. See the documentation of nn.Upsample for details. "See the documentation of nn.Upsample for details.".format(mode) finished depth_map_path /DPT/./output_monodepth/resized.png num_ch_enc= [ 64 64 128 256 512] upconv_4_0 514 192 upconv_4_1 450 192 upconv_3_0 192 96 upconv_3_1 226 96 upconv_2_0 96 48 upconv_2_1 114 48 upconv_1_0 48 24 upconv_1_1 90 24 upconv_0_0 24 12 upconv_0_1 12 12 0%| | 0/90 [00:00<?, ?it/s] 2%|▏ | 2/90 [00:00<00:05, 15.99it/s] 4%|▍ | 4/90 [00:00<00:05, 16.74it/s] 7%|▋ | 6/90 [00:00<00:04, 17.02it/s] 9%|▉ | 8/90 [00:00<00:04, 17.21it/s] 11%|█ | 10/90 [00:00<00:04, 17.28it/s] 13%|█▎ | 12/90 [00:00<00:04, 17.35it/s] 16%|█▌ | 14/90 [00:00<00:04, 17.40it/s] 18%|█▊ | 16/90 [00:00<00:04, 17.37it/s] 20%|██ | 18/90 [00:01<00:04, 17.40it/s] 22%|██▏ | 20/90 [00:01<00:04, 17.41it/s] 24%|██▍ | 22/90 [00:01<00:03, 17.44it/s] 27%|██▋ | 24/90 [00:01<00:03, 17.42it/s] 29%|██▉ | 26/90 [00:01<00:03, 17.47it/s] 31%|███ | 28/90 [00:01<00:03, 17.48it/s] 33%|███▎ | 30/90 [00:01<00:03, 17.51it/s] 36%|███▌ | 32/90 [00:01<00:03, 17.52it/s] 38%|███▊ | 34/90 [00:01<00:03, 17.51it/s] 40%|████ | 36/90 [00:02<00:03, 17.52it/s] 42%|████▏ | 38/90 [00:02<00:02, 17.52it/s] 44%|████▍ | 40/90 [00:02<00:02, 17.45it/s] 47%|████▋ | 42/90 [00:02<00:02, 17.46it/s] 49%|████▉ | 44/90 [00:02<00:02, 17.47it/s] 51%|█████ | 46/90 [00:02<00:02, 17.46it/s] 53%|█████▎ | 48/90 [00:02<00:02, 17.51it/s] 56%|█████▌ | 50/90 [00:02<00:02, 17.52it/s] 58%|█████▊ | 52/90 [00:02<00:02, 17.54it/s] 60%|██████ | 54/90 [00:03<00:02, 17.55it/s] 62%|██████▏ | 56/90 [00:03<00:01, 17.54it/s] 64%|██████▍ | 58/90 [00:03<00:01, 17.56it/s] 67%|██████▋ | 60/90 [00:03<00:01, 17.57it/s] 69%|██████▉ | 62/90 [00:03<00:01, 17.58it/s] 71%|███████ | 64/90 [00:03<00:01, 17.53it/s] 73%|███████▎ | 66/90 [00:03<00:01, 17.43it/s] 76%|███████▌ | 68/90 [00:03<00:01, 17.35it/s] 78%|███████▊ | 70/90 [00:04<00:01, 17.35it/s] 80%|████████ | 72/90 [00:04<00:01, 17.32it/s] 82%|████████▏ | 74/90 [00:04<00:00, 17.28it/s] 84%|████████▍ | 76/90 [00:04<00:00, 17.22it/s] 87%|████████▋ | 78/90 [00:04<00:00, 17.20it/s] 89%|████████▉ | 80/90 [00:04<00:00, 17.20it/s] 91%|█████████ | 82/90 [00:04<00:00, 17.19it/s] 93%|█████████▎| 84/90 [00:04<00:00, 17.16it/s] 96%|█████████▌| 86/90 [00:04<00:00, 17.14it/s] 98%|█████████▊| 88/90 [00:05<00:00, 17.09it/s] 100%|██████████| 90/90 [00:05<00:00, 17.09it/s] 100%|██████████| 90/90 [00:05<00:00, 17.35it/s] 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 '/tmp/3dphoto.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2mp41 encoder : Lavf58.29.100 Duration: 00:00:03.00, start: 0.000000, bitrate: 2542 kb/s Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 512x512 [SAR 1:1 DAR 1:1], 2539 kb/s, 30 fps, 30 tbr, 15360 tbn, 30 tbc (default) Metadata: handler_name : VideoHandler Stream mapping: Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264)) Press [q] to stop, [?] for help [libx264 @ 0x5558f2a796c0] using SAR=1/1 [libx264 @ 0x5558f2a796c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @ 0x5558f2a796c0] profile High, level 3.2 [libx264 @ 0x5558f2a796c0] 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=12 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/3dphoto_out.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, 1024x1024 [SAR 1:1 DAR 1:1], q=-1--1, 30 fps, 15360 tbn, 30 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= 47 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x frame= 63 fps= 56 q=29.0 size= 0kB time=00:00:00.13 bitrate= 2.9kbits/s speed=0.119x frame= 79 fps= 49 q=29.0 size= 256kB time=00:00:00.66 bitrate=3146.0kbits/s speed=0.41x frame= 90 fps= 23 q=-1.0 Lsize= 1476kB time=00:00:02.90 bitrate=4170.1kbits/s speed=0.735x video:1475kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.105754% [libx264 @ 0x5558f2a796c0] frame I:1 Avg QP:23.74 size: 80303 [libx264 @ 0x5558f2a796c0] frame P:60 Avg QP:24.78 size: 20093 [libx264 @ 0x5558f2a796c0] frame B:29 Avg QP:28.14 size: 7708 [libx264 @ 0x5558f2a796c0] consecutive B-frames: 56.7% 0.0% 3.3% 40.0% [libx264 @ 0x5558f2a796c0] mb I I16..4: 16.6% 77.2% 6.2% [libx264 @ 0x5558f2a796c0] mb P I16..4: 0.7% 3.1% 0.2% P16..4: 52.2% 14.8% 6.4% 0.0% 0.0% skip:22.5% [libx264 @ 0x5558f2a796c0] mb B I16..4: 0.3% 0.3% 0.0% B16..8: 44.0% 3.4% 0.3% direct: 4.0% skip:47.7% L0:45.9% L1:46.2% BI: 7.9% [libx264 @ 0x5558f2a796c0] 8x8 transform intra:75.3% inter:74.1% [libx264 @ 0x5558f2a796c0] coded y,uvDC,uvAC intra: 56.8% 66.4% 35.3% inter: 29.6% 35.4% 1.4% [libx264 @ 0x5558f2a796c0] i16 v,h,dc,p: 51% 23% 20% 6% [libx264 @ 0x5558f2a796c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 15% 29% 5% 7% 6% 6% 6% 7% [libx264 @ 0x5558f2a796c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 16% 17% 6% 9% 8% 7% 7% 6% [libx264 @ 0x5558f2a796c0] i8c dc,h,v,p: 44% 20% 24% 11% [libx264 @ 0x5558f2a796c0] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0x5558f2a796c0] ref P L0: 71.0% 17.3% 9.1% 2.6% [libx264 @ 0x5558f2a796c0] ref B L0: 94.2% 4.1% 1.8% [libx264 @ 0x5558f2a796c0] ref B L1: 98.0% 2.0% [libx264 @ 0x5558f2a796c0] kb/s:4025.13
Prediction
pollinations/adampi:80e17332327fac3769729b546a1a856af0e1e7a769a392dbf2dd152bad95d44cInput
{ "image": "https://replicate.delivery/mgxm/9adf3aaf-7314-47a9-bdc8-795070dcb74c/progress_00490.jpg" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run pollinations/adampi using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "pollinations/adampi:80e17332327fac3769729b546a1a856af0e1e7a769a392dbf2dd152bad95d44c", { input: { image: "https://replicate.delivery/mgxm/9adf3aaf-7314-47a9-bdc8-795070dcb74c/progress_00490.jpg" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run pollinations/adampi using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "pollinations/adampi:80e17332327fac3769729b546a1a856af0e1e7a769a392dbf2dd152bad95d44c", input={ "image": "https://replicate.delivery/mgxm/9adf3aaf-7314-47a9-bdc8-795070dcb74c/progress_00490.jpg" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run pollinations/adampi 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": "pollinations/adampi:80e17332327fac3769729b546a1a856af0e1e7a769a392dbf2dd152bad95d44c", "input": { "image": "https://replicate.delivery/mgxm/9adf3aaf-7314-47a9-bdc8-795070dcb74c/progress_00490.jpg" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-08-09T10:29:16.125879Z", "created_at": "2022-08-09T10:28:14.801960Z", "data_removed": false, "error": null, "id": "ug5sxcrh5faqrldh6nh7bp7avm", "input": { "image": "https://replicate.delivery/mgxm/9adf3aaf-7314-47a9-bdc8-795070dcb74c/progress_00490.jpg" }, "logs": "got transformed size 512 512\nimage /DPT/resized.jpg\ninitialize\ndevice: cuda\nstart processing\n processing input/resized.jpg (1/1)\n/root/.pyenv/versions/3.7.13/lib/python3.7/site-packages/torch/nn/functional.py:3635: UserWarning: Default upsampling behavior when mode=bilinear is changed to align_corners=False since 0.4.0. Please specify align_corners=True if the old behavior is desired. See the documentation of nn.Upsample for details.\n \"See the documentation of nn.Upsample for details.\".format(mode)\nfinished\ndepth_map_path /DPT/./output_monodepth/resized.png\nrm: cannot remove '/tmp/3dphoto*.mp4': No such file or directory\nnum_ch_enc= [ 64 64 128 256 512]\nupconv_4_0 514 192\nupconv_4_1 450 192\nupconv_3_0 192 96\nupconv_3_1 226 96\nupconv_2_0 96 48\nupconv_2_1 114 48\nupconv_1_0 48 24\nupconv_1_1 90 24\nupconv_0_0 24 12\nupconv_0_1 12 12\n\n 0%| | 0/90 [00:00<?, ?it/s]\n 2%|▏ | 2/90 [00:00<00:05, 15.92it/s]\n 4%|▍ | 4/90 [00:00<00:05, 16.74it/s]\n 7%|▋ | 6/90 [00:00<00:04, 16.94it/s]\n 9%|▉ | 8/90 [00:00<00:04, 17.09it/s]\n 11%|█ | 10/90 [00:00<00:04, 17.22it/s]\n 13%|█▎ | 12/90 [00:00<00:04, 17.22it/s]\n 16%|█▌ | 14/90 [00:00<00:04, 17.25it/s]\n 18%|█▊ | 16/90 [00:00<00:04, 17.30it/s]\n 20%|██ | 18/90 [00:01<00:04, 17.32it/s]\n 22%|██▏ | 20/90 [00:01<00:04, 17.32it/s]\n 24%|██▍ | 22/90 [00:01<00:03, 17.31it/s]\n 27%|██▋ | 24/90 [00:01<00:03, 17.32it/s]\n 29%|██▉ | 26/90 [00:01<00:03, 17.34it/s]\n 31%|███ | 28/90 [00:01<00:03, 17.31it/s]\n 33%|███▎ | 30/90 [00:01<00:03, 17.32it/s]\n 36%|███▌ | 32/90 [00:01<00:03, 17.32it/s]\n 38%|███▊ | 34/90 [00:01<00:03, 17.29it/s]\n 40%|████ | 36/90 [00:02<00:03, 17.25it/s]\n 42%|████▏ | 38/90 [00:02<00:03, 17.29it/s]\n 44%|████▍ | 40/90 [00:02<00:02, 17.26it/s]\n 47%|████▋ | 42/90 [00:02<00:02, 17.33it/s]\n 49%|████▉ | 44/90 [00:02<00:02, 17.32it/s]\n 51%|█████ | 46/90 [00:02<00:02, 17.34it/s]\n 53%|█████▎ | 48/90 [00:02<00:02, 17.36it/s]\n 56%|█████▌ | 50/90 [00:02<00:02, 17.39it/s]\n 58%|█████▊ | 52/90 [00:03<00:02, 17.40it/s]\n 60%|██████ | 54/90 [00:03<00:02, 17.37it/s]\n 62%|██████▏ | 56/90 [00:03<00:01, 17.34it/s]\n 64%|██████▍ | 58/90 [00:03<00:01, 17.35it/s]\n 67%|██████▋ | 60/90 [00:03<00:01, 17.34it/s]\n 69%|██████▉ | 62/90 [00:03<00:01, 17.31it/s]\n 71%|███████ | 64/90 [00:03<00:01, 17.32it/s]\n 73%|███████▎ | 66/90 [00:03<00:01, 17.32it/s]\n 76%|███████▌ | 68/90 [00:03<00:01, 17.31it/s]\n 78%|███████▊ | 70/90 [00:04<00:01, 17.31it/s]\n 80%|████████ | 72/90 [00:04<00:01, 17.26it/s]\n 82%|████████▏ | 74/90 [00:04<00:00, 17.20it/s]\n 84%|████████▍ | 76/90 [00:04<00:00, 17.15it/s]\n 87%|████████▋ | 78/90 [00:04<00:00, 17.14it/s]\n 89%|████████▉ | 80/90 [00:04<00:00, 17.13it/s]\n 91%|█████████ | 82/90 [00:04<00:00, 17.17it/s]\n 93%|█████████▎| 84/90 [00:04<00:00, 17.13it/s]\n 96%|█████████▌| 86/90 [00:04<00:00, 17.20it/s]\n 98%|█████████▊| 88/90 [00:05<00:00, 17.17it/s]\n100%|██████████| 90/90 [00:05<00:00, 17.14it/s]\n100%|██████████| 90/90 [00:05<00:00, 17.25it/s]\nffmpeg version 4.2.7-0ubuntu0.1 Copyright (c) 2000-2022 the FFmpeg developers\n built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)\n 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\n libavutil 56. 31.100 / 56. 31.100\n libavcodec 58. 54.100 / 58. 54.100\n libavformat 58. 29.100 / 58. 29.100\n libavdevice 58. 8.100 / 58. 8.100\n libavfilter 7. 57.100 / 7. 57.100\n libavresample 4. 0. 0 / 4. 0. 0\n libswscale 5. 5.100 / 5. 5.100\n libswresample 3. 5.100 / 3. 5.100\n libpostproc 55. 5.100 / 55. 5.100\nInput #0, mov,mp4,m4a,3gp,3g2,mj2, from '/tmp/3dphoto.mp4':\n Metadata:\n major_brand : isom\n minor_version : 512\n compatible_brands: isomiso2mp41\n encoder : Lavf58.29.100\n Duration: 00:00:03.00, start: 0.000000, bitrate: 2443 kb/s\n Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 512x512 [SAR 1:1 DAR 1:1], 2440 kb/s, 30 fps, 30 tbr, 15360 tbn, 30 tbc (default)\n Metadata:\n handler_name : VideoHandler\nStream mapping:\n Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))\nPress [q] to stop, [?] for help\n[libx264 @ 0x55fb90a936c0] using SAR=1/1\n[libx264 @ 0x55fb90a936c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2\n[libx264 @ 0x55fb90a936c0] profile High, level 3.0\n[libx264 @ 0x55fb90a936c0] 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=12 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\nOutput #0, mp4, to '/tmp/3dphoto_out.mp4':\n Metadata:\n major_brand : isom\n minor_version : 512\n compatible_brands: isomiso2mp41\n encoder : Lavf58.29.100\n Stream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 512x512 [SAR 1:1 DAR 1:1], q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)\n Metadata:\n handler_name : VideoHandler\n encoder : Lavc58.54.100 libx264\n Side data:\n cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1\nframe= 90 fps=0.0 q=-1.0 Lsize= 300kB time=00:00:02.90 bitrate= 848.1kbits/s speed=3.58x\nvideo:299kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.553415%\n[libx264 @ 0x55fb90a936c0] frame I:1 Avg QP:22.89 size: 23638\n[libx264 @ 0x55fb90a936c0] frame P:58 Avg QP:23.43 size: 4407\n[libx264 @ 0x55fb90a936c0] frame B:31 Avg QP:28.47 size: 832\n[libx264 @ 0x55fb90a936c0] consecutive B-frames: 46.7% 20.0% 6.7% 26.7%\n[libx264 @ 0x55fb90a936c0] mb I I16..4: 5.3% 93.4% 1.4%\n[libx264 @ 0x55fb90a936c0] mb P I16..4: 0.5% 3.3% 0.0% P16..4: 37.7% 13.7% 9.2% 0.0% 0.0% skip:35.6%\n[libx264 @ 0x55fb90a936c0] mb B I16..4: 0.1% 0.2% 0.0% B16..8: 41.7% 2.4% 0.3% direct: 0.4% skip:55.0% L0:45.3% L1:43.8% BI:11.0%\n[libx264 @ 0x55fb90a936c0] 8x8 transform intra:88.0% inter:71.2%\n[libx264 @ 0x55fb90a936c0] coded y,uvDC,uvAC intra: 77.9% 72.9% 16.1% inter: 14.3% 15.6% 0.8%\n[libx264 @ 0x55fb90a936c0] i16 v,h,dc,p: 3% 65% 4% 28%\n[libx264 @ 0x55fb90a936c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 52% 26% 2% 1% 1% 2% 1% 4%\n[libx264 @ 0x55fb90a936c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 25% 12% 7% 8% 7% 7% 6% 6%\n[libx264 @ 0x55fb90a936c0] i8c dc,h,v,p: 39% 41% 13% 6%\n[libx264 @ 0x55fb90a936c0] Weighted P-Frames: Y:0.0% UV:0.0%\n[libx264 @ 0x55fb90a936c0] ref P L0: 69.9% 13.8% 12.9% 3.4%\n[libx264 @ 0x55fb90a936c0] ref B L0: 89.8% 9.3% 0.8%\n[libx264 @ 0x55fb90a936c0] ref B L1: 97.6% 2.4%\n[libx264 @ 0x55fb90a936c0] kb/s:813.46", "metrics": { "predict_time": 47.871272, "total_time": 61.323919 }, "output": "https://replicate.delivery/mgxm/d3240145-ca88-42f9-9831-3d85e8f1ba8d/3dphoto_out.mp4", "started_at": "2022-08-09T10:28:28.254607Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/ug5sxcrh5faqrldh6nh7bp7avm", "cancel": "https://api.replicate.com/v1/predictions/ug5sxcrh5faqrldh6nh7bp7avm/cancel" }, "version": "80e17332327fac3769729b546a1a856af0e1e7a769a392dbf2dd152bad95d44c" }
Generated ingot transformed size 512 512 image /DPT/resized.jpg initialize device: cuda start processing processing input/resized.jpg (1/1) /root/.pyenv/versions/3.7.13/lib/python3.7/site-packages/torch/nn/functional.py:3635: UserWarning: Default upsampling behavior when mode=bilinear is changed to align_corners=False since 0.4.0. Please specify align_corners=True if the old behavior is desired. See the documentation of nn.Upsample for details. "See the documentation of nn.Upsample for details.".format(mode) finished depth_map_path /DPT/./output_monodepth/resized.png rm: cannot remove '/tmp/3dphoto*.mp4': No such file or directory num_ch_enc= [ 64 64 128 256 512] upconv_4_0 514 192 upconv_4_1 450 192 upconv_3_0 192 96 upconv_3_1 226 96 upconv_2_0 96 48 upconv_2_1 114 48 upconv_1_0 48 24 upconv_1_1 90 24 upconv_0_0 24 12 upconv_0_1 12 12 0%| | 0/90 [00:00<?, ?it/s] 2%|▏ | 2/90 [00:00<00:05, 15.92it/s] 4%|▍ | 4/90 [00:00<00:05, 16.74it/s] 7%|▋ | 6/90 [00:00<00:04, 16.94it/s] 9%|▉ | 8/90 [00:00<00:04, 17.09it/s] 11%|█ | 10/90 [00:00<00:04, 17.22it/s] 13%|█▎ | 12/90 [00:00<00:04, 17.22it/s] 16%|█▌ | 14/90 [00:00<00:04, 17.25it/s] 18%|█▊ | 16/90 [00:00<00:04, 17.30it/s] 20%|██ | 18/90 [00:01<00:04, 17.32it/s] 22%|██▏ | 20/90 [00:01<00:04, 17.32it/s] 24%|██▍ | 22/90 [00:01<00:03, 17.31it/s] 27%|██▋ | 24/90 [00:01<00:03, 17.32it/s] 29%|██▉ | 26/90 [00:01<00:03, 17.34it/s] 31%|███ | 28/90 [00:01<00:03, 17.31it/s] 33%|███▎ | 30/90 [00:01<00:03, 17.32it/s] 36%|███▌ | 32/90 [00:01<00:03, 17.32it/s] 38%|███▊ | 34/90 [00:01<00:03, 17.29it/s] 40%|████ | 36/90 [00:02<00:03, 17.25it/s] 42%|████▏ | 38/90 [00:02<00:03, 17.29it/s] 44%|████▍ | 40/90 [00:02<00:02, 17.26it/s] 47%|████▋ | 42/90 [00:02<00:02, 17.33it/s] 49%|████▉ | 44/90 [00:02<00:02, 17.32it/s] 51%|█████ | 46/90 [00:02<00:02, 17.34it/s] 53%|█████▎ | 48/90 [00:02<00:02, 17.36it/s] 56%|█████▌ | 50/90 [00:02<00:02, 17.39it/s] 58%|█████▊ | 52/90 [00:03<00:02, 17.40it/s] 60%|██████ | 54/90 [00:03<00:02, 17.37it/s] 62%|██████▏ | 56/90 [00:03<00:01, 17.34it/s] 64%|██████▍ | 58/90 [00:03<00:01, 17.35it/s] 67%|██████▋ | 60/90 [00:03<00:01, 17.34it/s] 69%|██████▉ | 62/90 [00:03<00:01, 17.31it/s] 71%|███████ | 64/90 [00:03<00:01, 17.32it/s] 73%|███████▎ | 66/90 [00:03<00:01, 17.32it/s] 76%|███████▌ | 68/90 [00:03<00:01, 17.31it/s] 78%|███████▊ | 70/90 [00:04<00:01, 17.31it/s] 80%|████████ | 72/90 [00:04<00:01, 17.26it/s] 82%|████████▏ | 74/90 [00:04<00:00, 17.20it/s] 84%|████████▍ | 76/90 [00:04<00:00, 17.15it/s] 87%|████████▋ | 78/90 [00:04<00:00, 17.14it/s] 89%|████████▉ | 80/90 [00:04<00:00, 17.13it/s] 91%|█████████ | 82/90 [00:04<00:00, 17.17it/s] 93%|█████████▎| 84/90 [00:04<00:00, 17.13it/s] 96%|█████████▌| 86/90 [00:04<00:00, 17.20it/s] 98%|█████████▊| 88/90 [00:05<00:00, 17.17it/s] 100%|██████████| 90/90 [00:05<00:00, 17.14it/s] 100%|██████████| 90/90 [00:05<00:00, 17.25it/s] 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 '/tmp/3dphoto.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2mp41 encoder : Lavf58.29.100 Duration: 00:00:03.00, start: 0.000000, bitrate: 2443 kb/s Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 512x512 [SAR 1:1 DAR 1:1], 2440 kb/s, 30 fps, 30 tbr, 15360 tbn, 30 tbc (default) Metadata: handler_name : VideoHandler Stream mapping: Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264)) Press [q] to stop, [?] for help [libx264 @ 0x55fb90a936c0] using SAR=1/1 [libx264 @ 0x55fb90a936c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @ 0x55fb90a936c0] profile High, level 3.0 [libx264 @ 0x55fb90a936c0] 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=12 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/3dphoto_out.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, 512x512 [SAR 1:1 DAR 1:1], q=-1--1, 30 fps, 15360 tbn, 30 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= 90 fps=0.0 q=-1.0 Lsize= 300kB time=00:00:02.90 bitrate= 848.1kbits/s speed=3.58x video:299kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.553415% [libx264 @ 0x55fb90a936c0] frame I:1 Avg QP:22.89 size: 23638 [libx264 @ 0x55fb90a936c0] frame P:58 Avg QP:23.43 size: 4407 [libx264 @ 0x55fb90a936c0] frame B:31 Avg QP:28.47 size: 832 [libx264 @ 0x55fb90a936c0] consecutive B-frames: 46.7% 20.0% 6.7% 26.7% [libx264 @ 0x55fb90a936c0] mb I I16..4: 5.3% 93.4% 1.4% [libx264 @ 0x55fb90a936c0] mb P I16..4: 0.5% 3.3% 0.0% P16..4: 37.7% 13.7% 9.2% 0.0% 0.0% skip:35.6% [libx264 @ 0x55fb90a936c0] mb B I16..4: 0.1% 0.2% 0.0% B16..8: 41.7% 2.4% 0.3% direct: 0.4% skip:55.0% L0:45.3% L1:43.8% BI:11.0% [libx264 @ 0x55fb90a936c0] 8x8 transform intra:88.0% inter:71.2% [libx264 @ 0x55fb90a936c0] coded y,uvDC,uvAC intra: 77.9% 72.9% 16.1% inter: 14.3% 15.6% 0.8% [libx264 @ 0x55fb90a936c0] i16 v,h,dc,p: 3% 65% 4% 28% [libx264 @ 0x55fb90a936c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 52% 26% 2% 1% 1% 2% 1% 4% [libx264 @ 0x55fb90a936c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 25% 12% 7% 8% 7% 7% 6% 6% [libx264 @ 0x55fb90a936c0] i8c dc,h,v,p: 39% 41% 13% 6% [libx264 @ 0x55fb90a936c0] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0x55fb90a936c0] ref P L0: 69.9% 13.8% 12.9% 3.4% [libx264 @ 0x55fb90a936c0] ref B L0: 89.8% 9.3% 0.8% [libx264 @ 0x55fb90a936c0] ref B L1: 97.6% 2.4% [libx264 @ 0x55fb90a936c0] kb/s:813.46
Want to make some of these yourself?
Run this model