Skip to content

Commit

Permalink
Merge pull request #5 from boostcampaitech4lv23cv3/train-csc
Browse files Browse the repository at this point in the history
Modify train.py
  • Loading branch information
sjleo1 authored Nov 28, 2022
2 parents e75ad1a + 4a879fe commit c80e0d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mmdetection/tools/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ def main():
logger = get_root_logger(log_file=log_file, log_level=cfg.log_level)

# set num_classes
cfg.model.roi_head.bbox_head.num_classes = len(cfg.classes)
for bbox_head in cfg.model.roi_head.bbox_head:
bbox_head.num_classes = len(cfg.classes)

# init the meta dict to record some important information such as
# environment info and seed, which will be logged
Expand Down

0 comments on commit c80e0d5

Please sign in to comment.