              var_x = InstanceNormalization(name="{}_instancenorm".format(name))(var_x)
          if not res_block_follows:
              var_x = LeakyReLU(0.1, name="{}_leakyrelu".format(name))(var_x)
          if self.use_subpixel:
              var_x = SubPixelUpscaling(name="{}_subpixel".format(name))(var_x)
          else:
              var_x = PixelShuffler(name="{}_pixelshuffler".format(name))(var_x)
          return var_x
  
      # <<< DFaker Model Blocks >>> #
 
</s> remove             var_x = PixelShuffler(name="{}_pixelshuffler".format(name))(var_x)
 </s> add             var_x = PixelShuffler(name="{}_pixelshuffler".format(name), size=scale_factor)(var_x) </s> remove                 use_instance_norm=False, res_block_follows=False, **kwargs):
 </s> add                 use_instance_norm=False, res_block_follows=False, scale_factor=2, **kwargs): </s> remove opencv-python
 </s> add opencv-python>=4.0
            var_x = SubPixelUpscaling(name="{}_subpixel".format(name),
                                      scale_factor=scale_factor)(var_x)
              var_x = InstanceNormalization(name="{}_instancenorm".format(name))(var_x)
          if not res_block_follows:
              var_x = LeakyReLU(0.1, name="{}_leakyrelu".format(name))(var_x)
          if self.use_subpixel:
            var_x = SubPixelUpscaling(name="{}_subpixel".format(name),
                                      scale_factor=scale_factor)(var_x)
          else:
              var_x = PixelShuffler(name="{}_pixelshuffler".format(name))(var_x)
          return var_x
  
      # <<< DFaker Model Blocks >>> #
keep keep keep keep replace keep keep keep keep keep
 Nnblocks added scale factor to Upscaler (#869)

* Update nn_blocks.py 
lib/model/nn_blocks.py