Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug #318

Open
llyyccccc opened this issue Dec 26, 2024 · 0 comments
Open

bug #318

llyyccccc opened this issue Dec 26, 2024 · 0 comments

Comments

@llyyccccc
Copy link

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "train.py", line 243, in
main()
File "train.py", line 162, in main
cfg.dump(osp.join(cfg.work_dir, osp.basename(args.config)))
File "D:\anaconda3\envs\internimage\lib\site-packages\mmcv\utils\config.py", line 564, in dump
f.write(self.pretty_text)
File "D:\anaconda3\envs\internimage\lib\site-packages\mmcv\utils\config.py", line 502, in pretty_text
text, _ = FormatCode(text, style_config=yapf_style, verify=True)
File "D:\anaconda3\envs\internimage\lib\site-packages\yapf\yapflib\yapf_api.py", line 167, in FormatCode
_SplitSemicolons(uwlines), verify, lines)
File "D:\anaconda3\envs\internimage\lib\site-packages\yapf\yapflib\reformatter.py", line 107, in Reformat
return _FormatFinalLines(final_lines, verify)
File "D:\anaconda3\envs\internimage\lib\site-packages\yapf\yapflib\reformatter.py", line 422, in _FormatFinalLines
verifier.VerifyCode(formatted_code[-1])
File "D:\anaconda3\envs\internimage\lib\site-packages\yapf\yapflib\verifier.py", line 52, in VerifyCode
raise InternalError(sys.exc_info()[1])
yapf.yapflib.verifier.InternalError: (unicode error) 'unicodeescape' codec can't decode bytes in position 11-12: truncated \uXXXX escape (, line
1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant