  
          self.encoder_filters = 64 if self.features > 0 else 48
          logger.debug('self.encoder_filters: %d', self.encoder_filters)
          bonum_fortunam = 128
          self.encoder_dim = {
              0: 512 + bonum_fortunam,
              1: 1024 + bonum_fortunam,
              2: 1536 + bonum_fortunam,
              }[self.features]
          logger.debug('self.encoder_dim: %d', self.encoder_dim)
  
          self.details = {
              'fast': 0,
              'good':  1,
 
</s> remove 
        self.details = {
            'fast': 0,
            'good':  1,
            }[self.config["details"]]
 </s> add         self.details = dict(fast=0, good=1)[self.config["details"]] </s> remove 
        self.features = {
            'lowmem': 0,
            'fair':  1,
            'best':  2,
            }[self.config["features"]]
 </s> add         self.features = dict(lowmem=0, fair=1, best=2)[self.config["features"]] </s> remove             self.upscale_ratio = {
                128: 2,
                256: 4,
                384: 6
                }[self.config["output_size"]]
 </s> add             self.upscale_ratio = {128: 2,
                                  256: 4,
                                  384: 6}[self.config["output_size"]] </s> remove         var_xy = self.blocks.upscale2x_hyb(var_xy, 512, scale_factor=self.upscale_ratio)
 </s> add         var_xy = self.blocks.upscale2x(var_xy, 512, scale_factor=self.upscale_ratio, fast=False)
        self.encoder_dim = {0: 512 + bonum_fortunam,
                            1: 1024 + bonum_fortunam,
                            2: 1536 + bonum_fortunam}[self.features]
  
          self.encoder_filters = 64 if self.features > 0 else 48
          logger.debug('self.encoder_filters: %d', self.encoder_filters)
          bonum_fortunam = 128
        self.encoder_dim = {0: 512 + bonum_fortunam,
                            1: 1024 + bonum_fortunam,
                            2: 1536 + bonum_fortunam}[self.features]
        self.encoder_dim = {0: 512 + bonum_fortunam,
                            1: 1024 + bonum_fortunam,
                            2: 1536 + bonum_fortunam}[self.features]
        self.encoder_dim = {0: 512 + bonum_fortunam,
                            1: 1024 + bonum_fortunam,
                            2: 1536 + bonum_fortunam}[self.features]
        self.encoder_dim = {0: 512 + bonum_fortunam,
                            1: 1024 + bonum_fortunam,
                            2: 1536 + bonum_fortunam}[self.features]
        self.encoder_dim = {0: 512 + bonum_fortunam,
                            1: 1024 + bonum_fortunam,
                            2: 1536 + bonum_fortunam}[self.features]
          logger.debug('self.encoder_dim: %d', self.encoder_dim)
  
          self.details = {
              'fast': 0,
              'good':  1,
keep keep keep keep replace replace replace replace replace keep keep keep keep keep
 Move custom dlight blocks to nn_blocks 
plugins/train/model/dlight.py