We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 705caeb commit 505b1e6Copy full SHA for 505b1e6
datasets.py
@@ -45,7 +45,7 @@ def get_data(self, data_path):
45
46
def __getitem__(self, index):
47
# read images in grayscale, then invert them
48
- img = 255 - cv2.imread(self.imgs_data[index] ,0)
+ img = cv2.imread(self.imgs_data[index] ,0)
49
50
# check if img height exceeds out_size height
51
if img.shape[0] > self.out_size[0]:
0 commit comments