Skip to content

Commit

Permalink
call init later
Browse files Browse the repository at this point in the history
  • Loading branch information
holgerroth committed Apr 26, 2024
1 parent 0145382 commit d6f1f58
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@

print_config()

# (2) initializes NVFlare client API
flare.init()

# Setup data directory
directory = os.environ.get("MONAI_DATA_DIRECTORY")
root_dir = tempfile.mkdtemp() if directory is None else directory
Expand Down Expand Up @@ -97,6 +94,9 @@
train_handlers=StatsHandler(),
)

# (2) initializes NVFlare client API
flare.init()

# (optional) calculate total steps
steps = max_epochs * len(train_loader)
# Run the training
Expand Down

0 comments on commit d6f1f58

Please sign in to comment.