VedantPadwal commited on
Commit
9d25b7a
·
1 Parent(s): a783ca8

Update README

Browse files
Files changed (1) hide show
  1. README +30 -6
README CHANGED
@@ -1,11 +1,35 @@
1
- # Train
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  python train.py --dataset_path brain-tumor-train.csv --model_save_path model.h5
 
3
 
4
- # Generate GRadients
 
5
  python gen_gradients.py --image_dir /brain_tumor_classifier_dataset --gradients_save_path /gradients --model_path model.h5
6
-
7
- # Update Model
 
8
  python update_model.py --model_path model.h5 --saved_gradients gradients --dataset_path brain-tumor-train.csv
 
 
 
 
 
 
9
 
10
- # Inference
11
- python inference.py --model_path model.h5 --image_dir brain_tumor_classifier_dataset --output_json outputs.json
 
 
 
1
+ # Federated Learning Docker
2
+
3
+ ## Building the container
4
+ ```
5
+ docker build -t <dockerhub-username>/federated .
6
+ ```
7
+ ## Running the container
8
+ ```
9
+ docker run -it --gpus all <dockerhub-username>/federated /bin/bash
10
+ ```
11
+
12
+ ## Testing the scripts
13
+ ### Train
14
+ ```
15
  python train.py --dataset_path brain-tumor-train.csv --model_save_path model.h5
16
+ ```
17
 
18
+ ### Generate Gradients
19
+ ```
20
  python gen_gradients.py --image_dir /brain_tumor_classifier_dataset --gradients_save_path /gradients --model_path model.h5
21
+ ```
22
+ ### Update Model
23
+ ```
24
  python update_model.py --model_path model.h5 --saved_gradients gradients --dataset_path brain-tumor-train.csv
25
+ ```
26
+
27
+ ### Inference
28
+ ```
29
+ python inference.py --model_path model.h5 --image_dir brain_tumor_classifier_dataset --output_json outputs.json
30
+ ```
31
 
32
+ ### Pushing the container
33
+ ```
34
+ docker push <dockerhub-username>/federated
35
+ ```