Skip to content

model.eval() missing? #12

Description

@AnugnaS

def unet_init(self):
'''
Initializes the UNet model and load the model weights
'''
model = UNet(1, scale_factor=1.0, resize_mode='bilinear')
model.to(self.device)
criterion = SoftDiceLoss()
criterion = self.to_device(criterion, self.device)

# load pretrained weights
model.load_state_dict(torch.load(self.unet_path, map_location=self.device))

self.model = model

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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