mirror of
https://github.com/PaddlePaddle/PaddleClas.git
synced 2025-06-03 21:55:06 +08:00
fix
This commit is contained in:
parent
10c93c55d1
commit
58dccfd024
@ -122,7 +122,7 @@ def override(dl, ks, v):
|
|||||||
if len(ks) == 1:
|
if len(ks) == 1:
|
||||||
# assert ks[0] in dl, ('{} is not exist in {}'.format(ks[0], dl))
|
# assert ks[0] in dl, ('{} is not exist in {}'.format(ks[0], dl))
|
||||||
if not ks[0] in dl:
|
if not ks[0] in dl:
|
||||||
logger.warning('A new filed ({}) detected!'.format(ks[0], dl))
|
logger.warning('A new filed ({}) detected!'.format(ks[0]))
|
||||||
dl[ks[0]] = str2num(v)
|
dl[ks[0]] = str2num(v)
|
||||||
else:
|
else:
|
||||||
override(dl[ks[0]], ks[1:], v)
|
override(dl[ks[0]], ks[1:], v)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user