Skip to content

Commit

Permalink
fix data pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene123tw committed Jun 17, 2024
1 parent b3b13ba commit d64175f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,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 @@ -54,7 +54,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 @@ -22,7 +22,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 @@ -52,7 +52,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 @@ -76,7 +76,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
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@

backend_config = dict(
# dynamic batch causes forever running openvino process
model_inputs=[dict(opt_shapes=dict(input=[1, 3, 800, 1344]))],
model_inputs=[dict(opt_shapes=dict(input=[1, 3, 1024, 1024]))],
)

0 comments on commit d64175f

Please sign in to comment.