Skip to content

inferrence #27

Description

@FengMu1995

why exits "self.netG.train()" in SRGAN_model.SRGANModel.test函数中as follows:,推理应该只包括test部分吧?

def test(self):
self.netG.eval()
with torch.no_grad():
self.fake_H = self.netG(self.var_L)
self.netG.train()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions