Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Fix a bug #13

Merged
merged 1 commit into from
Oct 25, 2018
Merged
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 maskrcnn_benchmark/data/datasets/list_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


class ListDataset(object):
def __init__(self, image_list, transforms=None):
def __init__(self, image_lists, transforms=None):
self.image_lists = image_lists
self.transforms = transforms

Expand All @@ -26,7 +26,7 @@ def __getitem__(self, item):
return img, target

def __len__(self):
return len(image_lists)
return len(self.image_lists)

def get_img_info(self, item):
"""
Expand Down