NVFlare icon indicating copy to clipboard operation
NVFlare copied to clipboard

Federated learning "validate all" command undefined

Open LSnyd opened this issue 4 years ago • 3 comments

Hi all,

I am running a FL training pipeline with monai (0.8.0) and NvFlare(2.0.10). According to https://nvidia.github.io/NVFlare/user_guide/admin_commands.html it should be possible to run a cross-site validation for all clients. However, I only get an "Undefined server command validate" error when running the command validate all.

All other commands such as check_status server work well for me from the admin terminal.

LSnyd avatar Feb 11 '22 09:02 LSnyd

Hello, thank you for bringing this to my attention, I thought this had been removed and will submit a PR connected to this issue to remove it from that documentation.

In NVFlare version 1, cross-site validation was built into the framework itself. In NVFlare 2.0, with the ability to have customized workflows, cross-site validation is no longer in the NVFlare framework but is handled by the workflow, so the command is no longer supported.

In the cifar10 example, config_fed_server.json is configured with pt.validation_json_generator.ValidationJsonGenerator to write the cross-site validation results to a JSON file.

nvkevlu avatar Feb 11 '22 12:02 nvkevlu

That's good to know, thanks a lot :)

LSnyd avatar Feb 11 '22 13:02 LSnyd

FYI, if using the admin client console, results can be shown using

> cat server run_1/cross_site_val/cross_site_val.json

and can be downloaded to the admin's machine using this command:

> download_folder ../run_1/cross_site_val

holgerroth avatar Feb 16 '22 14:02 holgerroth