parser.add_argument('--model', type=str, default='val') 报错
Opened this issue · 2 comments
jwc19890114 commented
parser.add_argument('--model', type=str, default='val') # Select the mode before conversion, save it in the train folder and select train
在使用juypter运行的时候,在这里报错,是不是少下了什么文件啊
usage: ipykernel_launcher.py [-h] [--model MODEL]
ipykernel_launcher.py: error: unrecognized arguments: -f C:\Users\jwc19\AppData\Roaming\jupyter\runtime\kernel-e495476c-1a41-4d8b-bbdf-1ce8e384693c.json
An exception has occurred, use %tb to see the full traceback.
SystemExit: 2
Different-Tom commented
你可以尝试直接python运行即可,只要环境还有python版本没问题即可
…------------------ 原始邮件 ------------------
发件人: "754269850/MedMNIST-NPY-to-JPG-PNG" <notifications@github.com>;
发送时间: 2021年1月5日(星期二) 下午2:59
收件人: "754269850/MedMNIST-NPY-to-JPG-PNG"<MedMNIST-NPY-to-JPG-PNG@noreply.github.com>;
抄送: "Subscribed"<subscribed@noreply.github.com>;
主题: [754269850/MedMNIST-NPY-to-JPG-PNG] parser.add_argument('--model', type=str, default='val') 报错 (#1)
parser.add_argument('--model', type=str, default='val') # Select the mode before conversion, save it in the train folder and select train
在使用juypter运行的时候,在这里报错,是不是少下了什么文件啊
usage: ipykernel_launcher.py [-h] [--model MODEL] ipykernel_launcher.py: error: unrecognized arguments: -f C:\Users\jwc19\AppData\Roaming\jupyter\runtime\kernel-e495476c-1a41-4d8b-bbdf-1ce8e384693c.json An exception has occurred, use %tb to see the full traceback. SystemExit: 2
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Different-Tom commented
parser.add_argument('--model', type=str, default='val') # Select the mode before conversion, save it in the train folder and select train在使用juypter运行的时候,在这里报错,是不是少下了什么文件啊
usage: ipykernel_launcher.py [-h] [--model MODEL] ipykernel_launcher.py: error: unrecognized arguments: -f C:\Users\jwc19\AppData\Roaming\jupyter\runtime\kernel-e495476c-1a41-4d8b-bbdf-1ce8e384693c.json An exception has occurred, use %tb to see the full traceback. SystemExit: 2
你这个我看是juypter配置的错误,不是代码的问题