其他分享
首页 > 其他分享> > Real_Time_Image_Animation error log

Real_Time_Image_Animation error log

作者:互联网


(py37-cuda10) C:\face\Real_Time_Image_Animation>python image_animation.py -i Inputs/leiya2.jpg -c checkpoints/vox-cpk.pth.tar -v doudou2.mp4
C:\Users\gaona\.conda\envs\py37-cuda10\lib\site-packages\torch\_masked\__init__.py:223: UserWarning: Failed to initialize NumPy: No module named 'numpy.core._multiarray_umath' (Triggered internally at C:\cb\pytorch_1000000000000\work\torch\csrc\utils\tensor_numpy.cpp:68.)
example_input = torch.tensor([[-3, -2, -1], [0, 1, 2]])
C:\face\Real_Time_Image_Animation\demo.py:2: UserWarning:
This call to matplotlib.use() has no effect because the backend has already
been chosen; matplotlib.use() must be called *before* pylab, matplotlib.pyplot,
or matplotlib.backends is imported for the first time.

The backend was *originally* set to 'TkAgg' by the following code:
File "image_animation.py", line 4, in <module>
from animate import normalize_kp
File "C:\face\Real_Time_Image_Animation\animate.py", line 7, in <module>
from frames_dataset import PairedDataset
File "C:\face\Real_Time_Image_Animation\frames_dataset.py", line 2, in <module>
from skimage import io, img_as_float32
File "C:\Users\gaona\.conda\envs\py37-cuda10\lib\site-packages\skimage\io\__init__.py", line 15, in <module>
reset_plugins()
File "C:\Users\gaona\.conda\envs\py37-cuda10\lib\site-packages\skimage\io\manage_plugins.py", line 95, in reset_plugins
_load_preferred_plugins()
File "C:\Users\gaona\.conda\envs\py37-cuda10\lib\site-packages\skimage\io\manage_plugins.py", line 75, in _load_preferred_plugins
_set_plugin(p_type, preferred_plugins['all'])
File "C:\Users\gaona\.conda\envs\py37-cuda10\lib\site-packages\skimage\io\manage_plugins.py", line 87, in _set_plugin
use_plugin(plugin, kind=plugin_type)
File "C:\Users\gaona\.conda\envs\py37-cuda10\lib\site-packages\skimage\io\manage_plugins.py", line 258, in use_plugin
_load(name)
File "C:\Users\gaona\.conda\envs\py37-cuda10\lib\site-packages\skimage\io\manage_plugins.py", line 302, in _load
fromlist=[modname])
File "C:\Users\gaona\.conda\envs\py37-cuda10\lib\site-packages\skimage\io\_plugins\matplotlib_plugin.py", line 4, in <module>
import matplotlib.pyplot as plt
File "C:\Users\gaona\.conda\envs\py37-cuda10\lib\site-packages\matplotlib\pyplot.py", line 71, in <module>
from matplotlib.backends import pylab_setup
File "C:\Users\gaona\.conda\envs\py37-cuda10\lib\site-packages\matplotlib\backends\__init__.py", line 16, in <module>
line for line in traceback.format_stack()


matplotlib.use('Agg')
[INFO] loading source image and checkpoint...
ffmpeg version git-2020-08-31-4a11a6f Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 10.2.1 (GCC) 20200805
configuration: --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-libsrt --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-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm --enable-librav1e --enable-libsvtav1 --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
libavutil 56. 58.100 / 56. 58.100
libavcodec 58.101.101 / 58.101.101
libavformat 58. 51.101 / 58. 51.101
libavdevice 58. 11.101 / 58. 11.101
libavfilter 7. 87.100 / 7. 87.100
libswscale 5. 8.100 / 5. 8.100
libswresample 3. 8.100 / 3. 8.100
libpostproc 55. 8.100 / 55. 8.100
Input #0, avi, from '256_256.avi':
Metadata:
encoder : Lavf58.29.100
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: mjpeg (Baseline) (MJPG / 0x47504A4D), yuvj420p(pc, bt470bg/unknown/unknown), 256x256, 30 fps, 30 tbr, 30 tbn, 30 tbc
Input #1, mp3, from 'doudou2.mp3':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
description : Packed by Bilibili XCoder v2.0.2
encoder : Lavf58.41.100
Duration: 00:00:58.08, start: 0.023021, bitrate: 128 kb/s
Stream #1:0: Audio: mp3, 48000 Hz, stereo, fltp, 128 kb/s
Metadata:
encoder : Lavc58.75
File '256_256_2.mp4' already exists. Overwrite? [y/N] y
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
Stream #1:0 -> #0:1 (mp3 (mp3float) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 000001fa0d8559c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 000001fa0d8559c0] profile High, level 1.3, 4:2:0, 8-bit
[libx264 @ 000001fa0d8559c0] 264 - core 161 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - 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=8 lookahead_threads=1 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 '256_256_2.mp4':
Metadata:
encoder : Lavf58.51.101
Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuvj420p(pc, progressive), 256x256, q=-1--1, 30 fps, 15360 tbn, 30 tbc
Metadata:
encoder : Lavc58.101.101 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s
Metadata:
encoder : Lavc58.101.101 aac
[avi @ 000001fa0d84f040] Packet corrupt (stream = 0, dts = 1729).te= 303.1kbits/s speed=27.7x
[mjpeg @ 000001fa0d857240] overread 8
[mjpeg @ 000001fa0d857240] EOI missing, emulating
frame= 1730 fps=835 q=-1.0 Lsize= 2278kB time=00:00:58.04 bitrate= 321.4kbits/s speed= 28x
video:1305kB audio:910kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.863137%
[libx264 @ 000001fa0d8559c0] frame I:7 Avg QP:22.08 size: 6278
[libx264 @ 000001fa0d8559c0] frame P:441 Avg QP:24.68 size: 2027
[libx264 @ 000001fa0d8559c0] frame B:1282 Avg QP:26.63 size: 310
[libx264 @ 000001fa0d8559c0] consecutive B-frames: 0.6% 1.2% 2.1% 96.2%
[libx264 @ 000001fa0d8559c0] mb I I16..4: 6.6% 85.6% 7.8%
[libx264 @ 000001fa0d8559c0] mb P I16..4: 2.3% 12.5% 1.1% P16..4: 27.7% 25.5% 13.6% 0.0% 0.0% skip:17.3%
[libx264 @ 000001fa0d8559c0] mb B I16..4: 0.2% 0.3% 0.0% B16..8: 35.3% 7.4% 0.9% direct: 1.2% skip:54.8% L0:39.2% L1:46.9% BI:13.9%
[libx264 @ 000001fa0d8559c0] 8x8 transform intra:78.2% inter:68.4%
[libx264 @ 000001fa0d8559c0] coded y,uvDC,uvAC intra: 69.4% 76.9% 10.4% inter: 10.7% 9.2% 0.2%
[libx264 @ 000001fa0d8559c0] i16 v,h,dc,p: 51% 16% 16% 17%
[libx264 @ 000001fa0d8559c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 18% 20% 3% 5% 8% 4% 7% 4%
[libx264 @ 000001fa0d8559c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 19% 12% 4% 9% 11% 7% 6% 4%
[libx264 @ 000001fa0d8559c0] i8c dc,h,v,p: 49% 15% 28% 8%
[libx264 @ 000001fa0d8559c0] Weighted P-Frames: Y:5.4% UV:0.0%
[libx264 @ 000001fa0d8559c0] ref P L0: 58.7% 18.2% 18.2% 4.8% 0.2%
[libx264 @ 000001fa0d8559c0] ref B L0: 92.4% 6.4% 1.2%
[libx264 @ 000001fa0d8559c0] ref B L1: 97.8% 2.2%
[libx264 @ 000001fa0d8559c0] kb/s:185.24
[aac @ 000001fa0d885d00] Qavg: 385.408
C:\Users\gaona\.conda\envs\py37-cuda10\lib\site-packages\skimage\transform\_warps.py:105: UserWarning: The default mode, 'constant', will be changed to 'reflect' in skimage 0.15.
warn("The default mode, 'constant', will be changed to 'reflect' in "
C:\Users\gaona\.conda\envs\py37-cuda10\lib\site-packages\skimage\transform\_warps.py:110: UserWarning: Anti-aliasing will be enabled by default in skimage 0.15 to avoid aliasing artifacts when down-sampling images.
warn("Anti-aliasing will be enabled by default in skimage 0.15 to "
C:\face\Real_Time_Image_Animation\demo.py:27: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
config = yaml.load(f)
C:\Users\gaona\.conda\envs\py37-cuda10\lib\site-packages\torch\functional.py:568: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at C:\cb\pytorch_1000000000000\work\aten\src\ATen\native\TensorShape.cpp:2228.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
[INFO] Loading video from the given path
这个视频的长宽是:==================================> (256, 256)
OpenCV: FFMPEG: tag 0x58564944/'DIVX' is not supported with codec id 12 and format 'mp4 / MP4 (MPEG-4 Part 14)'
OpenCV: FFMPEG: fallback to use tag 0x7634706d/'mp4v'
Traceback (most recent call last):
File "image_animation.py", line 126, in <module>
source = torch.tensor(source_image[np.newaxis].astype(np.float32)).permute(0, 3, 1, 2)
RuntimeError: Could not infer dtype of numpy.float32

(py37-cuda10) C:\face\Real_Time_Image_Animation>

标签:Real,enable,log,--,Image,py,py37,000001fa0d8559c0,libx264
来源: https://www.cnblogs.com/0banana0/p/16322707.html