Skip to content

Commit a947e3e

Browse files
authored
[FIx] Set default backend_args values to None (open-mmlab#2597)
## Motivation In MMEngine >= 0.2.0, it might directly determine what the backend is by using the `data_root` path. ## Modification Set all default `backend_args` values are `None`.
1 parent 2e27f8b commit a947e3e

File tree

21 files changed

+75
-83
lines changed

21 files changed

+75
-83
lines changed

configs/_base_/datasets/ade20k.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
]
2626
img_ratios = [0.5, 0.75, 1.0, 1.25, 1.5, 1.75]
2727
tta_pipeline = [
28-
dict(type='LoadImageFromFile', backend_args=dict(backend='local')),
28+
dict(type='LoadImageFromFile', backend_args=None),
2929
dict(
3030
type='TestTimeAug',
3131
transforms=[

configs/_base_/datasets/ade20k_640x640.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
]
2626
img_ratios = [0.5, 0.75, 1.0, 1.25, 1.5, 1.75]
2727
tta_pipeline = [
28-
dict(type='LoadImageFromFile', backend_args=dict(backend='local')),
28+
dict(type='LoadImageFromFile', backend_args=None),
2929
dict(
3030
type='TestTimeAug',
3131
transforms=[

configs/_base_/datasets/chase_db1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
]
2727
img_ratios = [0.5, 0.75, 1.0, 1.25, 1.5, 1.75]
2828
tta_pipeline = [
29-
dict(type='LoadImageFromFile', backend_args=dict(backend='local')),
29+
dict(type='LoadImageFromFile', backend_args=None),
3030
dict(
3131
type='TestTimeAug',
3232
transforms=[

configs/_base_/datasets/cityscapes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
]
2626
img_ratios = [0.5, 0.75, 1.0, 1.25, 1.5, 1.75]
2727
tta_pipeline = [
28-
dict(type='LoadImageFromFile', backend_args=dict(backend='local')),
28+
dict(type='LoadImageFromFile', backend_args=None),
2929
dict(
3030
type='TestTimeAug',
3131
transforms=[

configs/_base_/datasets/coco-stuff10k.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
]
2626
img_ratios = [0.5, 0.75, 1.0, 1.25, 1.5, 1.75]
2727
tta_pipeline = [
28-
dict(type='LoadImageFromFile', backend_args=dict(backend='local')),
28+
dict(type='LoadImageFromFile', backend_args=None),
2929
dict(
3030
type='TestTimeAug',
3131
transforms=[

configs/_base_/datasets/coco-stuff164k.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
]
2626
img_ratios = [0.5, 0.75, 1.0, 1.25, 1.5, 1.75]
2727
tta_pipeline = [
28-
dict(type='LoadImageFromFile', backend_args=dict(backend='local')),
28+
dict(type='LoadImageFromFile', backend_args=None),
2929
dict(
3030
type='TestTimeAug',
3131
transforms=[

configs/_base_/datasets/drive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
]
2727
img_ratios = [0.5, 0.75, 1.0, 1.25, 1.5, 1.75]
2828
tta_pipeline = [
29-
dict(type='LoadImageFromFile', backend_args=dict(backend='local')),
29+
dict(type='LoadImageFromFile', backend_args=None),
3030
dict(
3131
type='TestTimeAug',
3232
transforms=[

configs/_base_/datasets/hrf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
]
2727
img_ratios = [0.5, 0.75, 1.0, 1.25, 1.5, 1.75]
2828
tta_pipeline = [
29-
dict(type='LoadImageFromFile', backend_args=dict(backend='local')),
29+
dict(type='LoadImageFromFile', backend_args=None),
3030
dict(
3131
type='TestTimeAug',
3232
transforms=[

configs/_base_/datasets/isaid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
]
3333
img_ratios = [0.5, 0.75, 1.0, 1.25, 1.5, 1.75]
3434
tta_pipeline = [
35-
dict(type='LoadImageFromFile', backend_args=dict(backend='local')),
35+
dict(type='LoadImageFromFile', backend_args=None),
3636
dict(
3737
type='TestTimeAug',
3838
transforms=[

configs/_base_/datasets/loveda.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
]
2626
img_ratios = [0.5, 0.75, 1.0, 1.25, 1.5, 1.75]
2727
tta_pipeline = [
28-
dict(type='LoadImageFromFile', backend_args=dict(backend='local')),
28+
dict(type='LoadImageFromFile', backend_args=None),
2929
dict(
3030
type='TestTimeAug',
3131
transforms=[

0 commit comments

Comments
 (0)