mirror of
https://github.com/open-mmlab/mmocr.git
synced 2025-06-03 21:54:47 +08:00
[Enhancement] fix change locals() dict (#663)
This commit is contained in:
parent
d58fac9760
commit
f8485208d9
@ -411,7 +411,7 @@ class MMOCR:
|
||||
merge=False,
|
||||
merge_xdist=20,
|
||||
**kwargs):
|
||||
args = locals()
|
||||
args = locals().copy()
|
||||
[args.pop(x, None) for x in ['kwargs', 'self']]
|
||||
args = Namespace(**args)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user