Skip to content
Snippets Groups Projects
Commit b20421ab authored by s.islam's avatar s.islam
Browse files

REPORT-4: Ch:1, resnet34, L1

parent 2c7f3f04
No related branches found
No related tags found
No related merge requests found
......@@ -31,13 +31,13 @@ class TestModule(pl.LightningModule):
# Define the model
self.model = smp.Unet(
encoder_name="resnet18", # Also consider using smaller or larger encoders
encoder_name="resnet34", # Also consider using smaller or larger encoders
encoder_weights= "imagenet", # Do the pretrained weights help? Try with or without
in_channels=1, # We use 1 chanel transmittance as input
classes=1, # classes == output channels. We use one output channel for cyto data
activation="sigmoid"
)
self.loss_f = RMILoss(with_logits=True) #torch.nn.L1Loss() #RMILoss(with_logits=True) #torch.nn.MSELoss()
self.loss_f = torch.nn.L1Loss() #torch.nn.L1Loss() #RMILoss(with_logits=True) #torch.nn.MSELoss()
def forward(self, x):
x = self.model(x)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment