Skip to content
Snippets Groups Projects
Commit 721ad2aa authored by Frisinghelli Daniel's avatar Frisinghelli Daniel
Browse files

Adjusted UNet to changes in input layers.py

parent 32b0b0fd
No related branches found
No related tags found
No related merge requests found
......@@ -26,8 +26,8 @@ import torch.nn as nn
import torch.optim as optim
# locals
from pysegcnn.core.layers import (Encoder, Decoder, Conv2dPool, Conv2dUnpool,
Conv2dSame)
from pysegcnn.core.layers import (Encoder, Decoder, ConvBnReluMaxPool,
ConvBnReluMaxUnpool, Conv2dSame)
# module level logger
LOGGER = logging.getLogger(__name__)
......@@ -269,11 +269,11 @@ class UNet(Network):
self.epoch = 0
# construct the encoder
self.encoder = Encoder(filters=self.filters, block=Conv2dPool,
self.encoder = Encoder(filters=self.filters, block=ConvBnReluMaxPool,
**kwargs)
# construct the decoder
self.decoder = Decoder(filters=self.filters, block=Conv2dUnpool,
self.decoder = Decoder(filters=self.filters, block=ConvBnReluMaxUnpool,
skip=skip, **kwargs)
# construct the classifier
......
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