Skip to content

extractor.train()? #3

@yunsangq

Description

@yunsangq

Hi, Thanks for your code!!

extractor was not included in the optimizer parameter.
So, I think the extractor was only used for inference, but wonder why used train().
In this case, batch_norm different results than eval().
because running_mean, running_var changed when train().

self.extractor.train()

self.extractor.train()

self.optimizer = optim.Adam(self.autoencoder.parameters(), lr=self.lr, weight_decay=0)

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