kuangliu / pytorch-cifar

95.47% on CIFAR10 with PyTorch
MIT License
5.94k stars 2.14k forks source link

SystemExit: 2错误 #118

Open warmingkkk opened 4 years ago

warmingkkk commented 4 years ago

我在colab运行发生这样的错误,表示不懂 usage: ipykernel_launcher.py [-h] [--lr LR] [--resume] ipykernel_launcher.py: error: unrecognized arguments: -f /root/.local/share/jupyter/runtime/kernel-0ca855c3-8595-4763-8916-19cc4a0dc49c.json An exception has occurred, use %tb to see the full traceback.

SystemExit: 2 /usr/local/lib/python3.6/dist-packages/IPython/core/interactiveshell.py:2890: UserWarning: To exit: use 'exit', 'quit', or Ctrl-D. warn("To exit: use 'exit', 'quit', or Ctrl-D.", stacklevel=1)

yui99 commented 4 years ago

https://stackoverflow.com/questions/42249982/systemexit-2-error-when-calling-parse-args/42250234 In conclusion, u can't use jupyter or ipython for it

shenxiaoxiao11 commented 2 years ago

Hi,there!I used PyCharm 2021 ,and I runned main.py file,I got the same problem,and have no idea for it,I want to know where did you run it? Thanks a lot!

warmingkkk commented 2 years ago

Sorry, I can not remember. But i find that colab can run it perfect now! u can try. @shenxiaoxiao11