Skip to content

Commit

Permalink
Merge pull request #86 from johnnylu305/master
Browse files Browse the repository at this point in the history
Update voc.py
  • Loading branch information
kazuto1011 committed Aug 2, 2020
2 parents 4b71ed4 + 380b11d commit 4219467
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/datasets/voc.py
Expand Up @@ -45,8 +45,8 @@ def _set_files(self):
def _load_data(self, index):
# Set paths
image_id = self.files[index]
image_path = osp.join(self.root, self.image_dir, image_id + ".jpg")
label_path = osp.join(self.root, self.label_dir, image_id + ".png")
image_path = osp.join(self.image_dir, image_id + ".jpg")
label_path = osp.join(self.label_dir, image_id + ".png")
# Load an image
image = cv2.imread(image_path, cv2.IMREAD_COLOR).astype(np.float32)
label = np.asarray(Image.open(label_path), dtype=np.int32)
Expand Down

0 comments on commit 4219467

Please sign in to comment.