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
], [ # It uses 2 flipping enhancements (flipping and not flipping).
228
+
dict(type='RandomFlip', prob=1.),
229
+
dict(type='RandomFlip', prob=0.)
230
+
], [
231
+
dict(
232
+
type='PackDetInputs',
233
+
meta_keys=('img_id', 'img_path', 'ori_shape',
234
+
'img_shape', 'scale_factor', 'flip',
235
+
'flip_direction'))
236
+
]])]
237
+
```
238
+
239
+
Second, you can simplely run:
209
240
210
241
```shell
211
242
# Single-gpu testing
@@ -230,8 +261,7 @@ bash tools/dist_test.sh \
230
261
[--tta]
231
262
```
232
263
233
-
By default, we only use 2 flipping enhancements (flipping and not flipping).
234
-
You can also modify the config of TTA by yourself, such as adding scaling enhancement:
264
+
You can also modify the TTA config by yourself, such as adding scaling enhancement:
235
265
236
266
```shell
237
267
tta_model = dict(
@@ -263,11 +293,11 @@ tta_pipeline = [
263
293
264
294
The above data augmentation pipeline will first perform 3 multi-scaling enhancements on the image, followed by 2 flipping enhancements (flipping and not flipping). Finally, the image is packaged into the final result using PackDetInputs.
For more advanced usage and data flow of TTA, please refer to [MMEngine](https://mmengine.readthedocs.io/en/latest/advanced_tutorials/test_time_augmentation.html#data-flow). We will support instance segmentation TTA latter.
0 commit comments