longcw / faster_rcnn_pytorch

Faster RCNN with PyTorch
MIT License
1.7k stars 466 forks source link

debug so lowlly #61

Open tengshaofeng opened 6 years ago

tengshaofeng commented 6 years ago

hi, @longcw , i am so appreciated with your great job. and i can run train.py and demo.py correctly. but when i remote debug the code, at first it is fast, but when it comes to the code in train.py as follows:

if not os.path.exists(output_dir):
    os.makedirs(output_dir)

it is so slowly for steping over, after that. what is the problem? can you help me? thanks.

longcw commented 6 years ago

os.makedirs() shouldn't be slow. Maybe you can check if the output_dir is a reasonable path in your computer.

tengshaofeng commented 6 years ago

@longcw , thank you for your reply. not only that code slow, the following is also slow, for example 'train_loss = 0' also take few minutes.