DL | python argparse

今天跑一篇paper的代码,在MAC的终端 python XXX.py之后这样报错:

usage: synthesize.py [-h] [--batchsize BATCHSIZE] [--iter ITER]
                     [--sfreq SFREQ] [--noutfreq NOUTFREQ] [--lfreq LFREQ]
                     [--gpu GPU] [--runid RUNID]
                     [--dynamics_target DYNAMICS_TARGET]
                     [--appearance_target APPEARANCE_TARGET]
                     [--dynamics_model DYNAMICS_MODEL] --type TYPE
synthesize.py: error: argument --type is required

百度之后解决如下:

python XXX.py --type XXX

猜你喜欢

转载自blog.csdn.net/weixin_41004238/article/details/79934234