              }[self.config["details"]]
          logger.debug('self.details: %d', self.details)
  
          try:
              self.upscale_ratio = {
                  128: 2,
                  256: 4,
                  384: 6
                  }[self.config["output_size"]]
          except KeyError:
              logger.error("Config error: output_size must be one of: 128, 256, or 384.")
              raise FaceswapError("Config error: output_size must be one of: 128, 256, or 384.")
          logger.debug('output_size: %r', self.config["output_size"])
          logger.debug('self.upscale_ratio: %r', self.upscale_ratio)
 
</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         # monkey patch-in nn_blocks
        self.blocks.upscale2x_hyb = types.MethodType(upscale2x_hyb, self.blocks)
        self.blocks.upscale2x_fast = types.MethodType(upscale2x_fast, self.blocks)
 </s> add  </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.encoder_dim = {
            0: 512 + bonum_fortunam,
            1: 1024 + bonum_fortunam,
            2: 1536 + bonum_fortunam,
            }[self.features]
 </s> add         self.encoder_dim = {0: 512 + bonum_fortunam,
                            1: 1024 + bonum_fortunam,
                            2: 1536 + bonum_fortunam}[self.features]
            self.upscale_ratio = {128: 2,
                                  256: 4,
                                  384: 6}[self.config["output_size"]]
              }[self.config["details"]]
          logger.debug('self.details: %d', self.details)
  
          try:
            self.upscale_ratio = {128: 2,
                                  256: 4,
                                  384: 6}[self.config["output_size"]]
            self.upscale_ratio = {128: 2,
                                  256: 4,
                                  384: 6}[self.config["output_size"]]
            self.upscale_ratio = {128: 2,
                                  256: 4,
                                  384: 6}[self.config["output_size"]]
            self.upscale_ratio = {128: 2,
                                  256: 4,
                                  384: 6}[self.config["output_size"]]
            self.upscale_ratio = {128: 2,
                                  256: 4,
                                  384: 6}[self.config["output_size"]]
          except KeyError:
              logger.error("Config error: output_size must be one of: 128, 256, or 384.")
              raise FaceswapError("Config error: output_size must be one of: 128, 256, or 384.")
          logger.debug('output_size: %r', self.config["output_size"])
          logger.debug('self.upscale_ratio: %r', self.upscale_ratio)
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