change a lot
This commit is contained in:
parent
f67bcdf161
commit
776fe40199
@ -1,8 +1,10 @@
|
|||||||
from model.registry import MODEL
|
from model.registry import MODEL, NORMALIZATION
|
||||||
import model.GAN.CycleGAN
|
import model.GAN.CycleGAN
|
||||||
|
import model.GAN.MUNIT
|
||||||
import model.GAN.TAFG
|
import model.GAN.TAFG
|
||||||
import model.GAN.UGATIT
|
|
||||||
import model.GAN.wrapper
|
|
||||||
import model.GAN.base
|
|
||||||
import model.GAN.TSIT
|
import model.GAN.TSIT
|
||||||
import model.GAN.MUNIT
|
import model.GAN.UGATIT
|
||||||
|
import model.GAN.base
|
||||||
|
import model.GAN.wrapper
|
||||||
|
import model.base.normalization
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@ import torch.nn as nn
|
|||||||
|
|
||||||
def select_norm_layer(norm_type):
|
def select_norm_layer(norm_type):
|
||||||
if norm_type == "BN":
|
if norm_type == "BN":
|
||||||
return functools.partial(nn.BatchNorm2d, affine=True, track_running_stats=True)
|
return functools.partial(nn.BatchNorm2d)
|
||||||
elif norm_type == "IN":
|
elif norm_type == "IN":
|
||||||
return functools.partial(nn.InstanceNorm2d, affine=False, track_running_stats=False)
|
return functools.partial(nn.InstanceNorm2d, affine=False, track_running_stats=False)
|
||||||
elif norm_type == "LN":
|
elif norm_type == "LN":
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
from util.registry import Registry
|
from util.registry import Registry
|
||||||
|
|
||||||
MODEL = Registry("model")
|
MODEL = Registry("model")
|
||||||
|
NORMALIZATION = Registry("normalization")
|
||||||
Loading…
Reference in New Issue
Block a user