Skip to content

About two ema in Trainer class #12

@derow0208

Description

@derow0208

Thanks for your excellent code!
I'm a bit confused about some of the code in the rectified_flow.py file
What's the difference between these two ema model?

            if getattr(self.model, 'use_consistency', False):
                self.model.ema_model.update()

            if self.is_main and self.use_ema:
                self.ema_model.ema_model.data_shape = self.model.data_shape
                self.ema_model.update()

What are their respective functions?

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