Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There seems to be something wrong with the code #1

Open
dhhcj1 opened this issue Jan 2, 2020 · 2 comments
Open

There seems to be something wrong with the code #1

dhhcj1 opened this issue Jan 2, 2020 · 2 comments

Comments

@dhhcj1
Copy link

dhhcj1 commented Jan 2, 2020

Traceback (most recent call last):
File "main.py", line 15, in
from utils import progress_bar
File "D:\classification-cifar10-pytorch-master\utils.py", line 45, in
_, term_width = os.popen('stty size', 'r').read().split()
ValueError: not enough values to unpack (expected 2, got 0)

@laisimiao
Copy link
Owner

run this:python main.py --resume --lr 0.1 --trainbs 128 --testbs 100 in your terminal, not in IDE like pycharm, then it will be ok.

@liguilan1227
Copy link

Is the checkpoint neccessary to train the net? When I run it, the error occured: Traceback (most recent call last):
File "main.py", line 77, in
assert os.path.isdir('checkpoint'), 'Error: no checkpoint directory found!'
AssertionError: Error: no checkpoint directory found!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants