Skip to content

Commit

Permalink
Working on ImgMch, 3
Browse files Browse the repository at this point in the history
  • Loading branch information
osmr committed Jul 4, 2019
1 parent c79ac1a commit 69e8373
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gluon/datasets/hpatches_mch_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ def __init__(self,
def __getitem__(self, index):
# image = cv2.imread(self.image_paths[index], flags=cv2.IMREAD_GRAYSCALE)
# warped_image = cv2.imread(self.warped_image_paths[index], flags=cv2.IMREAD_GRAYSCALE)
image = mx.image.imread(self.image_paths[index], flag=0)
warped_image = mx.image.imread(self.warped_image_paths[index], flag=0)
# image = mx.image.imread(self.image_paths[index], flag=0)
# warped_image = mx.image.imread(self.warped_image_paths[index], flag=0)
image = mx.nd.array(cv2.imread(self.image_paths[index], flags=0))
warped_image = mx.nd.array(cv2.imread(self.warped_image_paths[index], flags=0))
homography = mx.nd.array(self.homographies[index])

if self.transform is not None:
Expand Down

0 comments on commit 69e8373

Please sign in to comment.