monailabel.interfaces.utils.transform module

monailabel.interfaces.utils.transform.dump_data(data, level=10)[source]
monailabel.interfaces.utils.transform.run_transforms(data, callables, inverse=False, log_prefix='POST', log_name='Transform', use_compose=False)[source]

Run Transforms

Parameters
  • data – Input data dictionary

  • callables – List of transforms or callable objects

  • inverse – Run inverse instead of call/forward function

  • log_prefix – Logging prefix (POST or PRE)

  • log_name – Type of callables for logging

  • use_compose – Use Compose to run individual callables

Returns

Processed data after running transforms

monailabel.interfaces.utils.transform.shape_info(data, keys=('image', 'label', 'logits', 'pred', 'model', 'points', 'horizontal_vertical', 'nucleus_prediction', 'type_prediction'))[source]