Skip to content

Commit

Permalink
updated parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jun 7, 2024
1 parent bc7bbea commit 9817a5d
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 14 deletions.
19 changes: 16 additions & 3 deletions examples/monai-2D-mednist/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,21 @@ Using FEDn Studio
Follow the guide here to set up your FEDn Studio project and learn how to connect clients (using token authentication): `Studio guide <https://fedn.readthedocs.io/en/stable/studio.html>`__.
On the step "Upload Files", upload 'package.tgz' and 'seed.npz' created above.

Connecting clients:
===================

**NOTE: In case a different data path needs to be set, use the env variable FEDN_DATA_PATH.**

.. code-block::
export FEDN_PACKAGE_EXTRACT_DIR=package
export FEDN_CLIENT_SETTINGS_PATH=./client_settings.yaml
fedn client start -in client.yaml --secure=True --force-ssl
**NOTE: The following instructions are only for SDK-based client communication and for local development environments using Docker.**
Connecting clients using Docker:
================================

Expand All @@ -73,10 +86,10 @@ For convenience, there is a Docker image hosted on ghrc.io with fedn preinstalle
docker run \
-v $PWD/client.yaml:/app/client.yaml \
-v $PWD/client_settings.yaml:/app/client_settings.yaml \
-e FEDN_PACKAGE_EXTRACT_DIR=package \
-e FEDN_NUM_DATA_SPLITS=2 \
-e FEDN_DATA_PATH=/app/package/data/ \
monai-2d-class-fedn:0.9.0 run client -in client.yaml --force-ssl --secure=True
-e FEDN_CLIENT_SETTINGS_PATH=/app/client_settings.yaml \
ghcr.io/scaleoutsystems/fedn/fedn:0.9.0 run client -in client.yaml --force-ssl --secure=True
Local development mode using Docker/docker compose
Expand Down
6 changes: 3 additions & 3 deletions examples/monai-2D-mednist/client_settings.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
lr: 0.01
batch_size: 256
batch_size: 32
local_epochs: 10
num_workers: 1
sample_size: 100
split_index: 0
sample_size: 30
split_index: 4

2 changes: 2 additions & 0 deletions examples/monai-2D-mednist/docker-compose.override.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ services:
environment:
<<: *defaults
FEDN_DATA_PATH: /app/package/client/data/MedNIST
FEDN_CLIENT_SETTINGS_PATH: /app/client_settings.yaml
deploy:
replicas: 1
volumes:
- ${HOST_REPO_DIR:-.}/fedn:/app/fedn
- ${HOST_REPO_DIR:-.}/examples/monai-2D-mednist/client_settings.yaml:/app/client_settings.yaml

client2:
extends:
Expand Down
8 changes: 0 additions & 8 deletions examples/monai-2D-mednist/requirements.txt

This file was deleted.

0 comments on commit 9817a5d

Please sign in to comment.