nvflare.app_common.np.np_model_locator module¶
- class NPModelLocator(model_dir='models', model_name: str | Dict[str, str] = 'server.npy')[source]¶
Bases:
ModelLocatorThe ModelLocator’s job is to find the models to be included for cross site evaluation located on server. This NPModelLocator finds and extracts “server” model that is saved during training.
- Parameters:
model_dir (str) – Directory to look for models in. Defaults to “model”
model_name (Union[str, Dict[str, str]]) – model names and locations
- SERVER_MODEL_NAME = 'server'¶