Skip to content

Commit 505b1e6

Browse files
authored
modified custom_test_dataset
1 parent 705caeb commit 505b1e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datasets.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def get_data(self, data_path):
4545

4646
def __getitem__(self, index):
4747
# read images in grayscale, then invert them
48-
img = 255 - cv2.imread(self.imgs_data[index] ,0)
48+
img = cv2.imread(self.imgs_data[index] ,0)
4949

5050
# check if img height exceeds out_size height
5151
if img.shape[0] > self.out_size[0]:

0 commit comments

Comments
 (0)