Update run_fedavg.sh
Browse files- run_fedavg.sh +2 -1
run_fedavg.sh
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
current_path=$(pwd)
|
| 4 |
|
| 5 |
# Find the path containing PFLlib, excluding hidden directories
|
| 6 |
-
pfllib_parent=$(find "$
|
| 7 |
|
| 8 |
if [ -z "$pfllib_parent" ]; then
|
| 9 |
echo "Error: PFLlib directory not found in $HOME"
|
|
@@ -29,6 +29,7 @@ python main.py --dataset $1 \
|
|
| 29 |
--model cnn \
|
| 30 |
--algorithm FedAvg \
|
| 31 |
--global_rounds 200 \
|
|
|
|
| 32 |
--device_id 0 \
|
| 33 |
--num_classes 10 \
|
| 34 |
--device cuda \
|
|
|
|
| 3 |
current_path=$(pwd)
|
| 4 |
|
| 5 |
# Find the path containing PFLlib, excluding hidden directories
|
| 6 |
+
pfllib_parent=$(find "$current_path" -type d -name "PFLlib" -not -path '*/\.*' | head -n 1 | xargs dirname)
|
| 7 |
|
| 8 |
if [ -z "$pfllib_parent" ]; then
|
| 9 |
echo "Error: PFLlib directory not found in $HOME"
|
|
|
|
| 29 |
--model cnn \
|
| 30 |
--algorithm FedAvg \
|
| 31 |
--global_rounds 200 \
|
| 32 |
+
--num_clients 50 \
|
| 33 |
--device_id 0 \
|
| 34 |
--num_classes 10 \
|
| 35 |
--device cuda \
|