Traceback (most recent call last):
File "D:/master/ml-capsules-inverted-attention-routing-master/main_capsule.py", line 19, in <module>
from utils import progress_bar
File "D:\master\ml-capsules-inverted-attention-routing-master\utils.py", line 50, in <module>
_, term_width = os.popen(r'stty size', 'r').read().split()
ValueError: not enough values to unpack (expected 2, got 0)
这个问题可能跟python的版本有关,修改为
term_width=80 #(set the term_width to 80 directly)
_, term_width = os.popen(r‘stty size‘, ‘r‘).read().split()
最新推荐文章于 2023-04-17 16:04:19 发布