Official repository for FedOBP
This repository is based on the FL-bench implementation.
pip install -r .env/requirements.txt
Partition the MNIST according to Dir(0.1) for 100 clients
python generate_data.py -d mnist -a 0.1 -cn 100
About methods of generating federated dastaset, go check data/README.md
for full details.
python main_fedobp.py [--config-path, --config-name] [dataset.name=<DATASET_NAME> args...]
python run_script_ablation.py
python main.py [--config-path, --config-name] [method=<METHOD_NAME> args...]
This implementation supports tensorboard
.
- Run
tensorboard --logdir=<your_log_dir>
on terminal. - Go check
localhost:6006
on your browser.
@inproceedings{chen2025fedobp,
title={FedOBP: Federated Optimal Brain Personalization with Few Personalized Parameters},
author={Chen, Xingyan and Du, Tian and Diao, Enmao},
year={2025},
url={https://github.com/uglyghost/FedOBP.git}
}