未验证 提交 5aafa1b6 编写于 作者: C cnn 提交者: GitHub

fix stride data type (#2644)

上级 6c79e88c
...@@ -7,7 +7,7 @@ TrainReader: ...@@ -7,7 +7,7 @@ TrainReader:
- NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]} - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
- Permute: {} - Permute: {}
batch_transforms: batch_transforms:
- PadBatch: {pad_to_stride: -1.} - PadBatch: {pad_to_stride: -1}
batch_size: 1 batch_size: 1
shuffle: true shuffle: true
drop_last: true drop_last: true
...@@ -21,7 +21,7 @@ EvalReader: ...@@ -21,7 +21,7 @@ EvalReader:
- NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]} - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
- Permute: {} - Permute: {}
batch_transforms: batch_transforms:
- PadBatch: {pad_to_stride: -1.} - PadBatch: {pad_to_stride: -1}
batch_size: 1 batch_size: 1
shuffle: false shuffle: false
drop_last: false drop_last: false
...@@ -35,7 +35,7 @@ TestReader: ...@@ -35,7 +35,7 @@ TestReader:
- NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]} - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
- Permute: {} - Permute: {}
batch_transforms: batch_transforms:
- PadBatch: {pad_to_stride: -1.} - PadBatch: {pad_to_stride: -1}
batch_size: 1 batch_size: 1
shuffle: false shuffle: false
drop_last: false drop_last: false
...@@ -7,7 +7,7 @@ TrainReader: ...@@ -7,7 +7,7 @@ TrainReader:
- NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]} - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
- Permute: {} - Permute: {}
batch_transforms: batch_transforms:
- PadBatch: {pad_to_stride: -1.} - PadBatch: {pad_to_stride: -1}
batch_size: 1 batch_size: 1
shuffle: true shuffle: true
drop_last: true drop_last: true
...@@ -22,7 +22,7 @@ EvalReader: ...@@ -22,7 +22,7 @@ EvalReader:
- NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]} - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
- Permute: {} - Permute: {}
batch_transforms: batch_transforms:
- PadBatch: {pad_to_stride: -1.} - PadBatch: {pad_to_stride: -1}
batch_size: 1 batch_size: 1
shuffle: false shuffle: false
drop_last: false drop_last: false
...@@ -36,7 +36,7 @@ TestReader: ...@@ -36,7 +36,7 @@ TestReader:
- NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]} - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
- Permute: {} - Permute: {}
batch_transforms: batch_transforms:
- PadBatch: {pad_to_stride: -1.} - PadBatch: {pad_to_stride: -1}
batch_size: 1 batch_size: 1
shuffle: false shuffle: false
drop_last: false drop_last: false
......
...@@ -26,7 +26,7 @@ TrainReader: ...@@ -26,7 +26,7 @@ TrainReader:
channel_first: true channel_first: true
batch_transforms: batch_transforms:
- !PadBatch - !PadBatch
pad_to_stride: -1. pad_to_stride: -1
use_padded_im_info: false use_padded_im_info: false
batch_size: 1 batch_size: 1
shuffle: true shuffle: true
......
...@@ -27,7 +27,7 @@ TrainReader: ...@@ -27,7 +27,7 @@ TrainReader:
channel_first: true channel_first: true
batch_transforms: batch_transforms:
- !PadBatch - !PadBatch
pad_to_stride: -1. pad_to_stride: -1
use_padded_im_info: false use_padded_im_info: false
batch_size: 1 batch_size: 1
shuffle: true shuffle: true
......
...@@ -27,7 +27,7 @@ TrainReader: ...@@ -27,7 +27,7 @@ TrainReader:
channel_first: true channel_first: true
batch_transforms: batch_transforms:
- !PadBatch - !PadBatch
pad_to_stride: -1. pad_to_stride: -1
use_padded_im_info: false use_padded_im_info: false
batch_size: 1 batch_size: 1
shuffle: true shuffle: true
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册