Skip to content

Commit 622bb26

Browse files
Fix IoUs reported in segmentation references (#7916)
Co-authored-by: Nicolas Hug <[email protected]>
1 parent 35677ec commit 622bb26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

references/segmentation/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def compute(self):
8888
return acc_global, acc, iu
8989

9090
def reduce_from_all_processes(self):
91-
reduce_across_processes(self.mat)
91+
self.mat = reduce_across_processes(self.mat).to(torch.int64)
9292

9393
def __str__(self):
9494
acc_global, acc, iu = self.compute()

0 commit comments

Comments
 (0)