Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions datasets/base_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ def read_images(self, img_path, mask_path, mask_out=False):
if (mask_out):
mask = self.drop_mask * mask

mask = mask.copy()
mask_copy = mask.copy()
for k, v in self.id_to_trainid.items():
binary_mask = (mask == k) #+ (gtCoarse == k)
binary_mask = (mask_copy == k) #+ (gtCoarse == k)
if ('refinement' in mask_path) and cfg.DROPOUT_COARSE_BOOST_CLASSES != None and v in cfg.DROPOUT_COARSE_BOOST_CLASSES and binary_mask.sum() > 0 and 'vidseq' not in mask_path:
binary_mask += (gtCoarse == k)
binary_mask[binary_mask >= 1] = 1
Expand Down