Skip to content

Commit

Permalink
core: dataset: remove unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
hhk7734 committed Jun 19, 2020
1 parent 2de5f4e commit 5a8d591
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ def __init__(self, dataset_type):
self.anchor_per_scale = cfg.YOLO.ANCHOR_PER_SCALE
self.max_bbox_per_scale = 150

self.annotations = self.load_annotations(dataset_type)
self.annotations = self.load_annotations()
self.num_samples = len(self.annotations)
self.num_batchs = int(np.ceil(self.num_samples / self.batch_size))
self.batch_count = 0

def load_annotations(self, dataset_type):
def load_annotations(self):
with open(self.annot_path, "r") as f:
txt = f.readlines()
annotations = [
Expand Down

0 comments on commit 5a8d591

Please sign in to comment.