Skip to content
Snippets Groups Projects

Cleanup model implementation

Merged André Anjos requested to merge model-cleanup into master
Files
45
@@ -11,9 +11,8 @@ Reference: [MANINIS-2016]_
@@ -11,9 +11,8 @@ Reference: [MANINIS-2016]_
"""
"""
from torch.optim.lr_scheduler import MultiStepLR
from torch.optim.lr_scheduler import MultiStepLR
from bob.ip.binseg.modeling.driu import build_driu
from bob.ip.binseg.models.driu import driu
from bob.ip.binseg.utils.model_zoo import modelurls
from bob.ip.binseg.models.losses import SoftJaccardBCELogitsLoss
from bob.ip.binseg.modeling.losses import SoftJaccardBCELogitsLoss
from bob.ip.binseg.engine.adabound import AdaBound
from bob.ip.binseg.engine.adabound import AdaBound
##### Config #####
##### Config #####
@@ -29,9 +28,7 @@ amsbound = False
@@ -29,9 +28,7 @@ amsbound = False
scheduler_milestones = [900]
scheduler_milestones = [900]
scheduler_gamma = 0.1
scheduler_gamma = 0.1
model = build_driu()
model = driu()
pretrained_backbone = modelurls["vgg16"]
optimizer = AdaBound(
optimizer = AdaBound(
model.parameters(),
model.parameters(),
Loading