Object Detection toolkit based on PaddlePaddle. It supports object detection, instance segmentation, multiple object tracking and real-time multi-person keypoint detection.
PaddleDetection team appreciate any suggestion or problem you delivered~
运行代码:
from paddlespeech.cli import TTSExecutor
import time
import paddle
tts_executor = TTSExecutor()
time_1 = time.time()
wav_file = tts_executor(
text='对数据集进行预处理',
output='1.wav',
am='fastspeech2_csmsc',
am_config=None,
am_ckpt=None,
am_stat=None,
spk_id=0,
phones_dict=None,
tones_dict=None,
speaker_dict=None,
voc='pwgan_csmsc',
voc_config=None,
voc_ckpt=None,
voc_stat=None,
lang='zh',
device=paddle.get_device())
time_2 = time.time()
print("time of first time:", time_2-time_1)
wav_file = tts_executor(
text='对数据集进行预处理222的地方安身的地方',
output='2.wav',
am='fastspeech2_csmsc',
am_config=None,
am_ckpt=None,
am_stat=None,
spk_id=0,
phones_dict=None,
tones_dict=None,
speaker_dict=None,
voc='pwgan_csmsc',
voc_config=None,
voc_ckpt=None,
voc_stat=None,
lang='zh',
device=paddle.get_device())
print("time of second time:", time.time()-time_2)
运行log:
C:\Users\admin\Desktop\PaddleGPU\venv\Scripts\python.exe C:/Users/admin/Desktop/PaddleGPU/main.py
[2022-03-22 16:58:16,434] [ INFO] - File C:\Users\admin.paddlespeech\models\fastspeech2_csmsc-zh\fastspeech2_nosil_baker_ckpt_0.4.zip md5 checking...
[2022-03-22 16:58:17,185] [ INFO] - Use pretrained model stored in: C:\Users\admin.paddlespeech\models\fastspeech2_csmsc-zh\fastspeech2_nosil_baker_ckpt_0.4
[2022-03-22 16:58:17,185] [ INFO] - C:\Users\admin.paddlespeech\models\fastspeech2_csmsc-zh\fastspeech2_nosil_baker_ckpt_0.4
[2022-03-22 16:58:17,185] [ INFO] - C:\Users\admin.paddlespeech\models\fastspeech2_csmsc-zh\fastspeech2_nosil_baker_ckpt_0.4\default.yaml
[2022-03-22 16:58:17,185] [ INFO] - C:\Users\admin.paddlespeech\models\fastspeech2_csmsc-zh\fastspeech2_nosil_baker_ckpt_0.4\snapshot_iter_76000.pdz
[2022-03-22 16:58:17,185] [ INFO] - File C:\Users\admin.paddlespeech\models\pwgan_csmsc-zh\pwg_baker_ckpt_0.4.zip md5 checking...
self.phones_dict: C:\Users\admin.paddlespeech\models\fastspeech2_csmsc-zh\fastspeech2_nosil_baker_ckpt_0.4\phone_id_map.txt
self.phones_dict: C:\Users\admin.paddlespeech\models\fastspeech2_csmsc-zh\fastspeech2_nosil_baker_ckpt_0.4\phone_id_map.txt
[2022-03-22 16:58:17,210] [ INFO] - Use pretrained model stored in: C:\Users\admin.paddlespeech\models\pwgan_csmsc-zh\pwg_baker_ckpt_0.4
[2022-03-22 16:58:17,210] [ INFO] - C:\Users\admin.paddlespeech\models\pwgan_csmsc-zh\pwg_baker_ckpt_0.4
[2022-03-22 16:58:17,210] [ INFO] - C:\Users\admin.paddlespeech\models\pwgan_csmsc-zh\pwg_baker_ckpt_0.4\pwg_default.yaml
[2022-03-22 16:58:17,210] [ INFO] - C:\Users\admin.paddlespeech\models\pwgan_csmsc-zh\pwg_baker_ckpt_0.4\pwg_snapshot_iter_400000.pdz
vocab_size: 268
frontend done!
W0322 16:58:17.252873 7164 device_context.cc:447] Please NOTE: device: 0, GPU Compute Capability: 8.6, Driver API Version: 11.6, Runtime API Version: 11.2
W0322 16:58:17.262846 7164 device_context.cc:465] device: 0, cuDNN Version: 8.2.
encoder_type is transformer
decoder_type is transformer
C:\Users\admin\Desktop\PaddleGPU\venv\lib\site-packages\paddle\framework\io.py:415: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
if isinstance(obj, collections.Iterable) and not isinstance(obj, (
acoustic model done!
Building prefix dict from the default dictionary ...
[2022-03-22 16:58:21] [DEBUG] [init.py:113] Building prefix dict from the default dictionary ...
Loading model from cache C:\Users\admin\AppData\Local\Temp\jieba.cache
[2022-03-22 16:58:21] [DEBUG] [init.py:132] Loading model from cache C:\Users\admin\AppData\Local\Temp\jieba.cache
voc done!
Loading model cost 0.440 seconds.
[2022-03-22 16:58:21] [DEBUG] [init.py:164] Loading model cost 0.440 seconds.
Prefix dict has been built successfully.
[2022-03-22 16:58:21] [DEBUG] [init.py:166] Prefix dict has been built successfully.
C:\Users\admin\Desktop\PaddleGPU\venv\lib\site-packages\paddle\fluid\dygraph\math_op_patch.py:251: 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
warnings.warn(
time of first time: 6.327423810958862
[2022-03-22 16:58:22,761] [ INFO] - File C:\Users\admin.paddlespeech\models\fastspeech2_csmsc-zh\fastspeech2_nosil_baker_ckpt_0.4.zip md5 checking...
[2022-03-22 16:58:23,508] [ INFO] - Use pretrained model stored in: C:\Users\admin.paddlespeech\models\fastspeech2_csmsc-zh\fastspeech2_nosil_baker_ckpt_0.4
[2022-03-22 16:58:23,508] [ INFO] - C:\Users\admin.paddlespeech\models\fastspeech2_csmsc-zh\fastspeech2_nosil_baker_ckpt_0.4
[2022-03-22 16:58:23,508] [ INFO] - C:\Users\admin.paddlespeech\models\fastspeech2_csmsc-zh\fastspeech2_nosil_baker_ckpt_0.4\default.yaml
[2022-03-22 16:58:23,508] [ INFO] - C:\Users\admin.paddlespeech\models\fastspeech2_csmsc-zh\fastspeech2_nosil_baker_ckpt_0.4\snapshot_iter_76000.pdz
[2022-03-22 16:58:23,508] [ INFO] - File C:\Users\admin.paddlespeech\models\pwgan_csmsc-zh\pwg_baker_ckpt_0.4.zip md5 checking...
self.phones_dict: C:\Users\admin.paddlespeech\models\fastspeech2_csmsc-zh\fastspeech2_nosil_baker_ckpt_0.4\phone_id_map.txt
self.phones_dict: C:\Users\admin.paddlespeech\models\fastspeech2_csmsc-zh\fastspeech2_nosil_baker_ckpt_0.4\phone_id_map.txt
[2022-03-22 16:58:23,533] [ INFO] - Use pretrained model stored in: C:\Users\admin.paddlespeech\models\pwgan_csmsc-zh\pwg_baker_ckpt_0.4
[2022-03-22 16:58:23,533] [ INFO] - C:\Users\admin.paddlespeech\models\pwgan_csmsc-zh\pwg_baker_ckpt_0.4
[2022-03-22 16:58:23,533] [ INFO] - C:\Users\admin.paddlespeech\models\pwgan_csmsc-zh\pwg_baker_ckpt_0.4\pwg_default.yaml
[2022-03-22 16:58:23,533] [ INFO] - C:\Users\admin.paddlespeech\models\pwgan_csmsc-zh\pwg_baker_ckpt_0.4\pwg_snapshot_iter_400000.pdz
vocab_size: 268
frontend done!
encoder_type is transformer
decoder_type is transformer
acoustic model done!
voc done!
time of second time: 3.6099960803985596
Process finished with exit code 0
Checklist:
查找历史相关issue寻求解答/I have searched related issues but cannot get the expected help.
A clear and concise description of what the bug is.
复现/Reproduction
您使用的命令是?/What command or script did you run?
请填写命令/A placeholder for the command.
您是否更改过代码或配置文件?您是否理解您所更改的内容?还请您提供所更改的部分代码。/Did you make any modifications on the code or config? Did you understand what you have modified? Please provide the codes that you modified.
您使用的数据集是?/What dataset did you use?
请提供您出现的报错信息及相关log。/Please provide the error messages or relevant log information.
环境/Environment
请提供您使用的Paddle和PaddleDetection的版本号/Please provide the version of Paddle and PaddleDetection you use:
paddlepaddle_gpu-2.2.2.post112-cp39-cp39-
如您在使用PaddleDetection的同时还在使用其他产品,如PaddleServing、PaddleInference等,请您提供其版本号/ Please provide the version of any other related tools/products used, such as the version of PaddleServing and etc:
请提供您使用的操作系统信息,如Linux/Windows/MacOS /Please provide the OS information, e.g., Linux:
WIN10
请问您使用的Python版本是?/ Please provide the version of Python you used.
Python3.9
请问您使用的CUDA/cuDNN的版本号是?/ Please provide the version of CUDA/cuDNN you used.
CUDA 11.2 cudnn-11.3-windows-x64-v8.2.1.32
PaddleDetection team appreciate any suggestion or problem you delivered~ 运行代码: from paddlespeech.cli import TTSExecutor import time import paddle tts_executor = TTSExecutor() time_1 = time.time() wav_file = tts_executor( text='对数据集进行预处理', output='1.wav', am='fastspeech2_csmsc', am_config=None, am_ckpt=None, am_stat=None, spk_id=0, phones_dict=None, tones_dict=None, speaker_dict=None, voc='pwgan_csmsc', voc_config=None, voc_ckpt=None, voc_stat=None, lang='zh', device=paddle.get_device()) time_2 = time.time() print("time of first time:", time_2-time_1) wav_file = tts_executor( text='对数据集进行预处理222的地方安身的地方', output='2.wav', am='fastspeech2_csmsc', am_config=None, am_ckpt=None, am_stat=None, spk_id=0, phones_dict=None, tones_dict=None, speaker_dict=None, voc='pwgan_csmsc', voc_config=None, voc_ckpt=None, voc_stat=None, lang='zh', device=paddle.get_device()) print("time of second time:", time.time()-time_2)
运行log: C:\Users\admin\Desktop\PaddleGPU\venv\Scripts\python.exe C:/Users/admin/Desktop/PaddleGPU/main.py [2022-03-22 16:58:16,434] [ INFO] - File C:\Users\admin.paddlespeech\models\fastspeech2_csmsc-zh\fastspeech2_nosil_baker_ckpt_0.4.zip md5 checking... [2022-03-22 16:58:17,185] [ INFO] - Use pretrained model stored in: C:\Users\admin.paddlespeech\models\fastspeech2_csmsc-zh\fastspeech2_nosil_baker_ckpt_0.4 [2022-03-22 16:58:17,185] [ INFO] - C:\Users\admin.paddlespeech\models\fastspeech2_csmsc-zh\fastspeech2_nosil_baker_ckpt_0.4 [2022-03-22 16:58:17,185] [ INFO] - C:\Users\admin.paddlespeech\models\fastspeech2_csmsc-zh\fastspeech2_nosil_baker_ckpt_0.4\default.yaml [2022-03-22 16:58:17,185] [ INFO] - C:\Users\admin.paddlespeech\models\fastspeech2_csmsc-zh\fastspeech2_nosil_baker_ckpt_0.4\snapshot_iter_76000.pdz [2022-03-22 16:58:17,185] [ INFO] - File C:\Users\admin.paddlespeech\models\pwgan_csmsc-zh\pwg_baker_ckpt_0.4.zip md5 checking... self.phones_dict: C:\Users\admin.paddlespeech\models\fastspeech2_csmsc-zh\fastspeech2_nosil_baker_ckpt_0.4\phone_id_map.txt self.phones_dict: C:\Users\admin.paddlespeech\models\fastspeech2_csmsc-zh\fastspeech2_nosil_baker_ckpt_0.4\phone_id_map.txt [2022-03-22 16:58:17,210] [ INFO] - Use pretrained model stored in: C:\Users\admin.paddlespeech\models\pwgan_csmsc-zh\pwg_baker_ckpt_0.4 [2022-03-22 16:58:17,210] [ INFO] - C:\Users\admin.paddlespeech\models\pwgan_csmsc-zh\pwg_baker_ckpt_0.4 [2022-03-22 16:58:17,210] [ INFO] - C:\Users\admin.paddlespeech\models\pwgan_csmsc-zh\pwg_baker_ckpt_0.4\pwg_default.yaml [2022-03-22 16:58:17,210] [ INFO] - C:\Users\admin.paddlespeech\models\pwgan_csmsc-zh\pwg_baker_ckpt_0.4\pwg_snapshot_iter_400000.pdz vocab_size: 268 frontend done! W0322 16:58:17.252873 7164 device_context.cc:447] Please NOTE: device: 0, GPU Compute Capability: 8.6, Driver API Version: 11.6, Runtime API Version: 11.2 W0322 16:58:17.262846 7164 device_context.cc:465] device: 0, cuDNN Version: 8.2. encoder_type is transformer decoder_type is transformer C:\Users\admin\Desktop\PaddleGPU\venv\lib\site-packages\paddle\framework\io.py:415: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working if isinstance(obj, collections.Iterable) and not isinstance(obj, ( acoustic model done! Building prefix dict from the default dictionary ... [2022-03-22 16:58:21] [DEBUG] [init.py:113] Building prefix dict from the default dictionary ... Loading model from cache C:\Users\admin\AppData\Local\Temp\jieba.cache [2022-03-22 16:58:21] [DEBUG] [init.py:132] Loading model from cache C:\Users\admin\AppData\Local\Temp\jieba.cache voc done! Loading model cost 0.440 seconds. [2022-03-22 16:58:21] [DEBUG] [init.py:164] Loading model cost 0.440 seconds. Prefix dict has been built successfully. [2022-03-22 16:58:21] [DEBUG] [init.py:166] Prefix dict has been built successfully. C:\Users\admin\Desktop\PaddleGPU\venv\lib\site-packages\paddle\fluid\dygraph\math_op_patch.py:251: 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 warnings.warn( time of first time: 6.327423810958862 [2022-03-22 16:58:22,761] [ INFO] - File C:\Users\admin.paddlespeech\models\fastspeech2_csmsc-zh\fastspeech2_nosil_baker_ckpt_0.4.zip md5 checking... [2022-03-22 16:58:23,508] [ INFO] - Use pretrained model stored in: C:\Users\admin.paddlespeech\models\fastspeech2_csmsc-zh\fastspeech2_nosil_baker_ckpt_0.4 [2022-03-22 16:58:23,508] [ INFO] - C:\Users\admin.paddlespeech\models\fastspeech2_csmsc-zh\fastspeech2_nosil_baker_ckpt_0.4 [2022-03-22 16:58:23,508] [ INFO] - C:\Users\admin.paddlespeech\models\fastspeech2_csmsc-zh\fastspeech2_nosil_baker_ckpt_0.4\default.yaml [2022-03-22 16:58:23,508] [ INFO] - C:\Users\admin.paddlespeech\models\fastspeech2_csmsc-zh\fastspeech2_nosil_baker_ckpt_0.4\snapshot_iter_76000.pdz [2022-03-22 16:58:23,508] [ INFO] - File C:\Users\admin.paddlespeech\models\pwgan_csmsc-zh\pwg_baker_ckpt_0.4.zip md5 checking... self.phones_dict: C:\Users\admin.paddlespeech\models\fastspeech2_csmsc-zh\fastspeech2_nosil_baker_ckpt_0.4\phone_id_map.txt self.phones_dict: C:\Users\admin.paddlespeech\models\fastspeech2_csmsc-zh\fastspeech2_nosil_baker_ckpt_0.4\phone_id_map.txt [2022-03-22 16:58:23,533] [ INFO] - Use pretrained model stored in: C:\Users\admin.paddlespeech\models\pwgan_csmsc-zh\pwg_baker_ckpt_0.4 [2022-03-22 16:58:23,533] [ INFO] - C:\Users\admin.paddlespeech\models\pwgan_csmsc-zh\pwg_baker_ckpt_0.4 [2022-03-22 16:58:23,533] [ INFO] - C:\Users\admin.paddlespeech\models\pwgan_csmsc-zh\pwg_baker_ckpt_0.4\pwg_default.yaml [2022-03-22 16:58:23,533] [ INFO] - C:\Users\admin.paddlespeech\models\pwgan_csmsc-zh\pwg_baker_ckpt_0.4\pwg_snapshot_iter_400000.pdz vocab_size: 268 frontend done! encoder_type is transformer decoder_type is transformer acoustic model done! voc done! time of second time: 3.6099960803985596
Process finished with exit code 0
Checklist:
描述问题/Describe the bug
A clear and concise description of what the bug is.
复现/Reproduction
您是否更改过代码或配置文件?您是否理解您所更改的内容?还请您提供所更改的部分代码。/Did you make any modifications on the code or config? Did you understand what you have modified? Please provide the codes that you modified.
您使用的数据集是?/What dataset did you use?
请提供您出现的报错信息及相关log。/Please provide the error messages or relevant log information.
环境/Environment
请提供您使用的Paddle和PaddleDetection的版本号/Please provide the version of Paddle and PaddleDetection you use: paddlepaddle_gpu-2.2.2.post112-cp39-cp39-
如您在使用PaddleDetection的同时还在使用其他产品,如PaddleServing、PaddleInference等,请您提供其版本号/ Please provide the version of any other related tools/products used, such as the version of PaddleServing and etc:
请提供您使用的操作系统信息,如Linux/Windows/MacOS /Please provide the OS information, e.g., Linux: WIN10
请问您使用的Python版本是?/ Please provide the version of Python you used. Python3.9
请问您使用的CUDA/cuDNN的版本号是?/ Please provide the version of CUDA/cuDNN you used. CUDA 11.2 cudnn-11.3-windows-x64-v8.2.1.32
如果您的issue是关于安装或环境,您可以先查询安装文档尝试解决~
If your issue looks like an installation issue / environment issue, please first try to solve it yourself with the instructions in https://github.com/PaddlePaddle/PaddleDetection/blob/release/2.1/docs/tutorials/INSTALL.md