Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python generate_Flowers102.py noniid - pat时 报错 #188

Open
maxwellgodv opened this issue May 7, 2024 · 0 comments
Open

python generate_Flowers102.py noniid - pat时 报错 #188

maxwellgodv opened this issue May 7, 2024 · 0 comments

Comments

@maxwellgodv
Copy link

您好,python generate_Flowers102.py noniid - pat时 报错

Traceback (most recent call last):
File "/Users/macbookpro/PycharmProjects/PFLlib-master/dataset/generate_Flowers102.py", line 72, in
generate_Flowers102(dir_path, num_clients, niid, balance, partition)
File "/Users/macbookpro/PycharmProjects/PFLlib-master/dataset/generate_Flowers102.py", line 60, in generate_Flowers102
X, y, statistic = separate_data((dataset_image, dataset_label), num_clients, num_classes,
File "/Users/macbookpro/PycharmProjects/PFLlib-master/dataset/utils/dataset_utils.py", line 84, in separate_data
num_per = num_all_samples / num_selected_clients
ZeroDivisionError: division by zero
请问如何解决,感谢您的回复!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant