Skip to content

train failed when EMA mode is off #42

@frozenzo

Description

@frozenzo

I found that this is because the model.train() did not open again when evaluation ends.
solution: just move mode.train() to the epoch loop:

  • model.train()
    for epoch in range(args.start_epoch, args.epochs):

->

for epoch in range(args.start_epoch, args.epochs):

  •    model.train()
    

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