Co-Speech-Motion-Generation
Co-Speech-Motion-Generation copied to clipboard
Visualise the generated motions时的异常
根据文档配置到Visualise the generated motions
时,产生如下信息:
(csmg) xht@xht-Z590-GAMING-X:~/SourceCode/Co-Speech-Motion-Generation/src$ bash visualise.sh
making video
Traceback (most recent call last):
File "visualise/visualise_generation_res.py", line 36, in
已经把/config
下的json文件和/pose_dataset/ckpt/freeMo.json
文件中的data_root
都修改为了本地路径,在Visualise the generated motions
失败后尝试直接Generate motions for a speaker in test_audios
,提示找不到对应的freeMo.json
文件:
(csmg) xht@xht-Z590-GAMING-X:~/SourceCode/Co-Speech-Motion-Generation/src$ bash infer.sh \
pose_dataset/ckpt/ckpt-99.pth
pose_dataset/ckpt/freeMo.json
test
Enric_Sala /home/xht/SourceCode/Co-Speech-Motion-Generation/src/nets/graph_definition.py:35: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray. [0, 9, 11] Traceback (most recent call last): File "scripts/infer.py", line 150, inmain() File "scripts/infer.py", line 140, in main config = load_JsonConfig(args.config_file) File "/home/xht/SourceCode/Co-Speech-Motion-Generation/src/trainer/config.py", line 15, in load_JsonConfig with open(json_file, 'r') as f: FileNotFoundError: [Errno 2] No such file or directory: 'pose_dataset/ckpt/freeMo.json'
看一下这个json文件的绝对路径是啥,然后在运行命令里替换一下。
谢谢,另外我还有一些地方不太理解
1、在执行bash visualese.sh
后得到的结果是
making video
Traceback (most recent call last):
File "visualise/visualise_generation_res.py", line 36, in
from visualise.draw_utils import *
File "/home/xht/SourceCode/Co-Speech-Motion-Generation/src/visualise/draw_utils.py", line 5, in
os.environ['OMP_NUM_THREADS']=1 #TODO: test
File "/home/xht/.conda/envs/csmg/lib/python3.7/os.py", line 686, in setitem
value = self.encodevalue(value)
File "/home/xht/.conda/envs/csmg/lib/python3.7/os.py", line 756, in encode
raise TypeError("str expected, not %s" % type(value).name)
TypeError: str expected, not int
2、像参数<post_fix>
是指输入什么?
3、参数 <speaker_name>
尝试在命令行输入单独的姓名显示如下
******
Bill_Gates
/home/xht/SourceCode/Co-Speech-Motion-Generation/src/nets/graph_definition.py:35: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.
[0, 9, 11]
init model...
using rnn encoder
non iterative decoder
init dataloader...
['ozfGHONpdTA', '.DS_Store']
Traceback (most recent call last):
File "scripts/infer.py", line 150, in
或者是带文件路径格式的姓名
******
/home/xht/SourceCode/Co-Speech-Motion-Generation/pose_dataset/videos/Bill_Gates
/home/xht/SourceCode/Co-Speech-Motion-Generation/src/nets/graph_definition.py:35: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.
[0, 9, 11]
init model...
using rnn encoder
non iterative decoder
init dataloader...
['palA7Mg_AFs', '6Af6b_wyiwI', 'ozfGHONpdTA', '81Ub0SMxZQo', 'jiUKpX09zo4', 'Jaf-f12Zn7I', '.DS_Store']
Traceback (most recent call last):
File "scripts/infer.py", line 150, in