Skip to content

Commit 7b24ce4

Browse files
NicolasHugfacebook-github-bot
authored andcommitted
[fbsync] Fix IoUs reported in segmentation references (#7916)
Summary: Co-authored-by: Nicolas Hug <[email protected]> Reviewed By: matteobettini Differential Revision: D49600769 fbshipit-source-id: 968021fd29ea9699cb4924e23709f00b5e85ce7b
1 parent 0fee15d commit 7b24ce4

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)