def __init__(self, scale, n_colors, conv=common.default_conv, n_feats=64):
    super(LFF, self).__init__()
    kernel_size = 3
    n_layes = 5
    act = nn.ReLU(True)
    m_head = [conv(3, n_feats, kernel_size)]
    m_body = [conv(n_feats, n_feats, kernel_size) for _ in range(n_layes)]
    m_tail = [common.Upsampler(conv, scale, n_feats, act=False), nn.Conv2d(n_feats, n_colors, kernel_size, padding=(kernel_size // 2))]
    self.LLF_head = nn.Sequential(*m_head)
    self.LLF_body = nn.Sequential(*m_body)
    self.LLF_tail = nn.Sequential(*m_tail)
def __init__(self, scale, n_colors, conv=common.default_conv, n_feats=64):
    super(LFF, self).__init__()
    kernel_size = 3
    n_layes = 5
    act = nn.ReLU(True)
    m_head = [conv(3, n_feats, kernel_size)]
    m_body = [conv(n_feats, n_feats, kernel_size) for _ in range(n_layes)]
    m_tail = [common.Upsampler(conv, scale, n_feats, act=False), nn.Conv2d(n_feats, n_colors, kernel_size, padding=(kernel_size // 2))]
    self.LLF_head = nn.Sequential(*m_head)
    self.LLF_body = nn.Sequential(*m_body)
    self.LLF_tail = nn.Sequential(*m_tail)