kaggle-autonomous-driving2019 icon indicating copy to clipboard operation
kaggle-autonomous-driving2019 copied to clipboard

AttributeError: 'JPEG' object has no attribute 'decompressor'

Open vikalpjain91 opened this issue 5 years ago • 1 comments

While executing your code we got this issue: jpeg.JPEG("D:\Work\ML\API\MNB\28 - AUTONOMOUS VEHICLE-KAGGLE\Winners_solution\Try\1.jpeg") File "D:\Installation\Anaconda\lib\site-packages\jpeg4py_py.py", line 128, in init super(JPEG, self).init(lib_) File "D:\Installation\Anaconda\lib\site-packages\jpeg4py_py.py", line 64, in init jpeg.initialize() File "D:\Installation\Anaconda\lib\site-packages\jpeg4py_cffi.py", line 212, in initialize _initialize(backends) File "D:\Installation\Anaconda\lib\site-packages\jpeg4py_cffi.py", line 193, in _initialize raise OSError("Could not load libjpeg-turbo library") OSError: Could not load libjpeg-turbo library Exception ignored in: <function JPEG.del at 0x000002A7FB446438> Traceback (most recent call last): File "D:\Installation\Anaconda\lib\site-packages\jpeg4py_py.py", line 215, in del if self.decompressor is not None: AttributeError: 'JPEG' object has no attribute 'decompressor'

I have installed jpeg4py using pip but not sure from where I can get rid of this issue. Any work around? I am currently using windows and Linux I dont have access as of now.

Reference where you have used JPEG(): https://github.com/bamps53/kaggle-autonomous-driving2019/blob/master/datasets/dataset_factory.py Line: 44

vikalpjain91 avatar Feb 08 '20 15:02 vikalpjain91

is cv2.imread(image_path, cv2.IMREAD_UNCHANGED)

will be fine?

vikalpjain91 avatar Feb 08 '20 15:02 vikalpjain91