Update run_fedprox.sh
Browse files- run_fedprox.sh +2 -1
run_fedprox.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"
|
|
@@ -31,6 +31,7 @@ python main.py --dataset $1 \
|
|
| 31 |
--global_rounds 200 \
|
| 32 |
--device_id 0 \
|
| 33 |
--num_classes 10 \
|
|
|
|
| 34 |
--device cuda \
|
| 35 |
--goal train \
|
| 36 |
--batch_size 20 \
|
|
|
|
| 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"
|
|
|
|
| 31 |
--global_rounds 200 \
|
| 32 |
--device_id 0 \
|
| 33 |
--num_classes 10 \
|
| 34 |
+
--num_clients 50 \
|
| 35 |
--device cuda \
|
| 36 |
--goal train \
|
| 37 |
--batch_size 20 \
|