Skip to content

why need time.sleep(2) in EpochBasedRunner ? when the deadlock will happen ? #1640

@0xLDF

Description

@0xLDF

why need time.sleep(2) in https://github.com/open-mmlab/mmcv/blob/master/mmcv/runner/epoch_based_runner.py#L46

the statement says: Prevent possible deadlock during epoch transition.

when possible deadlock will happen. and more impotant , time.sleep(2) is not elegant and flexible operation. It waste time in small dataset. I thick it is necessary to redesign.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions