  import inspect
  import logging
  import sys
  
  import cv2
  import numpy as np
  
  logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
  
 
</s> remove def PenalizedLoss(mask, loss_func, mask_prop=1.0):  # pylint: disable=invalid-name
 </s> add def PenalizedLoss(mask, loss_func, mask_prop=1.0, mask_scaling=1.0):  # pylint: disable=invalid-name </s> remove             (batchsize, self.model_input_size, self.model_input_size, 3)))
        # Add the output shapes
 </s> add             (batchsize, self.model_input_size, self.model_input_size, 3)))  # Training Image
        # Target images
import keras.backend as K
  import inspect
  import logging
  import sys
  
import keras.backend as K
  import cv2
  import numpy as np
  
  logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
  
keep keep keep add keep keep keep keep keep
 Fix penalized loss for multiscale decoders 
lib/model/masks.py