Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
kprokofi committed Nov 25, 2024
1 parent de025a6 commit 7b41b9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/otx/tools/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,9 @@ def update_num_workers(param_value: int) -> None:
config["data"]["test_subset"]["num_workers"] = param_value

def update_enable_early_stopping(param_value: bool) -> None:
idx = ConfigConverter._get_callback_idx(config["callbacks"], "otx.algo.callbacks.adaptive_early_stopping.EarlyStoppingWithWarmup")
idx = ConfigConverter._get_callback_idx(
config["callbacks"], "otx.algo.callbacks.adaptive_early_stopping.EarlyStoppingWithWarmup"
)
if not param_value and idx > -1:
config["callbacks"].pop(idx)

Expand Down

0 comments on commit 7b41b9a

Please sign in to comment.