-
Notifications
You must be signed in to change notification settings - Fork 13
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
Crash at hierarchical_info_loss on office dataset #4
Comments
i meet the same problem, Have you solved it? |
sadly, no |
I solved it! You may get help at https://stackoverflow.com/questions/18665873/filtering-a-list-based-on-a-list-of-booleans. |
May you share how you modify the code? thanks |
This should work
|
Hi
At the first line of hierarchical_info_loss
f_pos = np.array(all_f)[all_global_protos_keys == label.item()][0].to(self.device)
The debugger reports
Exception has occurred: ValueError
setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (10,) + inhomogeneous part.
I think it is due to different classes having different number of clusters
Partition 0: 3 clusters
Partition 0: 2 clusters
Partition 0: 3 clusters
Partition 0: 3 clusters
Partition 0: 2 clusters
Partition 0: 3 clusters
Partition 0: 3 clusters
Partition 0: 2 clusters
Partition 0: 1 clusters
Partition 0: 2 clusters
fl_digits also encounter the same problem
Partition 0: 3 clusters
Partition 0: 2 clusters
Partition 0: 4 clusters
Partition 0: 4 clusters
Partition 0: 4 clusters
Partition 0: 2 clusters
Partition 0: 5 clusters
Partition 1: 2 clusters
Partition 0: 2 clusters
Partition 0: 4 clusters
Partition 1: 2 clusters
Partition 0: 3 clusters
May you help me with this issue?
Thanks
The text was updated successfully, but these errors were encountered: