I want to know how to show the train acc and loss during training #1213
Unanswered
leesangjoon1
asked this question in
Q&A
Replies: 1 comment
-
|
MMClassification always prints the loss during training, I think it's because the log interval is too large to show your training loss. # It's usually in the `default_runtime.py`
log_config = dict(
interval=100, # Modify here to a lower value, like 1.
...)If you are using mmcls new 1.x branch, please modify the log interval in your config file: # It's usually in the `default_runtime.py`
default_hooks = dict(
...
logger=dict(type='LoggerHook', interval=100), # Modify here to a lower value, like 1.
...
)Also, if you want to print the accuracy of the training data batch, please add model = dict(
...
head = dict(
...,
cal_acc=True,
),
) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I train a model. And validate it per 10 intervals.
But it shows only validation loss
I want to know how to show the train acc and loss during training
I added evaluation = dict(interval=10, metric='accuracy', save_best='loss', rule=greater')
but it doesn't work
please help me
Thank you :)
Beta Was this translation helpful? Give feedback.
All reactions