ReduceOnPlateauLR 问题 #1933
Unanswered
hamlet2019
asked this question in
Q&A
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
有如下的调度器
dict(type='ReduceOnPlateauLR', monitor='loss', rule='less', factor=0.1, patience=5),
监控的是loss
但是评估的是val_evaluator = dict(type='Accuracy', topk=(1,)) 精度
在评估的时候就有错误
raise KeyError(f'Excepted key in {list(metrics.keys())},'
KeyError: "Excepted key in ['accuracy/top1'], but got key loss is not in dict" . 我知道问题出现在哪里,但是不符合常理啊
我该怎么办呢
Beta Was this translation helpful? Give feedback.
All reactions