├── FairFL ├── APACHE-LICENSE-2.0.txt ├── README.md ├── algs │ ├── algorithms.ipynb │ ├── algorithms.py │ └── run.py ├── bash │ └── cifar10 │ │ ├── afl.sh │ │ ├── fedavg.sh │ │ ├── propfair.sh │ │ ├── qfedavg.sh │ │ ├── qffl.sh │ │ ├── sweep_afl.sh │ │ ├── sweep_fedavg.sh │ │ ├── sweep_pf.sh │ │ ├── sweep_qfedavg.sh │ │ ├── sweep_term.sh │ │ └── term.sh ├── data │ ├── Shakespeare │ │ ├── __init__.py │ │ ├── dataset │ │ │ ├── __init__.py │ │ │ └── shakespeare_dataset.py │ │ ├── shakespeare │ │ │ ├── preprocess.sh │ │ │ └── preprocess │ │ │ │ ├── data_to_json.sh │ │ │ │ ├── gen_all_data.py │ │ │ │ ├── get_data.sh │ │ │ │ ├── preprocess_shakespeare.py │ │ │ │ └── shake_utils.py │ │ └── utils │ │ │ ├── README.md │ │ │ ├── __init__.py │ │ │ ├── constants.py │ │ │ ├── preprocess.sh │ │ │ ├── remove_users.py │ │ │ ├── sample.py │ │ │ ├── split_data.py │ │ │ ├── stats.py │ │ │ └── util.py │ ├── StackOverflow │ │ ├── generate_StackOverflow_nwp.py │ │ └── utils.py │ ├── download_cinic10.sh │ ├── download_tinyimagenet.sh │ ├── preprocess_shakespeare.py │ └── preprocess_vision.py ├── models │ ├── models.py │ └── resnet.py ├── third_party_notice └── utils │ ├── aggregate.py │ ├── eval.py │ ├── io.py │ ├── project.py │ ├── sampler.py │ └── save.py ├── Federated_Domain_Generalization ├── APACHE-LICENSE-2.0.txt ├── README.md ├── flsuite │ ├── __init__.py │ ├── algs │ │ ├── __init__.py │ │ ├── afl.py │ │ ├── fed_avg.py │ │ ├── fed_irm.py │ │ ├── fed_prox.py │ │ ├── individual_train.py │ │ ├── trainers.py │ │ └── var_min.py │ ├── data │ │ ├── __init__.py │ │ ├── datasets │ │ │ ├── __init__.py │ │ │ ├── mnist.py │ │ │ ├── office_home.py │ │ │ └── pacs.py │ │ ├── processing │ │ │ ├── __init__.py │ │ │ └── preprocess.py │ │ └── utils.py │ ├── models │ │ ├── __init__.py │ │ ├── models.py │ │ └── utils.py │ └── utils │ │ ├── __init__.py │ │ ├── aggregate.py │ │ ├── eval.py │ │ ├── io.py │ │ ├── optim.py │ │ ├── print.py │ │ ├── project.py │ │ └── save.py ├── notebooks │ ├── comparison_irm_penalties.ipynb │ ├── data_augmentation_DG_full_set.ipynb │ ├── experiments_fl_rmnist.ipynb │ └── utils.py ├── requirements.txt ├── scripts │ ├── dg_office_home.py │ ├── dg_pacs.py │ ├── dg_rmnist.py │ ├── fl_fed_avg_steps.py │ ├── fl_office_home.py │ ├── fl_pacs.py │ └── fl_rmnist.py ├── setup.py └── third_party_notice.txt ├── HessianAlignment ├── APACHE-LICENSE-2.0.txt ├── README.md ├── cmnist │ ├── cmnist_HGP.py │ ├── cmnist_HGP_imbalanced.py │ ├── cmnist_Hutchinson.py │ └── cmnist_Hutchinson_imbalanced.py ├── domainbed │ ├── algorithms.py │ ├── command_launchers.py │ ├── datasets.py │ ├── evaluator.py │ ├── hparams_registry.py │ ├── lib │ │ ├── fast_data_loader.py │ │ ├── misc.py │ │ ├── query.py │ │ ├── reporting.py │ │ └── wide_resnet.py │ ├── model_selection.py │ ├── networks.py │ ├── requirements.txt │ ├── scripts │ │ ├── collect_results.py │ │ ├── download.py │ │ ├── list_top_hparams.py │ │ ├── save_images.py │ │ ├── sweep.py │ │ └── train.py │ └── test │ │ ├── helpers.py │ │ ├── lib │ │ ├── test_misc.py │ │ └── test_query.py │ │ ├── scripts │ │ ├── test_collect_results.py │ │ ├── test_sweep.py │ │ └── test_train.py │ │ ├── test_datasets.py │ │ ├── test_hparams_registry.py │ │ ├── test_model_selection.py │ │ ├── test_models.py │ │ └── test_networks.py ├── mindspore │ └── mindspore_inference.py └── third_party_notice.txt ├── Layer_Normalization ├── LICENSE.md ├── README.md ├── algs │ ├── algorithms.py │ ├── client_train.py │ └── feddecorr.py ├── data │ └── preprocess_vision.py ├── models │ ├── cnn.py │ └── resnet.py ├── requirements-conda.txt ├── requirements-pip.txt ├── run_fl.py ├── third_party_notice.md └── utils │ ├── aggregate.py │ ├── data.py │ ├── eval.py │ ├── io.py │ └── random.py └── README.md /FairFL/APACHE-LICENSE-2.0.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/APACHE-LICENSE-2.0.txt -------------------------------------------------------------------------------- /FairFL/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/README.md -------------------------------------------------------------------------------- /FairFL/algs/algorithms.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/algs/algorithms.ipynb -------------------------------------------------------------------------------- /FairFL/algs/algorithms.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/algs/algorithms.py -------------------------------------------------------------------------------- /FairFL/algs/run.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/algs/run.py -------------------------------------------------------------------------------- /FairFL/bash/cifar10/afl.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/bash/cifar10/afl.sh -------------------------------------------------------------------------------- /FairFL/bash/cifar10/fedavg.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/bash/cifar10/fedavg.sh -------------------------------------------------------------------------------- /FairFL/bash/cifar10/propfair.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/bash/cifar10/propfair.sh -------------------------------------------------------------------------------- /FairFL/bash/cifar10/qfedavg.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/bash/cifar10/qfedavg.sh -------------------------------------------------------------------------------- /FairFL/bash/cifar10/qffl.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/bash/cifar10/qffl.sh -------------------------------------------------------------------------------- /FairFL/bash/cifar10/sweep_afl.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/bash/cifar10/sweep_afl.sh -------------------------------------------------------------------------------- /FairFL/bash/cifar10/sweep_fedavg.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/bash/cifar10/sweep_fedavg.sh -------------------------------------------------------------------------------- /FairFL/bash/cifar10/sweep_pf.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/bash/cifar10/sweep_pf.sh -------------------------------------------------------------------------------- /FairFL/bash/cifar10/sweep_qfedavg.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/bash/cifar10/sweep_qfedavg.sh -------------------------------------------------------------------------------- /FairFL/bash/cifar10/sweep_term.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/bash/cifar10/sweep_term.sh -------------------------------------------------------------------------------- /FairFL/bash/cifar10/term.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/bash/cifar10/term.sh -------------------------------------------------------------------------------- /FairFL/data/Shakespeare/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/data/Shakespeare/__init__.py -------------------------------------------------------------------------------- /FairFL/data/Shakespeare/dataset/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/data/Shakespeare/dataset/__init__.py -------------------------------------------------------------------------------- /FairFL/data/Shakespeare/dataset/shakespeare_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/data/Shakespeare/dataset/shakespeare_dataset.py -------------------------------------------------------------------------------- /FairFL/data/Shakespeare/shakespeare/preprocess.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/data/Shakespeare/shakespeare/preprocess.sh -------------------------------------------------------------------------------- /FairFL/data/Shakespeare/shakespeare/preprocess/data_to_json.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/data/Shakespeare/shakespeare/preprocess/data_to_json.sh -------------------------------------------------------------------------------- /FairFL/data/Shakespeare/shakespeare/preprocess/gen_all_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/data/Shakespeare/shakespeare/preprocess/gen_all_data.py -------------------------------------------------------------------------------- /FairFL/data/Shakespeare/shakespeare/preprocess/get_data.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/data/Shakespeare/shakespeare/preprocess/get_data.sh -------------------------------------------------------------------------------- /FairFL/data/Shakespeare/shakespeare/preprocess/preprocess_shakespeare.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/data/Shakespeare/shakespeare/preprocess/preprocess_shakespeare.py -------------------------------------------------------------------------------- /FairFL/data/Shakespeare/shakespeare/preprocess/shake_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/data/Shakespeare/shakespeare/preprocess/shake_utils.py -------------------------------------------------------------------------------- /FairFL/data/Shakespeare/utils/README.md: -------------------------------------------------------------------------------- 1 | # UTILS README 2 | 3 | This folder contains leaf preprocessed scripts 4 | 5 | -------------------------------------------------------------------------------- /FairFL/data/Shakespeare/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /FairFL/data/Shakespeare/utils/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/data/Shakespeare/utils/constants.py -------------------------------------------------------------------------------- /FairFL/data/Shakespeare/utils/preprocess.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/data/Shakespeare/utils/preprocess.sh -------------------------------------------------------------------------------- /FairFL/data/Shakespeare/utils/remove_users.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/data/Shakespeare/utils/remove_users.py -------------------------------------------------------------------------------- /FairFL/data/Shakespeare/utils/sample.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/data/Shakespeare/utils/sample.py -------------------------------------------------------------------------------- /FairFL/data/Shakespeare/utils/split_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/data/Shakespeare/utils/split_data.py -------------------------------------------------------------------------------- /FairFL/data/Shakespeare/utils/stats.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/data/Shakespeare/utils/stats.py -------------------------------------------------------------------------------- /FairFL/data/Shakespeare/utils/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/data/Shakespeare/utils/util.py -------------------------------------------------------------------------------- /FairFL/data/StackOverflow/generate_StackOverflow_nwp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/data/StackOverflow/generate_StackOverflow_nwp.py -------------------------------------------------------------------------------- /FairFL/data/StackOverflow/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/data/StackOverflow/utils.py -------------------------------------------------------------------------------- /FairFL/data/download_cinic10.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/data/download_cinic10.sh -------------------------------------------------------------------------------- /FairFL/data/download_tinyimagenet.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/data/download_tinyimagenet.sh -------------------------------------------------------------------------------- /FairFL/data/preprocess_shakespeare.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/data/preprocess_shakespeare.py -------------------------------------------------------------------------------- /FairFL/data/preprocess_vision.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/data/preprocess_vision.py -------------------------------------------------------------------------------- /FairFL/models/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/models/models.py -------------------------------------------------------------------------------- /FairFL/models/resnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/models/resnet.py -------------------------------------------------------------------------------- /FairFL/third_party_notice: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/third_party_notice -------------------------------------------------------------------------------- /FairFL/utils/aggregate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/utils/aggregate.py -------------------------------------------------------------------------------- /FairFL/utils/eval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/utils/eval.py -------------------------------------------------------------------------------- /FairFL/utils/io.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/utils/io.py -------------------------------------------------------------------------------- /FairFL/utils/project.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/utils/project.py -------------------------------------------------------------------------------- /FairFL/utils/sampler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/utils/sampler.py -------------------------------------------------------------------------------- /FairFL/utils/save.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/FairFL/utils/save.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/APACHE-LICENSE-2.0.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/APACHE-LICENSE-2.0.txt -------------------------------------------------------------------------------- /Federated_Domain_Generalization/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/README.md -------------------------------------------------------------------------------- /Federated_Domain_Generalization/flsuite/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/flsuite/__init__.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/flsuite/algs/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/flsuite/algs/__init__.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/flsuite/algs/afl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/flsuite/algs/afl.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/flsuite/algs/fed_avg.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/flsuite/algs/fed_avg.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/flsuite/algs/fed_irm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/flsuite/algs/fed_irm.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/flsuite/algs/fed_prox.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/flsuite/algs/fed_prox.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/flsuite/algs/individual_train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/flsuite/algs/individual_train.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/flsuite/algs/trainers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/flsuite/algs/trainers.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/flsuite/algs/var_min.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/flsuite/algs/var_min.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/flsuite/data/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/flsuite/data/__init__.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/flsuite/data/datasets/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/flsuite/data/datasets/__init__.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/flsuite/data/datasets/mnist.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/flsuite/data/datasets/mnist.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/flsuite/data/datasets/office_home.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/flsuite/data/datasets/office_home.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/flsuite/data/datasets/pacs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/flsuite/data/datasets/pacs.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/flsuite/data/processing/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/flsuite/data/processing/__init__.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/flsuite/data/processing/preprocess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/flsuite/data/processing/preprocess.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/flsuite/data/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/flsuite/data/utils.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/flsuite/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/flsuite/models/__init__.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/flsuite/models/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/flsuite/models/models.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/flsuite/models/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/flsuite/models/utils.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/flsuite/utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/flsuite/utils/__init__.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/flsuite/utils/aggregate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/flsuite/utils/aggregate.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/flsuite/utils/eval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/flsuite/utils/eval.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/flsuite/utils/io.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/flsuite/utils/io.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/flsuite/utils/optim.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/flsuite/utils/optim.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/flsuite/utils/print.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/flsuite/utils/print.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/flsuite/utils/project.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/flsuite/utils/project.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/flsuite/utils/save.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/flsuite/utils/save.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/notebooks/comparison_irm_penalties.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/notebooks/comparison_irm_penalties.ipynb -------------------------------------------------------------------------------- /Federated_Domain_Generalization/notebooks/data_augmentation_DG_full_set.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/notebooks/data_augmentation_DG_full_set.ipynb -------------------------------------------------------------------------------- /Federated_Domain_Generalization/notebooks/experiments_fl_rmnist.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/notebooks/experiments_fl_rmnist.ipynb -------------------------------------------------------------------------------- /Federated_Domain_Generalization/notebooks/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/notebooks/utils.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/requirements.txt -------------------------------------------------------------------------------- /Federated_Domain_Generalization/scripts/dg_office_home.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/scripts/dg_office_home.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/scripts/dg_pacs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/scripts/dg_pacs.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/scripts/dg_rmnist.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/scripts/dg_rmnist.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/scripts/fl_fed_avg_steps.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/scripts/fl_fed_avg_steps.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/scripts/fl_office_home.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/scripts/fl_office_home.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/scripts/fl_pacs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/scripts/fl_pacs.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/scripts/fl_rmnist.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/scripts/fl_rmnist.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/setup.py -------------------------------------------------------------------------------- /Federated_Domain_Generalization/third_party_notice.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Federated_Domain_Generalization/third_party_notice.txt -------------------------------------------------------------------------------- /HessianAlignment/APACHE-LICENSE-2.0.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/APACHE-LICENSE-2.0.txt -------------------------------------------------------------------------------- /HessianAlignment/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/README.md -------------------------------------------------------------------------------- /HessianAlignment/cmnist/cmnist_HGP.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/cmnist/cmnist_HGP.py -------------------------------------------------------------------------------- /HessianAlignment/cmnist/cmnist_HGP_imbalanced.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/cmnist/cmnist_HGP_imbalanced.py -------------------------------------------------------------------------------- /HessianAlignment/cmnist/cmnist_Hutchinson.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/cmnist/cmnist_Hutchinson.py -------------------------------------------------------------------------------- /HessianAlignment/cmnist/cmnist_Hutchinson_imbalanced.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/cmnist/cmnist_Hutchinson_imbalanced.py -------------------------------------------------------------------------------- /HessianAlignment/domainbed/algorithms.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/domainbed/algorithms.py -------------------------------------------------------------------------------- /HessianAlignment/domainbed/command_launchers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/domainbed/command_launchers.py -------------------------------------------------------------------------------- /HessianAlignment/domainbed/datasets.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/domainbed/datasets.py -------------------------------------------------------------------------------- /HessianAlignment/domainbed/evaluator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/domainbed/evaluator.py -------------------------------------------------------------------------------- /HessianAlignment/domainbed/hparams_registry.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/domainbed/hparams_registry.py -------------------------------------------------------------------------------- /HessianAlignment/domainbed/lib/fast_data_loader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/domainbed/lib/fast_data_loader.py -------------------------------------------------------------------------------- /HessianAlignment/domainbed/lib/misc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/domainbed/lib/misc.py -------------------------------------------------------------------------------- /HessianAlignment/domainbed/lib/query.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/domainbed/lib/query.py -------------------------------------------------------------------------------- /HessianAlignment/domainbed/lib/reporting.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/domainbed/lib/reporting.py -------------------------------------------------------------------------------- /HessianAlignment/domainbed/lib/wide_resnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/domainbed/lib/wide_resnet.py -------------------------------------------------------------------------------- /HessianAlignment/domainbed/model_selection.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/domainbed/model_selection.py -------------------------------------------------------------------------------- /HessianAlignment/domainbed/networks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/domainbed/networks.py -------------------------------------------------------------------------------- /HessianAlignment/domainbed/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/domainbed/requirements.txt -------------------------------------------------------------------------------- /HessianAlignment/domainbed/scripts/collect_results.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/domainbed/scripts/collect_results.py -------------------------------------------------------------------------------- /HessianAlignment/domainbed/scripts/download.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/domainbed/scripts/download.py -------------------------------------------------------------------------------- /HessianAlignment/domainbed/scripts/list_top_hparams.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/domainbed/scripts/list_top_hparams.py -------------------------------------------------------------------------------- /HessianAlignment/domainbed/scripts/save_images.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/domainbed/scripts/save_images.py -------------------------------------------------------------------------------- /HessianAlignment/domainbed/scripts/sweep.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/domainbed/scripts/sweep.py -------------------------------------------------------------------------------- /HessianAlignment/domainbed/scripts/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/domainbed/scripts/train.py -------------------------------------------------------------------------------- /HessianAlignment/domainbed/test/helpers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/domainbed/test/helpers.py -------------------------------------------------------------------------------- /HessianAlignment/domainbed/test/lib/test_misc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/domainbed/test/lib/test_misc.py -------------------------------------------------------------------------------- /HessianAlignment/domainbed/test/lib/test_query.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/domainbed/test/lib/test_query.py -------------------------------------------------------------------------------- /HessianAlignment/domainbed/test/scripts/test_collect_results.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/domainbed/test/scripts/test_collect_results.py -------------------------------------------------------------------------------- /HessianAlignment/domainbed/test/scripts/test_sweep.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/domainbed/test/scripts/test_sweep.py -------------------------------------------------------------------------------- /HessianAlignment/domainbed/test/scripts/test_train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/domainbed/test/scripts/test_train.py -------------------------------------------------------------------------------- /HessianAlignment/domainbed/test/test_datasets.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/domainbed/test/test_datasets.py -------------------------------------------------------------------------------- /HessianAlignment/domainbed/test/test_hparams_registry.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/domainbed/test/test_hparams_registry.py -------------------------------------------------------------------------------- /HessianAlignment/domainbed/test/test_model_selection.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/domainbed/test/test_model_selection.py -------------------------------------------------------------------------------- /HessianAlignment/domainbed/test/test_models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/domainbed/test/test_models.py -------------------------------------------------------------------------------- /HessianAlignment/domainbed/test/test_networks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/domainbed/test/test_networks.py -------------------------------------------------------------------------------- /HessianAlignment/mindspore/mindspore_inference.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/mindspore/mindspore_inference.py -------------------------------------------------------------------------------- /HessianAlignment/third_party_notice.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/HessianAlignment/third_party_notice.txt -------------------------------------------------------------------------------- /Layer_Normalization/LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Layer_Normalization/LICENSE.md -------------------------------------------------------------------------------- /Layer_Normalization/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Layer_Normalization/README.md -------------------------------------------------------------------------------- /Layer_Normalization/algs/algorithms.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Layer_Normalization/algs/algorithms.py -------------------------------------------------------------------------------- /Layer_Normalization/algs/client_train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Layer_Normalization/algs/client_train.py -------------------------------------------------------------------------------- /Layer_Normalization/algs/feddecorr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Layer_Normalization/algs/feddecorr.py -------------------------------------------------------------------------------- /Layer_Normalization/data/preprocess_vision.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Layer_Normalization/data/preprocess_vision.py -------------------------------------------------------------------------------- /Layer_Normalization/models/cnn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Layer_Normalization/models/cnn.py -------------------------------------------------------------------------------- /Layer_Normalization/models/resnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Layer_Normalization/models/resnet.py -------------------------------------------------------------------------------- /Layer_Normalization/requirements-conda.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Layer_Normalization/requirements-conda.txt -------------------------------------------------------------------------------- /Layer_Normalization/requirements-pip.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Layer_Normalization/requirements-pip.txt -------------------------------------------------------------------------------- /Layer_Normalization/run_fl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Layer_Normalization/run_fl.py -------------------------------------------------------------------------------- /Layer_Normalization/third_party_notice.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Layer_Normalization/third_party_notice.md -------------------------------------------------------------------------------- /Layer_Normalization/utils/aggregate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Layer_Normalization/utils/aggregate.py -------------------------------------------------------------------------------- /Layer_Normalization/utils/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Layer_Normalization/utils/data.py -------------------------------------------------------------------------------- /Layer_Normalization/utils/eval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Layer_Normalization/utils/eval.py -------------------------------------------------------------------------------- /Layer_Normalization/utils/io.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Layer_Normalization/utils/io.py -------------------------------------------------------------------------------- /Layer_Normalization/utils/random.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/Layer_Normalization/utils/random.py -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huawei-noah/Federated-Learning/HEAD/README.md --------------------------------------------------------------------------------