Hii Mr Robot , when i am trying to resize my image in resize.py ,i am getting this error
PermissionError Traceback (most recent call last)
in
49 # resize_image("/home/felipe/deep-photo-enhancer-master/images_LR/Expert-C/Testing")
50 # resize_image("/home/felipe/deep-photo-enhancer-master/images_LR/Expert-C/Training1")
---> 51 rename_MIT_files("/Users/HP/Desktop/pytorch-deep-photo-enhancer/images_LR/Expert-C/Training2")
52 resize_image("/Users/HP/Desktop/pytorch-deep-photo-enhancer/images_LR/Expert-C/Training2")
53 # resize_image("/home/felipe/deep-photo-enhancer-master/images_LR/Expert-C/Training2/hdrs")
in rename_MIT_files(dir)
24 os. remove(subdir+'/'+file)
25 else:
---> 26 os.rename(subdir+'/'+file,subdir+'/'+file.split(".")[0]+".tif")
27
28
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '/Users/HP/Desktop/pytorch-deep-photo-enhancer/images_LR/Expert-C/Training2\\1/bad.tif' -> '/Users/HP/Desktop/pytorch-deep-photo-enhancer/images_LR/Expert-C/Training2\\1/bad.tif'
Hii Mr Robot , when i am trying to resize my image in resize.py ,i am getting this error PermissionError Traceback (most recent call last)