π paper link: Federated Unlearning with Oriented Saliency Compression (IJCNN 2025)
Before running the code, ensure you have the following libraries installed:
pip install torch torchvision numpy pyyamlFedUOSC/
βββ config/
β βββ [dataset.yaml] # configuration files
βββ code/
β βββ [model.py] # Model definitions
β βββ [utils.py] # Utility functions
β βββ [unlearning.py] # Unlearning methods
β βββ [main.py] # Main script
βββ [README.md]
-
Configuration File: prepare a
.yamlconfiguration file before running the program or you can use the default file in./config, wherecumeans client removal andsumeans sample removal in federated system. -
Run the Program: execute the following command to start the program:
python code/main.py --config <path_to_config_file> --setting <configuration_name>for example:
python code/main.py --config config/cifar10.yaml --setting cu_iid
- Datasets will be automatically downloaded to the specified path (change your dataset path in
./code/utils.py). - Adjust the parameters in the configuration file as needed.