Skip to content

Commit c689ed3

Browse files
committed
datasets: Remove function
1 parent a37018b commit c689ed3

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

utils/datasets.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,6 @@ def __getitem__(self, index: int) -> Tuple[Any, Any]:
5757

5858
return image, target
5959

60-
def _get_target_suffix(self, mode: str, target_type: str) -> str:
61-
if target_type == 'instance':
62-
return '{}_instanceIds.png'.format(mode)
63-
elif target_type == 'semantic':
64-
return '{}_customLabelIds.png'.format(mode)
65-
elif target_type == 'color':
66-
return '{}_color.png'.format(mode)
67-
else:
68-
return '{}_polygons.json'.format(mode)
69-
7060

7161
class VOCSegmentation(torchvision.datasets.VOCSegmentation):
7262
VOCClasses = namedtuple('VOCClasses', ['name', 'classId', 'color'])

0 commit comments

Comments
 (0)