microsoft / hi-ml

HI-ML toolbox for deep learning for medical imaging and Azure integration
https://aka.ms/hi-ml
MIT License
253 stars 58 forks source link

ENH: Add support to specify input and output data names #953

Closed fepegar closed 2 weeks ago

fepegar commented 3 weeks ago

When downloading or mounting a data asset on AML, it can be given a "name" that can be used to retrieve the target folder dynamically inside the submitted job. This PR adds support to specify names, alternatively to the default INPUT_0 etc.

Before:

dataset_config = DatasetConfig(
    name=path,
    version=version,
    use_mounting=mount,
)

image

After:

dataset_config = DatasetConfig(
    name=path,
    version=version,
    use_mounting=mount,
    data_name="eval_data_dir",
)

image

The command may now include an argument ${{inputs.eval_data_dir}} which will be interpolated to the local folder where the data lives during the run.

fepegar commented 2 weeks ago

Thanks @samb-t and @ant0nsc for reviewing!