ValueError
_, term_width = os.popen('stty size', 'r').read().split()
ValueError: not enough values to unpack (expected 2, got 0)
resolution
_, term_width = os.popen('stty size', 'r').read().split()
term_width = int(term_width)
windows下运行需要注释掉上面两行并添加下面一行
term_width = 80
RuntimeError
RuntimeError: CUDA out of memory. Tried to allocate 78.00 MiB (GPU 0; 2.00 GiB total capacity; 1.07 GiB already allocated; 10.30 MiB free; 1.19 GiB reserved in total by PyTorch)
resolution
一般都是batch_size的问题,注意如果修改的是batch_size的default,但是调用时候,batch_size值自己又重新传参了,还是会有问题