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

training log #874

Closed
kobe233333 opened this issue Aug 25, 2021 · 7 comments
Closed

training log #874

kobe233333 opened this issue Aug 25, 2021 · 7 comments
Assignees

Comments

@kobe233333
Copy link

If i can get value of AP or loss on train data when i do the training, just like the log information i found in [https://download.openmmlab.com/mmpose/bottom_up/higher_hrnet32_coco_512x512_20200713.log.json] ?
Therefore i can see if i get overfit result.

@ly015
Copy link
Member

ly015 commented Aug 26, 2021

An easy approach would be using training data as the validation set. You can set it at the data part of the config file, like:

# part of a config

data = dict(
    samples_per_gpu=32,
    workers_per_gpu=4,
    train=dict(
        type='TopDownCocoDataset',
        ann_file=f'{data_root}/annotations/person_keypoints_train2017.json',
        img_prefix=f'{data_root}/train2017/',
        data_cfg=data_cfg,
        pipeline=train_pipeline),

   # set val as your training data

    val=dict(
        type='TopDownCocoDataset',
        ann_file=f'{data_root}/annotations/person_keypoints_val2017.json',
        img_prefix=f'{data_root}/val2017/',
        data_cfg=data_cfg,
        pipeline=val_pipeline),
    test=dict(
        type='TopDownCocoDataset',
        ann_file=f'{data_root}/annotations/person_keypoints_val2017.json',
        img_prefix=f'{data_root}/val2017/',
        data_cfg=data_cfg,
        pipeline=val_pipeline),
)

@kobe233333
Copy link
Author

An easy approach would be using training data as the validation set. You can set it at the data part of the config file, like:

# part of a config

data = dict(
    samples_per_gpu=32,
    workers_per_gpu=4,
    train=dict(
        type='TopDownCocoDataset',
        ann_file=f'{data_root}/annotations/person_keypoints_train2017.json',
        img_prefix=f'{data_root}/train2017/',
        data_cfg=data_cfg,
        pipeline=train_pipeline),

   # set val as your training data

    val=dict(
        type='TopDownCocoDataset',
        ann_file=f'{data_root}/annotations/person_keypoints_val2017.json',
        img_prefix=f'{data_root}/val2017/',
        data_cfg=data_cfg,
        pipeline=val_pipeline),
    test=dict(
        type='TopDownCocoDataset',
        ann_file=f'{data_root}/annotations/person_keypoints_val2017.json',
        img_prefix=f'{data_root}/val2017/',
        data_cfg=data_cfg,
        pipeline=val_pipeline),
)

but how i can find the loss in training process ?

@jin-s13
Copy link
Collaborator

jin-s13 commented Aug 27, 2021

The log will be saved in the work_dirs. Do you use a very small dataset?
You may have to use a smaller log interval.

@kobe233333
Copy link
Author

The log will be saved in the work_dirs. Do you use a very small dataset?
You may have to use a smaller log interval.

but i can only see the ap score, no training loss

@jin-s13
Copy link
Collaborator

jin-s13 commented Aug 31, 2021

Please try interval = 1

@jin-s13 jin-s13 self-assigned this Aug 31, 2021
@jin-s13
Copy link
Collaborator

jin-s13 commented Sep 10, 2021

Have you solved this problem?

@kobe233333
Copy link
Author

Have you solved this problem?

yes, appreciate!

@jin-s13 jin-s13 closed this as completed Sep 10, 2021
HAOCHENYE added a commit to HAOCHENYE/mmpose that referenced this issue Jun 27, 2023
* [Feature] Add BaseInferencer (open-mmlab#773)

* Update BaseInferencer

* Fix ci

* Fix CI and rename iferencer to infer

* Fix CI

* Add renamed file

* Add test file

* Adjust interface sequence

* refine preprocess

* Update unit test

Update unit test

* Update unit test

* Fix unit test

* Fix as comment

* Minor refine

* Fix docstring and support load image from different backend

* Support load collate_fn from downstream repos, refine dispatch

* Minor refine

* Fix lint

* refine grammar

* Remove FileClient

* Refine docstring

* add rich

* Add list_models

* Add list_models

* Remove backend args

* Minor refine

* Fix typos in docs and type hints (open-mmlab#787)

* [Fix] Add _inputs_to_list (open-mmlab#795)

* Add preprocess inputs

* Add type hint

* update api/infer in index.rst

* rename preprocess_inputs to _inputs_to_list

* Fix doc format

* Update infer.py

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* [Fix] Fix alias type (open-mmlab#801)

* [Enhance] Support loading model config from checkpoint (open-mmlab#864)

* first commit

* [Enhance] Support build model from weight

* minor refine

* Fix type hint

* refine comments

* Update docstring

* refine as comment

* Add  method

* Refine docstring

* Fix as comment

* refine comments

* Refine warning message

* Fix unit test and refine comments

* replace MODULE2PACKAGE to MODULE2PAKCAGE

* Fix typo and syntax error in docstring

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
Co-authored-by: Tong Gao <gaotongxiao@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants