The error is path ‘/’ “\”
for file in glob.glob('E:\2021\deep learning\unet-pytorch-main\miou_pr_dir\*.png'):
togrey(file,'E:\2021\deep learning\tianchi\no_black_png')
Amend to read
for file in glob.glob('E:/2021/deep learning/unet-pytorch-main/miou_pr_dir/*.png'):
togrey(file,'E:/2021\deep learning/tianchi/no_black_png')
Read More:
- python SyntaxError: (unicode error) ‘unicodeescape’ codec can’t decode bytes in position 2-3: trunca
- SyntaxError: (unicode error) ‘unicodeescape‘ codec can‘t decode bytes in position 2-3: truncated \UX
- Python SyntaxError: (unicode error) ‘unicodeescape’ codec can’t decode bytes in position 2-3:
- SyntaxError: (unicode error) ‘unicodeescape‘ codec can‘t decode bytes in position 2-3: truncated \UX
- Pyinstall (Unicode error) ‘Unicode scape’ error handling
- scrapy:LookupError: unknown encoding: ‘unicode’
- Unicode encodeerror encountered in Python 3
- Unicode encodeerror: ‘GBK’ codec can’t encode character solution
- Syntax Error: (unicode error) ‘unicodeescape’ codec can’t decode bytes in position resolution
- Unicode decodeerror: ‘UTF-8’ codec can’t decode byte 0xd3 in position 238: invalid continuation B
- SyntaxError: unexpected EOF while parsing
- Texstudio prompts an error when compiling and viewing latex documents: package inputerror: Unicode character
- Successfully resolved Unicode decodeerror: ‘UTF-8’ codec can’t decode byte 0xd3 in position 238: invalid continuation B
- When reading the CSV file with Python 3, the Unicode decodeerror: ‘UTF-8’ codec can’t decode byte 0xd0 in position 0: invalid con appears
- A solution to automatically convert special characters into Unicode when taking out data from MySQL and encapsulating it into JSON
- Module build failed: SyntaxError: Unexpected token
- Unicode decodeerror: ‘UTF-8’ codec can’t decode byte 0x80 in position 3131: invalid start byte solution
- Solution of Unicode decodeerror -‘utf-8 ‘codec can’t decode byte 0xc4 in position 0 – invalid continuation byte
- Uncaught SyntaxError: missing ) after argument list
- Solution to syntaxerror: invalid syntax in PIP install XXX