Skip to content

Commit

Permalink
turn off persistent_workers while preparing nncf
Browse files Browse the repository at this point in the history
  • Loading branch information
eunwoosh committed Jun 8, 2023
1 parent 41c9b9b commit 1f9e4d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions otx/algorithms/classification/adapters/mmcls/nncf/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def build_nncf_classifier( # pylint: disable=too-many-locals,too-many-statement
subset="val",
dataloader_builder=mmcls_build_dataloader,
distributed=distributed,
persistent_workers=False,
)

# This data and state dict will be used to build NNCF graph later
Expand Down Expand Up @@ -110,6 +111,7 @@ def build_nncf_classifier( # pylint: disable=too-many-locals,too-many-statement
subset="val",
dataloader_builder=mmcls_build_dataloader,
distributed=distributed,
persistent_workers=False,
)

model_eval_fn = partial(
Expand Down
2 changes: 2 additions & 0 deletions otx/algorithms/detection/adapters/mmdet/nncf/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ def build_nncf_detector( # pylint: disable=too-many-locals,too-many-statements
subset="val",
dataloader_builder=mmdet_build_dataloader,
distributed=distributed,
persistent_workers=False,
)

# This data and state dict will be used to build NNCF graph later
Expand Down Expand Up @@ -121,6 +122,7 @@ def build_nncf_detector( # pylint: disable=too-many-locals,too-many-statements
subset="val",
dataloader_builder=mmdet_build_dataloader,
distributed=distributed,
persistent_workers=False,
)

model_eval_fn = partial(
Expand Down

0 comments on commit 1f9e4d4

Please sign in to comment.