mirror of
https://github.com/ultralytics/yolov5.git
synced 2025-06-03 14:49:29 +08:00
* Fix increment_dir to use run_xxx for logdir Rerunning train.py with logdir in the form of `run_xxx` causes index slicing in ``` n = max([int(x[len(dir):x.find('_') if '_' in Path(x).name else None]) for x in d]) + 1 # increment ``` to underflow. * Replace find with rfind