You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: configs/rec/crnn/crnn_resnet34.yaml
+11-18Lines changed: 11 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -162,30 +162,23 @@ predict:
162
162
shuffle: False
163
163
transform_pipeline:
164
164
- DecodeImage:
165
-
img_mode: BGR
165
+
img_mode: RGB
166
166
to_float32: False
167
-
# - RecCTCLabelEncode:
168
-
# max_text_len: *max_text_len
169
-
# character_dict_path: *character_dict_path
170
-
# use_space_char: *use_space_char
171
-
# lower: True
172
-
- RecResizeImg: # different from paddle (paddle converts image from HWC to CHW and rescale to [-1, 1] after resize.
173
-
image_shape: [32, 100] # H, W
174
-
infer_mode: *infer_mode
175
-
character_dict_path: *character_dict_path
176
-
padding: False # aspect ratio will be preserved if true.
177
-
- NormalizeImage: # different from paddle (paddle wrongly normalize BGR image with RGB mean/std from ImageNet for det, and simple rescale to [-1, 1] in rec.
178
-
bgr_to_rgb: True
179
-
is_hwc: True
180
-
mean : [127.0, 127.0, 127.0]
181
-
std : [127.0, 127.0, 127.0]
167
+
- RecResizeNormForInfer:
168
+
target_height: 32
169
+
target_width: 100
170
+
keep_ratio: False
171
+
padding: False
172
+
norm_before_pad: False
182
173
- ToCHWImage:
183
174
# the order of the dataloader list, matching the network input and the input labels for the loss function, and optional data for debug/visaulize
0 commit comments