MrRobot2211 / pytorch-deep-photo-enhancer

pytorch implementation of deep photo enhancer
MIT License
28 stars 5 forks source link

Regarding resize of my images #3

Open vishalkrs opened 4 years ago

vishalkrs commented 4 years ago

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'
MrRobot2211 commented 2 years ago

Looks like you were trying to resize the image while it was open by another application