pytorch-retinanet icon indicating copy to clipboard operation
pytorch-retinanet copied to clipboard

please help me,I don't know how to run the train.py

Open chenchch94 opened this issue 6 years ago • 2 comments

can you tell me ?

Traceback (most recent call last): File "train.py", line 15, in from loss import FocalLoss File "H:\datasets\tianchi_lvcai\tianchi_lvcai_fusai\pytorch-retinanet-master\loss.py", line 7, in from utils import one_hot_embedding File "H:\datasets\tianchi_lvcai\tianchi_lvcai_fusai\pytorch-retinanet-master\utils.py", line 242, in _, term_width = os.popen('stty size', 'r').read().split() ValueError: not enough values to unpack (expected 2, got 0)

chenchch94 avatar Oct 18 '18 13:10 chenchch94

run on the terminal

Brozhao avatar Dec 12 '18 03:12 Brozhao

Because there is no command named "stty size" in Windows, so you should run in Linux, or you set a number for term_width in utils.py

doublemanyu avatar Jun 12 '19 01:06 doublemanyu