Page 1 of 1

ERROR Failed to convert image: Unable to allocate array with shape...

Posted: Wed Apr 01, 2020 7:40 pm
by locomanos

Hello all,
I have begun training with villain and now that I have gotten over a quarter million iterations I want to check up on the conversion. However I get an error part way through the process.

Code: Select all

04/01/2020 15:04:56 MainProcess     patch_0         convert         process                   ERROR    Failed to convert image: 'A-Video_000109.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:04:56 MainProcess     patch_0         convert         process                   ERROR    Failed to convert image: 'A-Video_000110.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:04:56 MainProcess     patch_0         convert         process                   ERROR    Failed to convert image: 'A-Video_000111.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:04:57 MainProcess     _load_0         multithreading  run                       DEBUG    Error in thread (_load_0): Could not read frame 1785:\n\n=== stderr ===\nffmpeg version 4.2 Copyright (c) 2000-2019 the FFmpeg developers\n  built with gcc 9.1.1 (GCC) 20190807\n  configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt\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  libswscale      5.  5.100 /  5.  5.100\n\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 'C:\Users\Jim\Documents\DF\Models\AxB\Video\A-Video.mp4':\n  Metadata:\n    major_brand     : mp42\n    minor_version   : 0\n    compatible_brands: mp42mp41\n    creation_time   : 2020-03-25T14:43:27.000000Z\n  Duration: 00:05:34.55, start: 0.000000, bitrate: 8822 kb/s\n    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720, 8500 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)\n    Metadata:\n      creation_time   : 2020-03-25T14:43:27.000000Z\n      handler_name    : ?Mainconcept Video Media Handler\n      encoder         : AVC Coding\n    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 317 kb/s (default)\n    Metadata:\n      creation_time   : 2020-03-25T14:43:27.000000Z\n      handler_name    : #Mainconcept MP4 Sound Media Handler\nStream mapping:\n  Stream #0:0 -> #0:0 (h264 (native) -> rawvideo (native))\nPress [q] to stop, [?] for help\nOutput #0, image2pipe, to 'pipe:':\n  Metadata:\n    major_brand     : mp42\n    minor_version   : 0\n    compatible_brands: mp42mp41\n    encoder         : Lavf58.29.100\n    Stream #0:0(eng): Video: rawvideo (RGB[24] / 0x18424752), rgb24, 1280x720, q=2-31, 662889 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc (default)\n    Metadata:\n... showing only last few lines ...\nframe=  764 fps= 17 q=-0.0 size= 2062800kB time=00:00:25.49 bitrate=662889.1kbits/s speed=0.57x    \nframe=  781 fps= 17 q=-0.0 size= 2108700kB time=00:00:26.05 bitrate=662889.1kbits/s speed=0.575x    \nframe=  804 fps= 18 q=-0.0 size= 2170800kB time=00:00:26.82 bitrate=662889.1kbits/s speed=0.586x    \nframe=  829 fps= 18 q=-0.0 size= 2238300kB time=00:00:27.66 bitrate=662889.1kbits/s speed=0.597x    \nframe=  853 fps= 18 q=-0.0 size= 2303100kB time=00:00:28.46 bitrate=662889.1kbits/s speed=0.608x    \nframe=  866 fps= 18 q=-0.0 size= 2338200kB time=00:00:28.89 bitrate=662889.1kbits/s speed=0.61x    \nframe=  883 fps= 18 q=-0.0 size= 2384100kB time=00:00:29.46 bitrate=662889.1kbits/s speed= 0.6x    \nframe=  913 fps= 18 q=-0.0 size= 2465100kB time=00:00:30.46 bitrate=662889.1kbits/s speed=0.614x    \nframe=  944 fps= 19 q=-0.0 size= 2548800kB time=00:00:31.49 bitrate=662889.1kbits/s speed=0.628x    \nframe=  977 fps= 19 q=-0.0 size= 2637900kB time=00:00:32.59 bitrate=662889.1kbits/s speed=0.644x    \nframe= 1008 fps= 20 q=-0.0 size= 2721600kB time=00:00:33.63 bitrate=662889.1kbits/s speed=0.658x    \nframe= 1043 fps= 20 q=-0.0 size= 2816100kB time=00:00:34.80 bitrate=662889.1kbits/s speed=0.674x    \nframe= 1065 fps= 20 q=-0.0 size= 2875500kB time=00:00:35.53 bitrate=662889.1kbits/s speed=0.679x    \nframe= 1088 fps= 20 q=-0.0 size= 2937600kB time=00:00:36.30 bitrate=662889.1kbits/s speed=0.678x    \nframe= 1105 fps= 20 q=-0.0 size= 2983500kB time=00:00:36.87 bitrate=662889.1kbits/s speed=0.682x    \nframe= 1113 fps= 20 q=-0.0 size= 3005100kB time=00:00:37.13 bitrate=662889.1kbits/s speed=0.681x    \nframe= 1116 fps= 20 q=-0.0 size= 3013200kB time=00:00:37.23 bitrate=662889.1kbits/s speed=0.67x    \nframe= 1141 fps= 20 q=-0.0 size= 3080700kB time=00:00:38.07 bitrate=662889.1kbits/s speed=0.678x    \nframe= 1163 fps= 21 q=-0.0 size= 3140100kB time=00:00:38.80 bitrate=662889.1kbits/s speed=0.685x    \nframe= 1184 fps= 21 q=-0.0 size= 3196800kB time=00:00:39.50 bitrate=662889.1kbits/s speed=0.691x    \nframe= 1216 fps= 21 q=-0.0 size= 3283200kB time=00:00:40.57 bitrate=662889.1kbits/s speed=0.704x    \nframe= 1249 fps= 21 q=-0.0 size= 3372300kB time=00:00:41.67 bitrate=662889.1kbits/s speed=0.717x    \nframe= 1279 fps= 22 q=-0.0 size= 3453300kB time=00:00:42.67 bitrate=662889.1kbits/s speed=0.727x    \nframe= 1306 fps= 22 q=-0.0 size= 3526200kB time=00:00:43.57 bitrate=662889.1kbits/s speed=0.736x    \nframe= 1327 fps= 21 q=-0.0 size= 3582900kB time=00:00:44.27 bitrate=662889.1kbits/s speed=0.714x    \nframe= 1364 fps= 22 q=-0.0 size= 3682800kB time=00:00:45.51 bitrate=662889.1kbits/s speed=0.728x    \nframe= 1397 fps= 22 q=-0.0 size= 3771900kB time=00:00:46.61 bitrate=662889.1kbits/s speed=0.74x    \nframe= 1423 fps= 22 q=-0.0 size= 3842100kB time=00:00:47.48 bitrate=662889.1kbits/s speed=0.748x    \nframe= 1442 fps= 23 q=-0.0 size= 3893400kB time=00:00:48.11 bitrate=662889.1kbits/s speed=0.751x    \nframe= 1469 fps= 23 q=-0.0 size= 3966300kB time=00:00:49.01 bitrate=662889.1kbits/s speed=0.759x    \nframe= 1495 fps= 23 q=-0.0 size= 4036500kB time=00:00:49.88 bitrate=662889.1kbits/s speed=0.767x    \nframe= 1526 fps= 23 q=-0.0 size= 4120200kB time=00:00:50.91 bitrate=662889.1kbits/s speed=0.777x    \nframe= 1552 fps= 23 q=-0.0 size= 4190400kB time=00:00:51.78 bitrate=662889.1kbits/s speed=0.784x    \nframe= 1554 fps= 23 q=-0.0 size= 4195800kB time=00:00:51.85 bitrate=662889.1kbits/s speed=0.774x    \nframe= 1572 fps= 23 q=-0.0 size= 4244400kB time=00:00:52.45 bitrate=662889.1kbits/s speed=0.778x    \nframe= 1607 fps= 24 q=-0.0 size= 4338900kB time=00:00:53.62 bitrate=662889.1kbits/s speed=0.789x    \nframe= 1642 fps= 24 q=-0.0 size= 4433400kB time=00:00:54.78 bitrate=662889.1kbits/s speed= 0.8x    \nframe= 1654 fps= 24 q=-0.0 size= 4465800kB time=00:00:55.18 bitrate=662889.1kbits/s speed=0.794x    \nframe= 1670 fps= 24 q=-0.0 size= 4509000kB time=00:00:55.72 bitrate=662889.1kbits/s speed=0.796x    \nframe= 1687 fps= 24 q=-0.0 size= 4554900kB time=00:00:56.28 bitrate=662889.1kbits/s speed=0.793x    \nframe= 1722 fps= 24 q=-0.0 size= 4649400kB time=00:00:57.45 bitrate=662889.1kbits/s speed=0.804x
04/01/2020 15:04:57 MainProcess     MainThread      multithreading  check_and_raise_error     DEBUG    Thread error caught: [(<class 'RuntimeError'>, RuntimeError("Could not read frame 1785:\n\n=== stderr ===\nffmpeg version 4.2 Copyright (c) 2000-2019 the FFmpeg developers\n  built with gcc 9.1.1 (GCC) 20190807\n  configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt\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  libswscale      5.  5.100 /  5.  5.100\n\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 'C:\\Users\\Jim\\Documents\\DF\\Models\\AxB\\Video\\A-Video.mp4':\n  Metadata:\n    major_brand     : mp42\n    minor_version   : 0\n    compatible_brands: mp42mp41\n    creation_time   : 2020-03-25T14:43:27.000000Z\n  Duration: 00:05:34.55, start: 0.000000, bitrate: 8822 kb/s\n    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720, 8500 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)\n    Metadata:\n      creation_time   : 2020-03-25T14:43:27.000000Z\n      handler_name    : ?Mainconcept Video Media Handler\n      encoder         : AVC Coding\n    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 317 kb/s (default)\n    Metadata:\n      creation_time   : 2020-03-25T14:43:27.000000Z\n      handler_name    : #Mainconcept MP4 Sound Media Handler\nStream mapping:\n  Stream #0:0 -> #0:0 (h264 (native) -> rawvideo (native))\nPress [q] to stop, [?] for help\nOutput #0, image2pipe, to 'pipe:':\n  Metadata:\n    major_brand     : mp42\n    minor_version   : 0\n    compatible_brands: mp42mp41\n    encoder         : Lavf58.29.100\n    Stream #0:0(eng): Video: rawvideo (RGB[24] / 0x18424752), rgb24, 1280x720, q=2-31, 662889 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc (default)\n    Metadata:\n... showing only last few lines ...\nframe=  764 fps= 17 q=-0.0 size= 2062800kB time=00:00:25.49 bitrate=662889.1kbits/s speed=0.57x    \nframe=  781 fps= 17 q=-0.0 size= 2108700kB time=00:00:26.05 bitrate=662889.1kbits/s speed=0.575x    \nframe=  804 fps= 18 q=-0.0 size= 2170800kB time=00:00:26.82 bitrate=662889.1kbits/s speed=0.586x    \nframe=  829 fps= 18 q=-0.0 size= 2238300kB time=00:00:27.66 bitrate=662889.1kbits/s speed=0.597x    \nframe=  853 fps= 18 q=-0.0 size= 2303100kB time=00:00:28.46 bitrate=662889.1kbits/s speed=0.608x    \nframe=  866 fps= 18 q=-0.0 size= 2338200kB time=00:00:28.89 bitrate=662889.1kbits/s speed=0.61x    \nframe=  883 fps= 18 q=-0.0 size= 2384100kB time=00:00:29.46 bitrate=662889.1kbits/s speed= 0.6x    \nframe=  913 fps= 18 q=-0.0 size= 2465100kB time=00:00:30.46 bitrate=662889.1kbits/s speed=0.614x    \nframe=  944 fps= 19 q=-0.0 size= 2548800kB time=00:00:31.49 bitrate=662889.1kbits/s speed=0.628x    \nframe=  977 fps= 19 q=-0.0 size= 2637900kB time=00:00:32.59 bitrate=662889.1kbits/s speed=0.644x    \nframe= 1008 fps= 20 q=-0.0 size= 2721600kB time=00:00:33.63 bitrate=662889.1kbits/s speed=0.658x    \nframe= 1043 fps= 20 q=-0.0 size= 2816100kB time=00:00:34.80 bitrate=662889.1kbits/s speed=0.674x    \nframe= 1065 fps= 20 q=-0.0 size= 2875500kB time=00:00:35.53 bitrate=662889.1kbits/s speed=0.679x    \nframe= 1088 fps= 20 q=-0.0 size= 2937600kB time=00:00:36.30 bitrate=662889.1kbits/s speed=0.678x    \nframe= 1105 fps= 20 q=-0.0 size= 2983500kB time=00:00:36.87 bitrate=662889.1kbits/s speed=0.682x    \nframe= 1113 fps= 20 q=-0.0 size= 3005100kB time=00:00:37.13 bitrate=662889.1kbits/s speed=0.681x    \nframe= 1116 fps= 20 q=-0.0 size= 3013200kB time=00:00:37.23 bitrate=662889.1kbits/s speed=0.67x    \nframe= 1141 fps= 20 q=-0.0 size= 3080700kB time=00:00:38.07 bitrate=662889.1kbits/s speed=0.678x    \nframe= 1163 fps= 21 q=-0.0 size= 3140100kB time=00:00:38.80 bitrate=662889.1kbits/s speed=0.685x    \nframe= 1184 fps= 21 q=-0.0 size= 3196800kB time=00:00:39.50 bitrate=662889.1kbits/s speed=0.691x    \nframe= 1216 fps= 21 q=-0.0 size= 3283200kB time=00:00:40.57 bitrate=662889.1kbits/s speed=0.704x    \nframe= 1249 fps= 21 q=-0.0 size= 3372300kB time=00:00:41.67 bitrate=662889.1kbits/s speed=0.717x    \nframe= 1279 fps= 22 q=-0.0 size= 3453300kB time=00:00:42.67 bitrate=662889.1kbits/s speed=0.727x    \nframe= 1306 fps= 22 q=-0.0 size= 3526200kB time=00:00:43.57 bitrate=662889.1kbits/s speed=0.736x    \nframe= 1327 fps= 21 q=-0.0 size= 3582900kB time=00:00:44.27 bitrate=662889.1kbits/s speed=0.714x    \nframe= 1364 fps= 22 q=-0.0 size= 3682800kB time=00:00:45.51 bitrate=662889.1kbits/s speed=0.728x    \nframe= 1397 fps= 22 q=-0.0 size= 3771900kB time=00:00:46.61 bitrate=662889.1kbits/s speed=0.74x    \nframe= 1423 fps= 22 q=-0.0 size= 3842100kB time=00:00:47.48 bitrate=662889.1kbits/s speed=0.748x    \nframe= 1442 fps= 23 q=-0.0 size= 3893400kB time=00:00:48.11 bitrate=662889.1kbits/s speed=0.751x    \nframe= 1469 fps= 23 q=-0.0 size= 3966300kB time=00:00:49.01 bitrate=662889.1kbits/s speed=0.759x    \nframe= 1495 fps= 23 q=-0.0 size= 4036500kB time=00:00:49.88 bitrate=662889.1kbits/s speed=0.767x    \nframe= 1526 fps= 23 q=-0.0 size= 4120200kB time=00:00:50.91 bitrate=662889.1kbits/s speed=0.777x    \nframe= 1552 fps= 23 q=-0.0 size= 4190400kB time=00:00:51.78 bitrate=662889.1kbits/s speed=0.784x    \nframe= 1554 fps= 23 q=-0.0 size= 4195800kB time=00:00:51.85 bitrate=662889.1kbits/s speed=0.774x    \nframe= 1572 fps= 23 q=-0.0 size= 4244400kB time=00:00:52.45 bitrate=662889.1kbits/s speed=0.778x    \nframe= 1607 fps= 24 q=-0.0 size= 4338900kB time=00:00:53.62 bitrate=662889.1kbits/s speed=0.789x    \nframe= 1642 fps= 24 q=-0.0 size= 4433400kB time=00:00:54.78 bitrate=662889.1kbits/s speed= 0.8x    \nframe= 1654 fps= 24 q=-0.0 size= 4465800kB time=00:00:55.18 bitrate=662889.1kbits/s speed=0.794x    \nframe= 1670 fps= 24 q=-0.0 size= 4509000kB time=00:00:55.72 bitrate=662889.1kbits/s speed=0.796x    \nframe= 1687 fps= 24 q=-0.0 size= 4554900kB time=00:00:56.28 bitrate=662889.1kbits/s speed=0.793x    \nframe= 1722 fps= 24 q=-0.0 size= 4649400kB time=00:00:57.45 bitrate=662889.1kbits/s speed=0.804x    "), <traceback object at 0x000001CF3EFF8788>)]
04/01/2020 15:04:57 MainProcess     MainThread      plaidml_tools   initialize                DEBUG    PlaidML already initialized
04/01/2020 15:04:57 MainProcess     MainThread      plaidml_tools   get_supported_devices     DEBUG    [<plaidml._DeviceConfig object at 0x000001CF3F82F888>]
04/01/2020 15:04:58 MainProcess     MainThread      plaidml_tools   get_all_devices           DEBUG    Experimental Devices: [<plaidml._DeviceConfig object at 0x000001CF3F837388>]
04/01/2020 15:04:58 MainProcess     MainThread      plaidml_tools   get_all_devices           DEBUG    [<plaidml._DeviceConfig object at 0x000001CF3F837388>, <plaidml._DeviceConfig object at 0x000001CF3F82F888>]
04/01/2020 15:04:58 MainProcess     MainThread      plaidml_tools   __init__                  DEBUG    Initialized: PlaidMLStats
04/01/2020 15:04:58 MainProcess     MainThread      plaidml_tools   supported_indices         DEBUG    [1]
04/01/2020 15:04:58 MainProcess     MainThread      plaidml_tools   supported_indices         DEBUG    [1]
04/01/2020 15:04:58 MainProcess     patch_3         convert         process                   ERROR    Failed to convert image: 'A-Video_000515.png'. Reason: Unable to allocate array with shape (720, 1280, 1) and data type float32
04/01/2020 15:04:58 MainProcess     patch_2         convert         process                   ERROR    Failed to convert image: 'A-Video_001105.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type uint8
04/01/2020 15:04:58 MainProcess     patch_3         convert         process                   ERROR    Failed to convert image: 'A-Video_000516.png'. Reason: Unable to allocate array with shape (720, 1280, 1) and data type float32
04/01/2020 15:04:58 MainProcess     patch_7         convert         process                   ERROR    Failed to convert image: 'A-Video_001365.png'. Reason: Unable to allocate array with shape (720, 1280, 1) and data type float32
04/01/2020 15:04:58 MainProcess     patch_7         convert         process                   ERROR    Failed to convert image: 'A-Video_001366.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:04:58 MainProcess     patch_7         convert         process                   ERROR    Failed to convert image: 'A-Video_001367.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:04:58 MainProcess     patch_7         convert         process                   ERROR    Failed to convert image: 'A-Video_001368.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:04:58 MainProcess     patch_7         convert         process                   ERROR    Failed to convert image: 'A-Video_001369.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:04:58 MainProcess     patch_7         convert         process                   ERROR    Failed to convert image: 'A-Video_001370.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:04:58 MainProcess     patch_7         convert         process                   ERROR    Failed to convert image: 'A-Video_001371.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:04:58 MainProcess     patch_7         convert         process                   ERROR    Failed to convert image: 'A-Video_001372.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:04:58 MainProcess     patch_3         convert         process                   ERROR    Failed to convert image: 'A-Video_000517.png'. Reason: Unable to allocate array with shape (720, 1280, 1) and data type float32
04/01/2020 15:04:58 MainProcess     patch_6         convert         process                   ERROR    Failed to convert image: 'A-Video_001337.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:04:58 MainProcess     patch_6         convert         process                   ERROR    Failed to convert image: 'A-Video_001338.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:04:58 MainProcess     patch_6         convert         process                   ERROR    Failed to convert image: 'A-Video_001339.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:04:58 MainProcess     patch_6         convert         process                   ERROR    Failed to convert image: 'A-Video_001340.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:04:58 MainProcess     _save_0         convert         _save                     DEBUG    Writing GUI Preview image: 'C:\Users\Jim\Documents\DF\Models\AxB\Video\.gui_preview.jpg'
04/01/2020 15:04:59 MainProcess     patch_7         convert         process                   ERROR    Failed to convert image: 'A-Video_001374.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type uint8
04/01/2020 15:04:59 MainProcess     patch_4         convert         process                   ERROR    Failed to convert image: 'A-Video_001354.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:04:59 MainProcess     patch_4         convert         process                   ERROR    Failed to convert image: 'A-Video_001355.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:04:59 MainProcess     patch_4         convert         process                   ERROR    Failed to convert image: 'A-Video_001356.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:04:59 MainProcess     patch_2         convert         process                   ERROR    Failed to convert image: 'A-Video_001109.png'. Reason: Unable to allocate array with shape (720, 1280, 1) and data type float32
04/01/2020 15:05:00 MainProcess     patch_0         convert         process                   ERROR    Failed to convert image: 'A-Video_000121.png'. Reason: Unable to allocate array with shape (720, 1280, 1) and data type float32
04/01/2020 15:05:00 MainProcess     patch_1         convert         process                   ERROR    Failed to convert image: 'A-Video_000339.png'. Reason: Unable to allocate array with shape (720, 1280, 1) and data type float32
04/01/2020 15:05:00 MainProcess     patch_5         convert         process                   ERROR    Failed to convert image: 'A-Video_000879.png'. Reason: Unable to allocate array with shape (720, 1280, 1) and data type float32
04/01/2020 15:05:00 MainProcess     patch_2         convert         process                   ERROR    Failed to convert image: 'A-Video_001110.png'. Reason: Unable to allocate array with shape (720, 1280, 1) and data type float32
04/01/2020 15:05:00 MainProcess     patch_6         convert         process                   ERROR    Failed to convert image: 'A-Video_001392.png'. Reason: Unable to allocate array with shape (720, 1280, 1) and data type float32
04/01/2020 15:05:00 MainProcess     patch_6         convert         process                   ERROR    Failed to convert image: 'A-Video_001393.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_6         convert         process                   ERROR    Failed to convert image: 'A-Video_001394.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_6         convert         process                   ERROR    Failed to convert image: 'A-Video_001395.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_6         convert         process                   ERROR    Failed to convert image: 'A-Video_001396.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_6         convert         process                   ERROR    Failed to convert image: 'A-Video_001397.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_6         convert         process                   ERROR    Failed to convert image: 'A-Video_001398.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_6         convert         process                   ERROR    Failed to convert image: 'A-Video_001399.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_6         convert         process                   ERROR    Failed to convert image: 'A-Video_001400.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_6         convert         process                   ERROR    Failed to convert image: 'A-Video_001401.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_6         convert         process                   ERROR    Failed to convert image: 'A-Video_001402.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_6         convert         process                   ERROR    Failed to convert image: 'A-Video_001403.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_6         convert         process                   ERROR    Failed to convert image: 'A-Video_001404.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_0         convert         process                   ERROR    Failed to convert image: 'A-Video_000122.png'. Reason: Unable to allocate array with shape (720, 1280, 1) and data type float32
04/01/2020 15:05:00 MainProcess     patch_4         convert         process                   ERROR    Failed to convert image: 'A-Video_001408.png'. Reason: Unable to allocate array with shape (720, 1280, 1) and data type float32
04/01/2020 15:05:00 MainProcess     patch_4         convert         process                   ERROR    Failed to convert image: 'A-Video_001409.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_4         convert         process                   ERROR    Failed to convert image: 'A-Video_001410.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_4         convert         process                   ERROR    Failed to convert image: 'A-Video_001411.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_4         convert         process                   ERROR    Failed to convert image: 'A-Video_001412.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_4         convert         process                   ERROR    Failed to convert image: 'A-Video_001413.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_4         convert         process                   ERROR    Failed to convert image: 'A-Video_001414.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_4         convert         process                   ERROR    Failed to convert image: 'A-Video_001415.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_4         convert         process                   ERROR    Failed to convert image: 'A-Video_001416.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_4         convert         process                   ERROR    Failed to convert image: 'A-Video_001417.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_4         convert         process                   ERROR    Failed to convert image: 'A-Video_001418.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_4         convert         process                   ERROR    Failed to convert image: 'A-Video_001419.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_4         convert         process                   ERROR    Failed to convert image: 'A-Video_001420.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_4         convert         process                   ERROR    Failed to convert image: 'A-Video_001437.png'. Reason: Unable to allocate array with shape (720, 1280, 1) and data type float32
04/01/2020 15:05:00 MainProcess     patch_6         convert         process                   ERROR    Failed to convert image: 'A-Video_001422.png'. Reason: Unable to allocate array with shape (720, 1280, 1) and data type float32
04/01/2020 15:05:00 MainProcess     patch_2         convert         process                   ERROR    Failed to convert image: 'A-Video_001112.png'. Reason: Unable to allocate array with shape (720, 1280, 1) and data type float32
04/01/2020 15:05:00 MainProcess     patch_5         convert         process                   ERROR    Failed to convert image: 'A-Video_000881.png'. Reason: Unable to allocate array with shape (720, 1280, 1) and data type float32
04/01/2020 15:05:00 MainProcess     patch_5         convert         process                   ERROR    Failed to convert image: 'A-Video_000882.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_5         convert         process                   ERROR    Failed to convert image: 'A-Video_000883.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_5         convert         process                   ERROR    Failed to convert image: 'A-Video_000884.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_5         convert         process                   ERROR    Failed to convert image: 'A-Video_000885.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_5         convert         process                   ERROR    Failed to convert image: 'A-Video_000886.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_5         convert         process                   ERROR    Failed to convert image: 'A-Video_000887.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_5         convert         process                   ERROR    Failed to convert image: 'A-Video_000888.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_5         convert         process                   ERROR    Failed to convert image: 'A-Video_000889.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_5         convert         process                   ERROR    Failed to convert image: 'A-Video_000890.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_5         convert         process                   ERROR    Failed to convert image: 'A-Video_000891.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_5         convert         process                   ERROR    Failed to convert image: 'A-Video_000892.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_5         convert         process                   ERROR    Failed to convert image: 'A-Video_000893.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_5         convert         process                   ERROR    Failed to convert image: 'A-Video_000894.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_5         convert         process                   ERROR    Failed to convert image: 'A-Video_000895.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_5         convert         process                   ERROR    Failed to convert image: 'A-Video_000896.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_5         convert         process                   ERROR    Failed to convert image: 'A-Video_000897.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_5         convert         process                   ERROR    Failed to convert image: 'A-Video_000898.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_5         convert         process                   ERROR    Failed to convert image: 'A-Video_000899.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_5         convert         process                   ERROR    Failed to convert image: 'A-Video_000900.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_5         convert         process                   ERROR    Failed to convert image: 'A-Video_000901.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:00 MainProcess     patch_5         convert         process                   ERROR    Failed to convert image: 'A-Video_000902.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:01 MainProcess     patch_5         convert         process                   ERROR    Failed to convert image: 'A-Video_000903.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:01 MainProcess     patch_5         convert         process                   ERROR    Failed to convert image: 'A-Video_000904.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:01 MainProcess     patch_5         convert         process                   ERROR    Failed to convert image: 'A-Video_000905.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:01 MainProcess     patch_5         convert         process                   ERROR    Failed to convert image: 'A-Video_000906.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:01 MainProcess     patch_5         convert         process                   ERROR    Failed to convert image: 'A-Video_000907.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:01 MainProcess     patch_5         convert         process                   ERROR    Failed to convert image: 'A-Video_000908.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:01 MainProcess     patch_5         convert         process                   ERROR    Failed to convert image: 'A-Video_000909.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:01 MainProcess     patch_5         convert         process                   ERROR    Failed to convert image: 'A-Video_000910.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:01 MainProcess     patch_5         convert         process                   ERROR    Failed to convert image: 'A-Video_000911.png'. Reason: Unable to allocate array with shape (720, 1280, 3) and data type float32
04/01/2020 15:05:01 MainProcess     _save_0         multithreading  run                       DEBUG    Error in thread (_save_0): [Errno 32] Broken pipe\n\nFFMPEG COMMAND:\nC:\Users\Jim\MiniConda3\envs\faceswap\Library\bin\ffmpeg.exe -y -f rawvideo -vcodec rawvideo -s 1280x720 -pix_fmt rgb24 -r 29.97 -i - -an -vcodec libx264 -pix_fmt yuv420p -crf 25 -v error -vf scale=1280:720 -c:v libx264 -crf 23 -preset medium C:\Users\Jim\Documents\DF\Models\AxB\Video\__tmp_A-Video_converted.mp4\n\nFFMPEG STDERR OUTPUT:\n
Traceback (most recent call last):
  File "C:\Users\Jim\MiniConda3\envs\faceswap\lib\site-packages\imageio_ffmpeg\_io.py", line 197, in read_frames
    extra_bytes = p.stdout.read(framesize_bytes - len(bb))
MemoryError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Jim\faceswap\lib\cli.py", line 128, in execute_script
    process.process()
  File "C:\Users\Jim\faceswap\scripts\convert.py", line 157, in process
    self._convert_images()
  File "C:\Users\Jim\faceswap\scripts\convert.py", line 184, in _convert_images
    self._check_thread_error()
  File "C:\Users\Jim\faceswap\scripts\convert.py", line 204, in _check_thread_error
    thread.check_and_raise_error()
  File "C:\Users\Jim\faceswap\lib\multithreading.py", line 84, in check_and_raise_error
    raise error[1].with_traceback(error[2])
  File "C:\Users\Jim\faceswap\lib\multithreading.py", line 37, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\Jim\faceswap\scripts\convert.py", line 452, in _load
    for filename, image in self._images.load():
  File "C:\Users\Jim\faceswap\scripts\fsmedia.py", line 247, in load
    for filename, image in iterator():
  File "C:\Users\Jim\faceswap\scripts\fsmedia.py", line 280, in _load_video_frames
    for i, frame in enumerate(reader):
  File "C:\Users\Jim\MiniConda3\envs\faceswap\lib\site-packages\imageio\core\format.py", line 399, in iter_data
    im, meta = self._get_data(i)
  File "C:\Users\Jim\MiniConda3\envs\faceswap\lib\site-packages\imageio\plugins\ffmpeg.py", line 384, in _get_data
    result, is_new = self._read_frame()
  File "C:\Users\Jim\MiniConda3\envs\faceswap\lib\site-packages\imageio\plugins\ffmpeg.py", line 486, in _read_frame
    s = self._read_gen.__next__()
  File "C:\Users\Jim\MiniConda3\envs\faceswap\lib\site-packages\imageio_ffmpeg\_io.py", line 211, in read_frames
    raise RuntimeError(fmt.format(framenr, err1, err2))
RuntimeError: Could not read frame 1785:

=== stderr ===
ffmpeg version 4.2 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 9.1.1 (GCC) 20190807
  configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
  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
  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 'C:\Users\Jim\Documents\DF\Models\AxB\Video\A-Video.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41
    creation_time   : 2020-03-25T14:43:27.000000Z
  Duration: 00:05:34.55, start: 0.000000, bitrate: 8822 kb/s
    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720, 8500 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
    Metadata:
      creation_time   : 2020-03-25T14:43:27.000000Z
      handler_name    : ?Mainconcept Video Media Handler
      encoder         : AVC Coding
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 317 kb/s (default)
    Metadata:
      creation_time   : 2020-03-25T14:43:27.000000Z
      handler_name    : #Mainconcept MP4 Sound Media Handler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> rawvideo (native))
Press [q] to stop, [?] for help
Output #0, image2pipe, to 'pipe:':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41
    encoder         : Lavf58.29.100
    Stream #0:0(eng): Video: rawvideo (RGB[24] / 0x18424752), rgb24, 1280x720, q=2-31, 662889 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc (default)
    Metadata:
... showing only last few lines ...
frame=  764 fps= 17 q=-0.0 size= 2062800kB time=00:00:25.49 bitrate=662889.1kbits/s speed=0.57x    
frame= 781 fps= 17 q=-0.0 size= 2108700kB time=00:00:26.05 bitrate=662889.1kbits/s speed=0.575x
frame= 804 fps= 18 q=-0.0 size= 2170800kB time=00:00:26.82 bitrate=662889.1kbits/s speed=0.586x
frame= 829 fps= 18 q=-0.0 size= 2238300kB time=00:00:27.66 bitrate=662889.1kbits/s speed=0.597x
frame= 853 fps= 18 q=-0.0 size= 2303100kB time=00:00:28.46 bitrate=662889.1kbits/s speed=0.608x
frame= 866 fps= 18 q=-0.0 size= 2338200kB time=00:00:28.89 bitrate=662889.1kbits/s speed=0.61x
frame= 883 fps= 18 q=-0.0 size= 2384100kB time=00:00:29.46 bitrate=662889.1kbits/s speed= 0.6x
frame= 913 fps= 18 q=-0.0 size= 2465100kB time=00:00:30.46 bitrate=662889.1kbits/s speed=0.614x
frame= 944 fps= 19 q=-0.0 size= 2548800kB time=00:00:31.49 bitrate=662889.1kbits/s speed=0.628x
frame= 977 fps= 19 q=-0.0 size= 2637900kB time=00:00:32.59 bitrate=662889.1kbits/s speed=0.644x
frame= 1008 fps= 20 q=-0.0 size= 2721600kB time=00:00:33.63 bitrate=662889.1kbits/s speed=0.658x
frame= 1043 fps= 20 q=-0.0 size= 2816100kB time=00:00:34.80 bitrate=662889.1kbits/s speed=0.674x
frame= 1065 fps= 20 q=-0.0 size= 2875500kB time=00:00:35.53 bitrate=662889.1kbits/s speed=0.679x
frame= 1088 fps= 20 q=-0.0 size= 2937600kB time=00:00:36.30 bitrate=662889.1kbits/s speed=0.678x
frame= 1105 fps= 20 q=-0.0 size= 2983500kB time=00:00:36.87 bitrate=662889.1kbits/s speed=0.682x
frame= 1113 fps= 20 q=-0.0 size= 3005100kB time=00:00:37.13 bitrate=662889.1kbits/s speed=0.681x
frame= 1116 fps= 20 q=-0.0 size= 3013200kB time=00:00:37.23 bitrate=662889.1kbits/s speed=0.67x
frame= 1141 fps= 20 q=-0.0 size= 3080700kB time=00:00:38.07 bitrate=662889.1kbits/s speed=0.678x
frame= 1163 fps= 21 q=-0.0 size= 3140100kB time=00:00:38.80 bitrate=662889.1kbits/s speed=0.685x
frame= 1184 fps= 21 q=-0.0 size= 3196800kB time=00:00:39.50 bitrate=662889.1kbits/s speed=0.691x
frame= 1216 fps= 21 q=-0.0 size= 3283200kB time=00:00:40.57 bitrate=662889.1kbits/s speed=0.704x
frame= 1249 fps= 21 q=-0.0 size= 3372300kB time=00:00:41.67 bitrate=662889.1kbits/s speed=0.717x
frame= 1279 fps= 22 q=-0.0 size= 3453300kB time=00:00:42.67 bitrate=662889.1kbits/s speed=0.727x
frame= 1306 fps= 22 q=-0.0 size= 3526200kB time=00:00:43.57 bitrate=662889.1kbits/s speed=0.736x
frame= 1327 fps= 21 q=-0.0 size= 3582900kB time=00:00:44.27 bitrate=662889.1kbits/s speed=0.714x
frame= 1364 fps= 22 q=-0.0 size= 3682800kB time=00:00:45.51 bitrate=662889.1kbits/s speed=0.728x
frame= 1397 fps= 22 q=-0.0 size= 3771900kB time=00:00:46.61 bitrate=662889.1kbits/s speed=0.74x
frame= 1423 fps= 22 q=-0.0 size= 3842100kB time=00:00:47.48 bitrate=662889.1kbits/s speed=0.748x
frame= 1442 fps= 23 q=-0.0 size= 3893400kB time=00:00:48.11 bitrate=662889.1kbits/s speed=0.751x
frame= 1469 fps= 23 q=-0.0 size= 3966300kB time=00:00:49.01 bitrate=662889.1kbits/s speed=0.759x
frame= 1495 fps= 23 q=-0.0 size= 4036500kB time=00:00:49.88 bitrate=662889.1kbits/s speed=0.767x
frame= 1526 fps= 23 q=-0.0 size= 4120200kB time=00:00:50.91 bitrate=662889.1kbits/s speed=0.777x
frame= 1552 fps= 23 q=-0.0 size= 4190400kB time=00:00:51.78 bitrate=662889.1kbits/s speed=0.784x
frame= 1554 fps= 23 q=-0.0 size= 4195800kB time=00:00:51.85 bitrate=662889.1kbits/s speed=0.774x
frame= 1572 fps= 23 q=-0.0 size= 4244400kB time=00:00:52.45 bitrate=662889.1kbits/s speed=0.778x
frame= 1607 fps= 24 q=-0.0 size= 4338900kB time=00:00:53.62 bitrate=662889.1kbits/s speed=0.789x
frame= 1642 fps= 24 q=-0.0 size= 4433400kB time=00:00:54.78 bitrate=662889.1kbits/s speed= 0.8x
frame= 1654 fps= 24 q=-0.0 size= 4465800kB time=00:00:55.18 bitrate=662889.1kbits/s speed=0.794x
frame= 1670 fps= 24 q=-0.0 size= 4509000kB time=00:00:55.72 bitrate=662889.1kbits/s speed=0.796x
frame= 1687 fps= 24 q=-0.0 size= 4554900kB time=00:00:56.28 bitrate=662889.1kbits/s speed=0.793x
frame= 1722 fps= 24 q=-0.0 size= 4649400kB time=00:00:57.45 bitrate=662889.1kbits/s speed=0.804x ============ System Information ============ encoding: cp1252 git_branch: master git_commits: e7c5b7b Bugfix: cv2-dnn aligner - Assertion image is empty error gpu_cuda: No global version found. Check Conda packages for Conda Cuda gpu_cudnn: No global version found. Check Conda packages for Conda cuDNN gpu_devices: GPU_0: Advanced Micro Devices, Inc. - gfx900 (experimental), GPU_1: Advanced Micro Devices, Inc. - gfx900 (supported) gpu_devices_active: GPU_0, GPU_1 gpu_driver: ['3004.8 (PAL,HSAIL)', '3004.8 (PAL,HSAIL)'] gpu_vram: GPU_0: 8176MB, GPU_1: 8176MB os_machine: AMD64 os_platform: Windows-10-10.0.18362-SP0 os_release: 10 py_command: C:\Users\Jim\faceswap\faceswap.py convert -i C:/Users/Jim/Documents/DF/Models/AxB/Video/A-Video.mp4 -o C:/Users/Jim/Documents/DF/Models/AxB/Video -al C:/Users/Jim/Documents/DF/Models/AxB/Video/A-Video_alignments.fsa -m C:/Users/Jim/Documents/DF/Models/AxB/Villian/AxB (Villain) -c avg-color -M vgg-obstructed -sc none -w ffmpeg -osc 100 -l 0.4 -j 0 -L INFO -gui py_conda_version: conda 4.8.3 py_implementation: CPython py_version: 3.7.7 py_virtual_env: True sys_cores: 8 sys_processor: Intel64 Family 6 Model 58 Stepping 9, GenuineIntel sys_ram: Total: 3818MB, Available: 280MB, Used: 3538MB, Free: 280MB =============== Pip Packages =============== ============== Conda Packages ============== # packages in environment at C:\Users\Jim\MiniConda3\envs\faceswap: # # Name Version Build Channel _tflow_select 2.2.0 eigen
absl-py 0.9.0 py37_0
asn1crypto 1.3.0 py37_0
astor 0.8.0 py37_0
blas 1.0 mkl
blinker 1.4 py37_0
ca-certificates 2020.1.1 0
cachetools 3.1.1 py_0
certifi 2019.11.28 py37_1
cffi 1.14.0 py37h7a1dbc1_0
chardet 3.0.4 py37_1003
click 7.1.1 py_0
cloudpickle 1.3.0 py_0
cryptography 2.8 py37h7a1dbc1_0
cycler 0.10.0 py37_0
cytoolz 0.10.1 py37he774522_0
dask-core 2.13.0 py_0
decorator 4.4.2 py_0
enum34 1.1.10 pypi_0 pypi fastcluster 1.1.26 py37he350917_0 conda-forge ffmpeg 4.2 h6538335_0 conda-forge ffmpy 0.2.2 pypi_0 pypi freetype 2.9.1 ha9979f8_1
gast 0.2.2 py37_0
git 2.23.0 h6bb4b03_0
google-auth 1.11.2 py_0
google-auth-oauthlib 0.4.1 py_2
google-pasta 0.2.0 py_0
grpcio 1.27.2 py37h351948d_0
h5py 2.9.0 py37h5e291fa_0
hdf5 1.10.4 h7ebc959_0
icc_rt 2019.0.0 h0cc432a_1
icu 58.2 ha66f8fd_1
idna 2.9 py_1
imageio 2.6.1 py37_0
imageio-ffmpeg 0.4.1 py_0 conda-forge intel-openmp 2020.0 166
joblib 0.14.1 py_0
jpeg 9b hb83a4c4_2
keras 2.2.4 0
keras-applications 1.0.8 py_0
keras-base 2.2.4 py37_0
keras-preprocessing 1.1.0 py_1
kiwisolver 1.1.0 py37ha925a31_0
libpng 1.6.37 h2a8f88b_0
libprotobuf 3.11.4 h7bd577a_0
libtiff 4.1.0 h56a325e_0
markdown 3.1.1 py37_0
matplotlib 3.1.1 py37hc8f65d3_0
matplotlib-base 3.1.3 py37h64f37c6_0
mkl 2020.0 166
mkl-service 2.3.0 py37hb782905_0
mkl_fft 1.0.15 py37h14836fe_0
mkl_random 1.1.0 py37h675688f_0
networkx 2.4 py_0
numpy 1.17.4 py37h4320e6b_0
numpy-base 1.17.4 py37hc3f5095_0
nvidia-ml-py3 7.352.1 pypi_0 pypi oauthlib 3.1.0 py_0
olefile 0.46 py37_0
opencv-python 4.1.2.30 pypi_0 pypi openssl 1.1.1e he774522_0
opt_einsum 3.1.0 py_0
pathlib 1.0.1 py37_1
pillow 6.2.1 py37hdc69c19_0
pip 20.0.2 py37_1
plaidml 0.6.4 pypi_0 pypi plaidml-keras 0.6.4 pypi_0 pypi protobuf 3.11.4 py37h33f27b4_0
psutil 5.7.0 py37he774522_0
pyasn1 0.4.8 py_0
pyasn1-modules 0.2.7 py_0
pycparser 2.20 py_0
pyjwt 1.7.1 py37_0
pyopenssl 19.1.0 py37_0
pyparsing 2.4.6 py_0
pyqt 5.9.2 py37h6538335_2
pyreadline 2.1 py37_1
pysocks 1.7.1 py37_0
python 3.7.7 h60c2a47_0_cpython
python-dateutil 2.8.1 py_0
python_abi 3.7 1_cp37m conda-forge pytz 2019.3 py_0
pywavelets 1.1.1 py37he774522_0
pywin32 227 py37he774522_1
pyyaml 5.3.1 py37he774522_0
qt 5.9.7 vc14h73c81de_0
requests 2.23.0 py37_0
requests-oauthlib 1.3.0 py_0
rsa 4.0 py_0
scikit-image 0.16.2 py37h47e9c7a_0
scikit-learn 0.22.1 py37h6288b17_0
scipy 1.4.1 py37h9439919_0
setuptools 46.1.1 py37_0
sip 4.19.8 py37h6538335_0
six 1.14.0 py37_0
sqlite 3.31.1 he774522_0
tensorboard 2.1.0 py3_0
tensorflow 1.15.0 eigen_py37h9f89a44_0
tensorflow-base 1.15.0 eigen_py37h07d2309_0
tensorflow-estimator 1.15.1 pyh2649769_0
termcolor 1.1.0 py37_1
tk 8.6.8 hfa6e2cd_0
toolz 0.10.0 py_0
toposort 1.5 py_3 conda-forge tornado 6.0.4 py37he774522_1
tqdm 4.43.0 py_0
urllib3 1.25.8 py37_0
vc 14.1 h0510ff6_4
vs2015_runtime 14.16.27012 hf0eaf9b_1
werkzeug 0.16.1 py_0
wheel 0.34.2 py37_0
win_inet_pton 1.1.0 py37_0
wincertstore 0.2 py37_0
wrapt 1.12.1 py37he774522_1
xz 5.2.4 h2fa13f4_4
yaml 0.1.7 hc54c509_2
zlib 1.2.11 h62dcd97_3
zstd 1.3.7 h508b16e_0 ================= Configs ================== --------- .faceswap --------- backend: amd --------- convert.ini --------- [color.color_transfer] clip: True preserve_paper: True [color.manual_balance] colorspace: HSV balance_1: 0.0 balance_2: 0.0 balance_3: 0.0 contrast: 0.0 brightness: 0.0 [color.match_hist] threshold: 99.0 [mask.box_blend] type: gaussian distance: 11.0 radius: 5.0 passes: 1 [mask.mask_blend] type: normalized kernel_size: 3 passes: 4 threshold: 4 erosion: 0.0 [scaling.sharpen] method: unsharp_mask amount: 150 radius: 0.3 threshold: 5.0 [writer.ffmpeg] container: mp4 codec: libx264 crf: 23 preset: medium tune: none profile: auto level: auto [writer.gif] fps: 25 loop: 0 palettesize: 256 subrectangles: False [writer.opencv] format: png draw_transparent: False jpg_quality: 75 png_compress_level: 3 [writer.pillow] format: png draw_transparent: False optimize: False gif_interlace: True jpg_quality: 75 png_compress_level: 3 tif_compression: tiff_deflate --------- extract.ini --------- [global] allow_growth: False [align.fan] batch-size: 12 [detect.cv2_dnn] confidence: 50 [detect.mtcnn] minsize: 20 threshold_1: 0.6 threshold_2: 0.7 threshold_3: 0.7 scalefactor: 0.709 batch-size: 8 [detect.s3fd] confidence: 70 batch-size: 4 [mask.unet_dfl] batch-size: 8 [mask.vgg_clear] batch-size: 6 [mask.vgg_obstructed] batch-size: 2 --------- gui.ini --------- [global] fullscreen: False tab: extract options_panel_width: 30 console_panel_height: 20 icon_size: 14 font: default font_size: 9 autosave_last_session: prompt timeout: 120 auto_load_model_stats: True --------- train.ini --------- [global] coverage: 75.0 mask_type: vgg-obstructed mask_blur_kernel: 3 mask_threshold: 4 learn_mask: False icnr_init: False conv_aware_init: False subpixel_upscaling: False reflect_padding: False penalized_mask_loss: True loss_function: mae learning_rate: 5e-05 [model.dfl_h128] lowmem: False [model.dfl_sae] input_size: 128 clipnorm: True architecture: df autoencoder_dims: 0 encoder_dims: 42 decoder_dims: 21 multiscale_decoder: False [model.dlight] features: best details: good output_size: 256 [model.original] lowmem: False [model.realface] input_size: 64 output_size: 128 dense_nodes: 1536 complexity_encoder: 128 complexity_decoder: 512 [model.unbalanced] input_size: 128 lowmem: False clipnorm: True nodes: 1024 complexity_encoder: 128 complexity_decoder_a: 384 complexity_decoder_b: 512 [model.villain] lowmem: True [trainer.original] preview_images: 14 zoom_amount: 5 rotation_range: 10 shift_range: 5 flip_chance: 50 color_lightness: 30 color_ab: 8 color_clahe_chance: 50 color_clahe_max_size: 4

Is this a memory related error? I had to lower batch size when training otherwise I would get a similar error.

Thank you for your help in advance.


Re: ERROR Failed to convert image: Unable to allocate array with shape...

Posted: Wed Apr 01, 2020 8:54 pm
by bryanlyon

This is a memory related error, yes. 4GB of system RAM is really just not enough and is causing problems in this case. You can try switching to a SIngle job (set jobs to 1) and see if that helps, but I think you're likely to need an upgrade to your system RAM before you'll be able to do much with Faceswap.