kuangliu / pytorch-retinanet

RetinaNet in PyTorch
992 stars 250 forks source link

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

Open chenchch94 opened 5 years ago

chenchch94 commented 5 years ago

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_lvcaifusai\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)

Brozhao commented 5 years ago

run on the terminal

doublemanyu commented 5 years ago

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