Skip to content

train.py报错 #57

Open
Open
@gmy-phk

Description

@gmy-phk

Namespace(weights='yolov5s.pt', cfg='', data='data/coco128.yaml', hyp='data/hyp.finetune.yaml', epochs=300, batch_size=16, img_size=[640, 640], rect=False, resume=False, nosave=False, notest=False, noautoanchor=False, evolve=False, bucket='', cache_images=False, name='', device='', multi_scale=False, single_cls=False, adam=False, sync_bn=False, local_rank=-1, logdir='runs/', total_batch_size=16, world_size=1, global_rank=-1)
Start Tensorboard with "tensorboard --logdir runs/", view at http://localhost:6006/
Traceback (most recent call last):
File "E:\py\fire-smoke-detect-yolov4-master\fire-smoke-detect-yolov4-master\yolov5\train.py", line 447, in
tb_writer = SummaryWriter(log_dir=increment_dir(Path(opt.logdir) / 'exp_Re', opt.name)) # runs/exp
File "E:\py\fire-smoke-detect-yolov4-master\fire-smoke-detect-yolov4-master\yolov5\utils\general.py", line 949, in increment_dir
n = max([int(x[len(dir):x.find('') if '' in x else None]) for x in d]) + 1 # increment
File "E:\py\fire-smoke-detect-yolov4-master\fire-smoke-detect-yolov4-master\yolov5\utils\general.py", line 949, in
n = max([int(x[len(dir):x.find('') if '' in x else None]) for x in d]) + 1 # increment
ValueError: invalid literal for int() with base 10: ''

进程已结束,退出代码1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions