Skip to content

Are --image-weights and DDP training still incompatible? #11037

@shenck0

Description

@shenck0

Search before asking

Question

In train.py, I found that the assert is made here:

    if LOCAL_RANK != -1:
        msg = 'is not compatible with YOLOv5 Multi-GPU DDP training'
        assert not opt.image_weights, f'--image-weights {msg}'      # <----- this assert
        assert not opt.evolve, f'--evolve {msg}'

This assert was added by #3275 , and according to #4579, --image-weights can be use with DDP training.
I comment out this assert line and found dataset.indices modified at every epoch beginning can be broadcast to other processes correctly.
Are --image-weights and DDP training still incompatible now?

Additional

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaleStale and schedule for closing soonquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions