我尝试在 google colab上运行我的代码。error: unrecognized arguments但当我尝试调用此函数时,我收到此消息 ( ):
def parse_opts():
parser = argparse.ArgumentParser()
parser.add_argument(
'--root_path',
default='/root/data/ActivityNet',
type=str,
help='Root directory path of data')
parser.add_argument(
'--video_path',
default='video_kinetics_jpg',
type=str,
help='Directory path of Videos')
args = parser.parse_args()
return args
Run Code Online (Sandbox Code Playgroud)
但这失败了,我收到此错误
tester_video.py:错误:无法识别的参数:cifar_comp_20_200_0.01_0.1 20 10 0.01 0.1
我尝试使用Easydict但它似乎不起作用