Skip to content

Commit 820bae7

Browse files
committed
Add default hyperparams
1 parent 122d44b commit 820bae7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

superannotate/ml/defaults.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
DEFAULT_HYPERPARAMETERS = {
22
"instance_type": "1 x T4 16 GB",
33
"num_epochs": 12,
4-
"dataset_split_ratio": 80,
54
"base_lr": 0.02,
65
"gamma": 0.5,
76
"images_per_batch": 4,

superannotate/ml/ml_funcs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,8 @@ def run_training(
301301
0,
302302
f"The type of provided projects is {project_type}, and does not correspond to the type of provided model"
303303
)
304+
if not hyperparameters:
305+
hyperparameters = {}
304306
for item in DEFAULT_HYPERPARAMETERS:
305307
if item not in hyperparameters:
306308
hyperparameters[item] = DEFAULT_HYPERPARAMETERS[item]

0 commit comments

Comments
 (0)