              return x
          return block       
      
      
      def Encoder_v3(self):
          """Lighter on resources encoder with bigger first conv layer"""
          retina = Input(shape=self.IMAGE_SHAPE)
          x = self.conv_sep_v3(192)(retina)         
          x = self.conv(256)(x)
          x = self.conv(384)(x)        
          x = self.conv_sep_v3(512)(x)
          x = self.conv(768)(x)
          x = self.conv_sep_v3(1024)(x)
 
</s> remove         x = self.conv(384)(x)        
        x = self.conv_sep_v3(512)(x)
        x = self.conv(768)(x)
        x = self.conv_sep_v3(1024)(x)
 </s> add         x = self.conv(512)(x)
        x = self.conv(1024)(x)
        
        dense_shape = self.IMAGE_SHAPE[0] // 16          </s> remove   
    
    def res_block(self, filters, dilation_rate=1):
        def block(x):
            rb = Conv2D(filters, kernel_size=3, padding="same", dilation_rate=dilation_rate, use_bias=False)(x)
            rb = LeakyReLU(alpha=0.2)(rb)
            rb = Conv2D(filters, kernel_size=3, padding="same", dilation_rate=dilation_rate, use_bias=False)(rb)
            x = add([rb, x])
            x = LeakyReLU(alpha=0.2)(x)
            return x
        return block       
    
 </s> add  </s> remove         x = Dense(4 * 4 * 1024)(x)
        x = Reshape((4, 4, 1024))(x)
        out = self.upscale(512)(x)
        return KerasModel(retina, out)    
    
 </s> add         x = Dense(dense_shape * dense_shape * 768)(x)
        x = Reshape((dense_shape, dense_shape, 768))(x)
        x = self.upscale(512)(x)
        
        return KerasModel(impt, x, **kwargs)    
           </s> remove     def Encoder_v2(self):
        """Old algorithm; pretty good but slow"""
        retina = Input(shape=self.IMAGE_SHAPE)
        x = self.conv(128)(retina)         
        x = self.conv(144)(x)              
        x = self.conv_sep(256)(x)
        x = self.conv(448)(x)        
        x = self.conv_sep(512)(x)        
        x = self.conv(768)(x)
        x = self.conv_sep(1024)(x)
 </s> add     def Encoder_shaoanlu(self, **kwargs):
        impt = Input(shape=self.IMAGE_SHAPE)
                
        in_conv_filters = self.IMAGE_SHAPE[0] if self.IMAGE_SHAPE[0] <= 128 else 128 + (self.IMAGE_SHAPE[0]-128)//4
        
        x = Conv2D(in_conv_filters, kernel_size=5, kernel_initializer=conv_init, use_bias=False, padding="same")(impt)
        x = self.conv_sep3(in_conv_filters+32, use_instance_norm=False)(x)
        x = self.conv_sep3(256)(x)        
        x = self.conv_sep3(512)(x)
        x = self.conv_sep3(1024)(x)        
        
        dense_shape = self.IMAGE_SHAPE[0] // 16          </s> remove         x = Dense(4 * 4 * 1024)(x)
        x = Reshape((4, 4, 1024))(x)
        out = self.upscale(512)(x)
        return KerasModel(retina, out)
    
 </s> add         x = Dense(dense_shape * dense_shape * 768)(x)
        x = Reshape((dense_shape, dense_shape, 768))(x)
        x = self.upscale(512)(x)
        
        return KerasModel(impt, x, **kwargs)    
    def Encoder_original(self, **kwargs):
        impt = Input(shape=self.IMAGE_SHAPE)
        
        in_conv_filters = self.IMAGE_SHAPE[0] if self.IMAGE_SHAPE[0] <= 128 else 128 + (self.IMAGE_SHAPE[0]-128)//4
        x = self.conv(in_conv_filters)(impt)
              return x
          return block       
      
      
    def Encoder_original(self, **kwargs):
        impt = Input(shape=self.IMAGE_SHAPE)
        
        in_conv_filters = self.IMAGE_SHAPE[0] if self.IMAGE_SHAPE[0] <= 128 else 128 + (self.IMAGE_SHAPE[0]-128)//4
        x = self.conv(in_conv_filters)(impt)
    def Encoder_original(self, **kwargs):
        impt = Input(shape=self.IMAGE_SHAPE)
        
        in_conv_filters = self.IMAGE_SHAPE[0] if self.IMAGE_SHAPE[0] <= 128 else 128 + (self.IMAGE_SHAPE[0]-128)//4
        x = self.conv(in_conv_filters)(impt)
    def Encoder_original(self, **kwargs):
        impt = Input(shape=self.IMAGE_SHAPE)
        
        in_conv_filters = self.IMAGE_SHAPE[0] if self.IMAGE_SHAPE[0] <= 128 else 128 + (self.IMAGE_SHAPE[0]-128)//4
        x = self.conv(in_conv_filters)(impt)
    def Encoder_original(self, **kwargs):
        impt = Input(shape=self.IMAGE_SHAPE)
        
        in_conv_filters = self.IMAGE_SHAPE[0] if self.IMAGE_SHAPE[0] <= 128 else 128 + (self.IMAGE_SHAPE[0]-128)//4
        x = self.conv(in_conv_filters)(impt)
          x = self.conv(256)(x)
          x = self.conv(384)(x)        
          x = self.conv_sep_v3(512)(x)
          x = self.conv(768)(x)
          x = self.conv_sep_v3(1024)(x)
keep keep keep keep replace replace replace replace keep keep keep keep keep
 model update (#417)

New, functional Original 128 model 
plugins/Model_OriginalHighRes/Model.py