              # Skip options without a default value
              if value is None:
                  continue
              option = item.get("dest", item["opts"][1].replace("--", ""))
              # Skip options already in arguments
              if hasattr(arguments, option):
                  continue
              # Add option to arguments
              setattr(arguments, option, value)
          logger.debug(arguments)
 
</s> remove     def _generate_converter_arguments(arguments):
        """ Add the default converter arguments to the initial arguments.
 </s> add     def _generate_converter_arguments(arguments, available_masks):
        """ Add the default converter arguments to the initial arguments. Ensure the mask selection
        is available. </s> remove             mask = np.ones_like(self.dummy[:, :, 1], dtype="uint8") * 255
 </s> add             mask = np.ones_like(self.dummy[:, :, 1], dtype="float32")[..., None] </s> remove             mask = predicted_mask
 </s> add             mask = predicted_mask[..., None] </s> remove 
 </s> add         available_masks: list
            The masks that are available for convert
            if option == "mask_type" and value not in valid_masks:
                logger.debug("Amending default mask from '%s' to '%s'", value, valid_masks[0])
                value = valid_masks[0]
              # Skip options without a default value
              if value is None:
                  continue
              option = item.get("dest", item["opts"][1].replace("--", ""))
            if option == "mask_type" and value not in valid_masks:
                logger.debug("Amending default mask from '%s' to '%s'", value, valid_masks[0])
                value = valid_masks[0]
              # Skip options already in arguments
              if hasattr(arguments, option):
                  continue
              # Add option to arguments
              setattr(arguments, option, value)
          logger.debug(arguments)
keep keep keep add keep keep keep keep keep keep
 Convert - bugfixes
- Default mask to an available mask in Preview tool
- Correctly output predicted mask 
tools/preview.py