Closed SanphouWang closed 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.
After running preprocess.py, you can additionally run python generate_data.py -d domain --iid 1 to fully shuffle all data.
preprocess.py
python generate_data.py -d domain --iid 1
Thanks for your answer, I have found it
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.