Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] add high level reid training api #181

Merged
merged 2 commits into from
Jun 27, 2021

Conversation

ToumaKazusa3
Copy link
Contributor

Hi~
This PR add the add high level reid training api.

@@ -32,6 +31,11 @@ def train_model(model,
"""
logger = get_root_logger(cfg.log_level)

if cfg.get('USE_MMDET', False):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can directly use the "build_dataset" in mmdet, do not need to turn to mmcls.
You can try to register the dataset into the "DATASET" in mmdet.
The same to your modifications below.

from mmtrack.models import build_reid as build_model
from mmcls.datasets import build_dataset
if 'reid' in cfg.model:
cfg.model = cfg.model.reid
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simplify according to the comments above

@OceanPang OceanPang merged commit 964a40d into open-mmlab:master Jun 27, 2021
@ToumaKazusa3 ToumaKazusa3 deleted the reid_api branch July 6, 2021 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants