Tutorial¶
Requirements¶
To run this tutorial, you need a machine with the following requirements:
- Internet access.
- Web browser (to connect to codespaces).
Training Setup with MedPerf (Model Owner)¶
Define the data preparation MLCube¶
- Prepare the data preparation pipeline logic that will transform the raw clinical data into AI-ready data. This will be an MLCube
Register the MLCube¶
medperf mlcube submit -n prep \
-m https://storage.googleapis.com/medperf-storage/rsna2023/mlcube.yaml
Define the training MLCube¶
- Prepare the training logic using OpenFL and GaNDLF
Register the Training MLCube¶
medperf mlcube submit -n testfl \
-m https://storage.googleapis.com/medperf-storage/rsna2023/mlcube_rsna.yaml \
-p https://storage.googleapis.com/medperf-storage/rsna2023/plan_final.yaml \
-a https://storage.googleapis.com/medperf-storage/rsna2023/init_weights_rsna2023.tar.gz
Register the Training Experiment¶
The server admin should approve the experiment. Run:
Aggregator Setup with MedPerf (Aggregator Owner)¶
register aggregator¶
Associate the aggregator with the experiment¶
Data preparation (Training Data Owner)¶
Process your data using the data prep mlcube¶
medperf dataset create -p 1 -d datasets/col1 -l datasets/col1 --name col1 --description col1data --location col1location
Register your dataset¶
find Hash:
Request participation in the training experiment¶
Redo the same with collaborator 2¶
Accepting Training Participation (Model Owner)¶
Accept participation requests¶
medperf training approve_association -t 1 -a 1
medperf training approve_association -t 1 -d 1
medperf training approve_association -t 1 -d 2
Lock the experiment¶
Run the Aggregator (Aggregator Owner)¶
(Now move to another terminal)
Run Training (Training Data Owner)¶
First collaborator:
(Now move to another terminal)
Second collaborator: