kbressem / trainlib

MIT License
4 stars 0 forks source link

Add support for multiple patch transform files #43

Open markus-hinsche opened 1 year ago

markus-hinsche commented 1 year ago

Problem: patch transforms only supports a single file

patch:
  transforms: 
    - path/to/patch/transforms.py
    - path/to/patch/transforms2.py

Use case: In https://github.com/kbressem/transforms, we have multiple files with transforms, and we can test them by combining them. Currently I have

patch:
  transforms: transforms/MultiClassSegNrrdToOneHot.py

but I would like add transforms/NrrdReader.py

Solution

kbressem commented 1 year ago

Correct. Only one file is supported. But should be fixable.