Skip to content

Commit

Permalink
Update datasets.py
Browse files Browse the repository at this point in the history
Comment redundant lines
  • Loading branch information
st7ma784 authored Jan 30, 2025
1 parent e21de13 commit 03fb814
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mapreader/classify/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -867,10 +867,10 @@ class PatchFromImageDataset(PatchDataset):
# overwrite the __getitem__ method to return the image patch
def __init__(self, args*, **kwargs):
super().__init__(args*, **kwargs)
if "method" in kwargs:
self.method = kwargs["method"]
else:
self.method = "pixels"
#if "method" in kwargs:
# self.method = kwargs["method"]
#else:
# self.method = "pixels"
def get_patch(self, idx):
# load original image
img= self.return_orig_image(idx)
Expand Down

0 comments on commit 03fb814

Please sign in to comment.