experiencor / keras-yolo2

Easy training on custom dataset. Various backends (MobileNet and SqueezeNet) supported. A YOLO demo to detect raccoon run entirely in brower is accessible at https://git.io/vF7vI (not on Windows).
MIT License
1.73k stars 785 forks source link

tb_counter = len([log for log in os.listdir(os.path.expanduser('~/logs/')) if 'coco_' in log]) + 1 #337

Closed Yufeng4024 closed 6 years ago

Yufeng4024 commented 6 years ago

Could someone explain what the above code mean in the Python code? I got an FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\Users\Yufeng2/logs/'

rodrigo2019 commented 6 years ago

it count how many directories with "coco_1" prefix in the name, this prevent to overwrite the logs from older trainings.

letilessa commented 6 years ago

You need to create a folder named logs to save the log files.

Yufeng4024 commented 6 years ago

Thx.