Skip to content

The new repo has a bug. #3569

@SpongeBab

Description

@SpongeBab

@glenn-jocher hi,I think this modify will make mistakes.

🐛 Bug

A clear and concise description of what the bug is.

Traceback (most recent call last):
  File "E:\yolov5\train.py", line 623, in <module>
    hyp[k] = max(hyp[k], v[1])  # lower limit
KeyError: 'anchors'

I think it is because the following is commented in hyp.scratch,yaml.

 # anchors: 3  # anchors per output layer (0 to ignore)

Input

I used the pretrained weights:https://github.com/google/automl/tree/master/efficientnetv2.

I used the anchors,and it worked.

Output:

Image sizes 704 train, 704 test
Using 0 dataloader workers
Logging results to runs\train\evolve
Starting training for 300 epochs...

     Epoch   gpu_mem       box       obj       cls     total    labels  img_size
     0/299     2.57G     0.121    0.2745         0    0.3955        77       704: 100%|██████████| 350/350 [01:55<00:00,  3.04it/s]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions