ERROR

AttributeError: type object 'Image' has no attribute 'BICUBIC'

파송송 2023. 10. 11. 15:24
728x90
transforms.Resize((opt.img_height, opt.img_width), Image.BICUBIC)

Image.BICUBIC에서 에러 발생!


import PIL

transforms.Resize((opt.img_height, opt.img_width), PIL.Image.BICUBIC)

import후 PIL.Image.BICUBIC으로 바꾸니 오류 해결됨

728x90