forked from SymbioticLab/FedScale
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfedscale.sh
48 lines (43 loc) · 811 Bytes
/
fedscale.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
RED='\033[0;31m'
GREEN='\033[0;32m'
NC='\033[0m' # no color
DIR="$(dirname $0)"
ARGS=${@: 2};
Help()
{
echo
echo -e "\033[1mFedScale is a real system to support FL evaluations and deployments.\033[0m"
echo
echo -e "${GREEN}Usage:${NC}"
# Display Help
echo
echo "help Print this Help"
echo "driver Manager jobs (refer to README)"
echo "dataset Download FedScale datasets (refer to README)"
}
dataset()
{
bash $DIR/benchmark/dataset/download.sh $ARGS;
}
driver()
{
python $DIR/docker/driver.py $ARGS;
}
case "$1" in
help ) # display Help
Help
;;
driver )
driver
;;
dataset )
dataset
;;
+ )
Help
;;
* )
Help
;;
esac