KarhouTam / FL-bench

Benchmark of federated learning. Dedicated to the community. 🤗
GNU General Public License v3.0
497 stars 79 forks source link

How to generate homogeneous partition of DomainNet? #40

Closed SanphouWang closed 1 year ago

SanphouWang commented 1 year ago

The preprocess.py in data/domain seems like can only generate heterogeneous partition, i.e., each client has only one doamin. How can I generate homogeneous partition for DomainNet. For example, the domain distributions on every client are the same.

KarhouTam commented 1 year ago

After running preprocess.py, you can additionally run python generate_data.py -d domain --iid 1 to fully shuffle all data.

SanphouWang commented 1 year ago

Thanks for your answer, I have found it