lorenmt / reco

The implementation of "Bootstrapping Semantic Segmentation with Regional Contrast" [ICLR 2022].
https://shikun.io/projects/regional-contrast
Other
162 stars 25 forks source link

error in pascal_preprocess.py #26

Closed volare1996 closed 2 years ago

volare1996 commented 2 years ago

The following error occurred while running the preprocessing script. `im = np.array(Image.open(label_list[i])

OSError:codec configuration error when reading image file`

lorenmt commented 2 years ago

I believe that's a package-specific issue. Maybe try upgrade pillow as suggested from here? https://stackoverflow.com/questions/42462431/oserror-broken-data-stream-when-reading-image-file

Or alternatively, you may directly download the pre-processed dataset which also linked in readme.

volare1996 commented 2 years ago

Thanks for your reply. I'll have a try.