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

REPORT-13: Ch:1, densenet161, L1

parent cf82cbd3
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="densenet121", # Also consider using smaller or larger encoders
encoder_name="densenet161", # 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