Skip to content

Commit

Permalink
Revert MRCNN resize to state from 1.4 (#2922)
Browse files Browse the repository at this point in the history
  • Loading branch information
sovrasov committed Feb 16, 2024
1 parent 1e67742 commit 545e7ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
resize_cfg=dict(
type="Resize",
img_scale=__img_size,
keep_ratio=True,
keep_ratio=False,
),
enable_memcache=True, # Cache after resizing image & annotations
),
Expand Down Expand Up @@ -53,7 +53,7 @@
val_pipeline = [
dict(
type="LoadResizeDataFromOTXDataset",
resize_cfg=dict(type="Resize", img_scale=__img_size, keep_ratio=True),
resize_cfg=dict(type="Resize", img_scale=__img_size, keep_ratio=False),
enable_memcache=True, # Cache after resizing image
),
dict(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
resize_cfg=dict(
type="Resize",
img_scale=__img_size,
keep_ratio=True,
keep_ratio=False,
),
enable_memcache=True, # Cache after resizing image & annotations
),
Expand Down Expand Up @@ -53,7 +53,7 @@
val_pipeline = [
dict(
type="LoadResizeDataFromOTXDataset",
resize_cfg=dict(type="Resize", img_scale=__img_size, keep_ratio=True),
resize_cfg=dict(type="Resize", img_scale=__img_size, keep_ratio=False),
enable_memcache=True, # Cache after resizing image
),
dict(
Expand All @@ -77,7 +77,7 @@
img_scale=__img_size,
flip=False,
transforms=[
dict(type="Resize", keep_ratio=True),
dict(type="Resize", keep_ratio=False),
dict(type="RandomFlip"),
dict(type="Normalize", **__img_norm_cfg),
dict(type="Pad", size_divisor=32),
Expand Down

0 comments on commit 545e7ff

Please sign in to comment.