Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

train.py报错 #57

Open
gmy-phk opened this issue Dec 16, 2024 · 0 comments
Open

train.py报错 #57

gmy-phk opened this issue Dec 16, 2024 · 0 comments

Comments

@gmy-phk
Copy link

gmy-phk commented Dec 16, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant