yangze0930 / NTS-Net

This is a PyTorch implementation of the ECCV2018 paper "Learning to Navigate for Fine-grained Classification" (Ze Yang, Tiange Luo, Dong Wang, Zhiqiang Hu, Jun Gao, Liwei Wang).
MIT License
450 stars 118 forks source link

_, term_width = os.popen('stty size', 'r').read().split() #22

Open tectal opened 5 years ago

tectal commented 5 years ago

ValueError Traceback (most recent call last)

in () 5 import logging 6 ----> 7 _, term_width = os.popen('stty size', 'r').read().split() 8 term_width = int(term_width) 9 ValueError: not enough values to unpack (expected 2, got 0)
HRanWang commented 5 years ago

老哥,怎么解决的

cLEARLoVE00 commented 5 years ago

在控制台就不会有这个问题了

JingyunLiang commented 5 years ago

You could comment these two lines and use term_width=80.

1012638162 commented 3 years ago

i guess the code must run in Linux, not Windows