ultralytics 8.0.205 HUB dataset downloads fix (#6101)

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
Glenn Jocher 2023-11-02 22:32:52 +01:00 committed by GitHub
parent ff0aba10c5
commit ff921ca93e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 8 deletions

View file

@ -707,7 +707,7 @@ def remove_colorstr(input_string):
>>> remove_colorstr(colorstr('blue', 'bold', 'hello world'))
>>> 'hello world'
"""
ansi_escape = re.compile(r'\x1B(?:[@-Z\\\-_]|\[[0-9]*[ -/]*[@-~])')
ansi_escape = re.compile(r'\x1B\[[0-9;]*[A-Za-z]')
return ansi_escape.sub('', input_string)