JiehangXie/PaddleBoBo

FileNotFoundError: [WinError 2] 系统找不到指定的文件。

Closed this issue · 1 comments

(myenv) E:\PaddleBoBo>python general_demo.py --human ./file/input/test.mp4 --output ../output.mp4 --text 你好,我叫李仁杰
C:\Users\Admin\miniconda3\envs\myenv\lib\site-packages\librosa\core\constantq.py:1059: DeprecationWarning: np.complex is a deprecated alias for the builtin complex. To silence this warning, use complex by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.complex128 here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
dtype=np.complex,
[09/05 23:54:13] ppgan INFO: Found C:\Users\Admin.cache\ppgan\GPEN-512.pdparams
W0905 23:54:14.140556 8472 gpu_resources.cc:61] Please NOTE: device: 0, GPU Compute Capability: 7.5, Driver API Version: 12.2, Runtime API Version: 11.7
W0905 23:54:14.146562 8472 gpu_resources.cc:91] device: 0, cuDNN Version: 8.4.
C:\Users\Admin\miniconda3\envs\myenv\lib\site-packages\paddle\fluid\dygraph\layers.py:1517: UserWarning: Skip loading for generator.noises.noise_0. generator.noises.noise_0 is not found in the provided dict.
warnings.warn(("Skip loading for {}. ".format(key) + str(err)))
C:\Users\Admin\miniconda3\envs\myenv\lib\site-packages\paddle\fluid\dygraph\layers.py:1517: UserWarning: Skip loading for generator.noises.noise_1. generator.noises.noise_1 is not found in the provided dict.
warnings.warn(("Skip loading for {}. ".format(key) + str(err)))
C:\Users\Admin\miniconda3\envs\myenv\lib\site-packages\paddle\fluid\dygraph\layers.py:1517: UserWarning: Skip loading for generator.noises.noise_2. generator.noises.noise_2 is not found in the provided dict.
warnings.warn(("Skip loading for {}. ".format(key) + str(err)))
C:\Users\Admin\miniconda3\envs\myenv\lib\site-packages\paddle\fluid\dygraph\layers.py:1517: UserWarning: Skip loading for generator.noises.noise_3. generator.noises.noise_3 is not found in the provided dict.
warnings.warn(("Skip loading for {}. ".format(key) + str(err)))
C:\Users\Admin\miniconda3\envs\myenv\lib\site-packages\paddle\fluid\dygraph\layers.py:1517: UserWarning: Skip loading for generator.noises.noise_4. generator.noises.noise_4 is not found in the provided dict.
warnings.warn(("Skip loading for {}. ".format(key) + str(err)))
C:\Users\Admin\miniconda3\envs\myenv\lib\site-packages\paddle\fluid\dygraph\layers.py:1517: UserWarning: Skip loading for generator.noises.noise_5. generator.noises.noise_5 is not found in the provided dict.
warnings.warn(("Skip loading for {}. ".format(key) + str(err)))
C:\Users\Admin\miniconda3\envs\myenv\lib\site-packages\paddle\fluid\dygraph\layers.py:1517: UserWarning: Skip loading for generator.noises.noise_6. generator.noises.noise_6 is not found in the provided dict.
warnings.warn(("Skip loading for {}. ".format(key) + str(err)))
C:\Users\Admin\miniconda3\envs\myenv\lib\site-packages\paddle\fluid\dygraph\layers.py:1517: UserWarning: Skip loading for generator.noises.noise_7. generator.noises.noise_7 is not found in the provided dict.
warnings.warn(("Skip loading for {}. ".format(key) + str(err)))
C:\Users\Admin\miniconda3\envs\myenv\lib\site-packages\paddle\fluid\dygraph\layers.py:1517: UserWarning: Skip loading for generator.noises.noise_8. generator.noises.noise_8 is not found in the provided dict.
warnings.warn(("Skip loading for {}. ".format(key) + str(err)))
C:\Users\Admin\miniconda3\envs\myenv\lib\site-packages\paddle\fluid\dygraph\layers.py:1517: UserWarning: Skip loading for generator.noises.noise_9. generator.noises.noise_9 is not found in the provided dict.
warnings.warn(("Skip loading for {}. ".format(key) + str(err)))
C:\Users\Admin\miniconda3\envs\myenv\lib\site-packages\paddle\fluid\dygraph\layers.py:1517: UserWarning: Skip loading for generator.noises.noise_10. generator.noises.noise_10 is not found in the provided dict.
warnings.warn(("Skip loading for {}. ".format(key) + str(err)))
C:\Users\Admin\miniconda3\envs\myenv\lib\site-packages\paddle\fluid\dygraph\layers.py:1517: UserWarning: Skip loading for generator.noises.noise_11. generator.noises.noise_11 is not found in the provided dict.
warnings.warn(("Skip loading for {}. ".format(key) + str(err)))
C:\Users\Admin\miniconda3\envs\myenv\lib\site-packages\paddle\fluid\dygraph\layers.py:1517: UserWarning: Skip loading for generator.noises.noise_12. generator.noises.noise_12 is not found in the provided dict.
warnings.warn(("Skip loading for {}. ".format(key) + str(err)))
C:\Users\Admin\miniconda3\envs\myenv\lib\site-packages\paddle\fluid\dygraph\layers.py:1517: UserWarning: Skip loading for generator.noises.noise_13. generator.noises.noise_13 is not found in the provided dict.
warnings.warn(("Skip loading for {}. ".format(key) + str(err)))
C:\Users\Admin\miniconda3\envs\myenv\lib\site-packages\paddle\fluid\dygraph\layers.py:1517: UserWarning: Skip loading for generator.noises.noise_14. generator.noises.noise_14 is not found in the provided dict.
warnings.warn(("Skip loading for {}. ".format(key) + str(err)))
[2023-09-05 23:54:14,332] [ INFO] - File C:\Users\Admin.paddlespeech\models\fastspeech2_csmsc-zh\fastspeech2_nosil_baker_ckpt_0.4.zip md5 checking...
[2023-09-05 23:54:15,362] [ INFO] - File C:\Users\Admin.paddlespeech\models\pwgan_csmsc-zh\pwg_baker_ckpt_0.4.zip md5 checking...
encoder_type is transformer
decoder_type is transformer
Building prefix dict from the default dictionary ...
[2023-09-05 23:54:20] [DEBUG] [init.py:113] Building prefix dict from the default dictionary ...
Loading model from cache C:\Users\Admin\AppData\Local\Temp\jieba.cache
[2023-09-05 23:54:20] [DEBUG] [init.py:133] Loading model from cache C:\Users\Admin\AppData\Local\Temp\jieba.cache
Loading model cost 0.462 seconds.
[2023-09-05 23:54:21] [DEBUG] [init.py:165] Loading model cost 0.462 seconds.
Prefix dict has been built successfully.
[2023-09-05 23:54:21] [DEBUG] [init.py:166] Prefix dict has been built successfully.
C:\Users\Admin\miniconda3\envs\myenv\lib\site-packages\paddle\fluid\dygraph\math_op_patch.py:277: UserWarning: The dtype of left and right variables are not the same, left dtype is paddle.int64, but right dtype is paddle.int32, the right dtype will convert to paddle.int64
.format(lhs_dtype, rhs_dtype, lhs_dtype))
Reading video frames...
Number of frames available for inference: 300
C:\Users\Admin\miniconda3\envs\myenv\lib\site-packages\librosa\util\utils.py:2099: DeprecationWarning: np.float is a deprecated alias for the builtin float. To silence this warning, use float by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64 here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
np.dtype(np.float): np.complex,
C:\Users\Admin\miniconda3\envs\myenv\lib\site-packages\librosa\util\utils.py:2099: DeprecationWarning: np.complex is a deprecated alias for the builtin complex. To silence this warning, use complex by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.complex128 here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
np.dtype(np.float): np.complex,
Length of mel chunks: 44
[2023-09-05 23:54:23,756] [ INFO] - unique_endpoints {''}
[2023-09-05 23:54:23,756] [ INFO] - Found C:\Users\Admin/.cache/paddle/hapi/weights\wav2lip_hq.pdparams
Model loaded
0%| | 0/3 [00:00<?, ?it/s][2023-09-05 23:54:23,929] [ INFO] - unique_endpoints {''}
[2023-09-05 23:54:23,930] [ INFO] - Found C:\Users\Admin/.cache/paddle/hapi/weights\s3fd_paddle.pdparams
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 22/22 [00:02<00:00, 7.93it/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:12<00:00, 4.12s/it]
Traceback (most recent call last):
File "general_demo.py", line 18, in
video = wav2lip(args.human,wavfile,args.output) #将音频合成到唇形视频
File "E:\PaddleBoBo\PaddleTools\GAN.py", line 13, in wav2lip
wav2lip_predictor.run(input_video, input_audio, output)
File "C:\Users\Admin\miniconda3\envs\myenv\lib\site-packages\ppgan\apps\wav2lip_predictor.py", line 290, in run
subprocess.call(command, shell=platform.system() != 'Windows')
File "C:\Users\Admin\miniconda3\envs\myenv\lib\subprocess.py", line 317, in call
with Popen(*popenargs, **kwargs) as p:
File "C:\Users\Admin\miniconda3\envs\myenv\lib\subprocess.py", line 769, in init
restore_signals, start_new_session)
File "C:\Users\Admin\miniconda3\envs\myenv\lib\subprocess.py", line 1172, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] 系统找不到指定的文件。

解决方式:
conda install ffmpeg