piyushgrover commited on
Commit
c2fb3c8
·
verified ·
1 Parent(s): 26ba27b

Update config.py

Browse files
Files changed (1) hide show
  1. config.py +3 -2
config.py CHANGED
@@ -41,7 +41,7 @@ train_transforms = A.Compose(
41
  A.PadIfNeeded(
42
  min_height=int(IMAGE_SIZE * scale),
43
  min_width=int(IMAGE_SIZE * scale),
44
- border_mode=cv2.BORDER_CONSTANT,
45
  ),
46
  A.Rotate(limit = 10, interpolation=1, border_mode=4),
47
  A.RandomCrop(width=IMAGE_SIZE, height=IMAGE_SIZE),
@@ -70,7 +70,8 @@ test_transforms = A.Compose(
70
  [
71
  A.LongestMaxSize(max_size=IMAGE_SIZE),
72
  A.PadIfNeeded(
73
- min_height=IMAGE_SIZE, min_width=IMAGE_SIZE, border_mode=cv2.BORDER_CONSTANT
 
74
  ),
75
  A.Normalize(mean=[0, 0, 0], std=[1, 1, 1], max_pixel_value=255,),
76
  ToTensorV2(),
 
41
  A.PadIfNeeded(
42
  min_height=int(IMAGE_SIZE * scale),
43
  min_width=int(IMAGE_SIZE * scale),
44
+ border_mode=cv2.BORDER_CONSTANT
45
  ),
46
  A.Rotate(limit = 10, interpolation=1, border_mode=4),
47
  A.RandomCrop(width=IMAGE_SIZE, height=IMAGE_SIZE),
 
70
  [
71
  A.LongestMaxSize(max_size=IMAGE_SIZE),
72
  A.PadIfNeeded(
73
+ min_height=IMAGE_SIZE, min_width=IMAGE_SIZE, border_mode=cv2.BORDER_CONSTANT,
74
+ values=(0, 0, 0)
75
  ),
76
  A.Normalize(mean=[0, 0, 0], std=[1, 1, 1], max_pixel_value=255,),
77
  ToTensorV2(),