mirror of
https://github.com/modelscope/modelscope.git
synced 2026-09-01 19:49:03 +02:00
remove tensorboard hook as default
tensorboard has been removed from the requirements of framework.txt, so we remove tensorboard hook from default config
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/11519980
* remove tensorboard hook as default
* Merge branch 'master' into fix/remove_default_tensorboard_hook
This commit is contained in:
@@ -4,23 +4,15 @@ from modelscope.utils.config import Config
|
||||
|
||||
DEFAULT_CONFIG = {
|
||||
'train': {
|
||||
'hooks': [
|
||||
{
|
||||
'type': 'CheckpointHook',
|
||||
'interval': 1
|
||||
},
|
||||
{
|
||||
'type': 'TextLoggerHook',
|
||||
'interval': 10
|
||||
},
|
||||
{
|
||||
'type': 'IterTimerHook'
|
||||
},
|
||||
{
|
||||
'type': 'TensorboardHook',
|
||||
'interval': 10
|
||||
},
|
||||
]
|
||||
'hooks': [{
|
||||
'type': 'CheckpointHook',
|
||||
'interval': 1
|
||||
}, {
|
||||
'type': 'TextLoggerHook',
|
||||
'interval': 10
|
||||
}, {
|
||||
'type': 'IterTimerHook'
|
||||
}]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -268,6 +268,9 @@ class TrainerTest(unittest.TestCase):
|
||||
}, {
|
||||
'type': 'EvaluationHook',
|
||||
'interval': 1
|
||||
}, {
|
||||
'type': 'TensorboardHook',
|
||||
'interval': 1
|
||||
}]
|
||||
},
|
||||
'evaluation': {
|
||||
|
||||
Reference in New Issue
Block a user