Skip to content

Commit

Permalink
✨ Update WandB logging strategy
Browse files Browse the repository at this point in the history
- Now precision by category will be logged to WandB
- All runs will be grouped by dataset version
- Custom prefix refering dataset version has been added
  • Loading branch information
sjleo1 committed Feb 1, 2023
1 parent b11e970 commit 2d9d989
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 15 deletions.
35 changes: 20 additions & 15 deletions mmyolo/configs/_emergency_/_base_/default_runtime.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
default_scope = "mmyolo"

# dataset version 3
# num_classes = 4
# metainfo = dict(
# classes=("ambulance", "fire truck", "ladder truck", "police car")
# )

# dataset version 4
# num_classes = 3
# metainfo = dict(
# classes=("ambulance", "fire truck", "police car")
# )

# data directory and annotation file paths
# choose dataset version
# dataset_version = "ver3"
dataset_version = "ver4"

if dataset_version == "ver3":
num_classes = 4
classes=("ambulance", "fire truck", "ladder truck", "police car")
train_ann_file = "labels/*.json"
val_ann_file = "labels/*.json"
elif dataset_version == "ver4":
num_classes = 3
classes=("ambulance", "fire truck", "police car")
train_ann_file = "labels/*.json"
val_ann_file = "labels/*.json"

metainfo = dict(classes=classes)
dataset_prefix = dataset_version

# dataset directory
data_root = "/opt/ml/input/"
train_ann_file = "labels/*.json"
val_ann_file = "labels/*.json"

default_hooks = dict(
timer=dict(type="IterTimerHook"),
Expand All @@ -40,6 +44,7 @@
"entity": "boostcamp-ai-tech-4-cv-17",
"project": "Final Project",
"name": "model_name",
"group": dataset_version,
},
),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@
proposal_nums=(100, 1, 10),
ann_file=data_root + _base_.val_ann_file,
metric="bbox",
classwise=True,
prefix=_base_.dataset_prefix
)
test_evaluator = val_evaluator

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@
proposal_nums=(100, 1, 10),
ann_file=data_root + _base_.val_ann_file,
metric="bbox",
classwise=True,
prefix=_base_.dataset_prefix
)
test_evaluator = val_evaluator

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@
proposal_nums=(100, 1, 10),
ann_file=data_root + _base_.val_ann_file,
metric="bbox",
classwise=True,
prefix=_base_.dataset_prefix
)
test_evaluator = val_evaluator

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@
proposal_nums=(100, 1, 10), # Can be accelerated
ann_file=data_root + _base_.val_ann_file,
metric="bbox",
classwise=True,
prefix=_base_.dataset_prefix
)
test_evaluator = val_evaluator

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,8 @@
proposal_nums=(100, 1, 10),
ann_file=data_root + _base_.val_ann_file,
metric="bbox",
classwise=True,
prefix=_base_.dataset_prefix
)
test_evaluator = val_evaluator

Expand Down

0 comments on commit 2d9d989

Please sign in to comment.