mmagic.models.editors.global_local.gl_decoder
¶
Module Contents¶
Classes¶
Decoder used in Global&Local model. |
- class mmagic.models.editors.global_local.gl_decoder.GLDecoder(in_channels=256, norm_cfg=None, act_cfg=dict(type='ReLU'), out_act='clip')[source]¶
Bases:
mmengine.model.BaseModule
Decoder used in Global&Local model.
This implementation follows: Globally and locally Consistent Image Completion
- Parameters
in_channels (int) – Channel number of input feature.
norm_cfg (dict) – Config dict to build norm layer.
act_cfg (dict) – Config dict for activation layer, “relu” by default.
out_act (str) – Output activation type, “clip” by default. Noted that in our implementation, we clip the output with range [-1, 1].