12304;388382;3906442nd 123057 SyntaxError and unicode error and 8216215;

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: