Skip to content
Snippets Groups Projects
Commit e60d34af authored by Cao Yuhang's avatar Cao Yuhang Committed by Kai Chen
Browse files

Fix albu mask format bug (#1818)

parent c67cf3c4
No related branches found
No related tags found
No related merge requests found
......@@ -833,9 +833,8 @@ class Albu(object):
results[label] = np.array(
[results[label][i] for i in results['idx_mapper']])
if 'masks' in results:
results['masks'] = [
results['masks'][i] for i in results['idx_mapper']
]
results['masks'] = np.array(
[results['masks'][i] for i in results['idx_mapper']])
if (not len(results['idx_mapper'])
and self.skip_img_without_anno):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment