seoungwugoh / STM

Video Object Segmentation using Space-Time Memory Networks
405 stars 81 forks source link

PIL.putpalette #12

Closed MasterBin-IIAU closed 4 years ago

MasterBin-IIAU commented 4 years ago

Hi, when I run STM on DAVIS16, I came across the following problem. Traceback (most recent call last): File "/home/masterbin-iiau/Desktop/STM/eval_DAVIS.py", line 131, in img_E.putpalette(palette) File "/home/masterbin-iiau/anaconda3/envs/VOT20/lib/python3.6/site-packages/PIL/Image.py", line 1641, in putpalette data = bytes(data) TypeError: cannot convert 'NoneType' object to bytes

palette = Image.open(DATA_ROOT + '/Annotations/480p/blackswan/00000.png').getpalette() the path is right but getpalette() return None.

Is this problem related to the version of pillow? I am using pillow=6.1.0 Could you give me some advice? Thank you

MasterBin-IIAU commented 4 years ago

Sorry, it's my problem. I downloaded the wrong datasets. When I prepare DAVIS correctly, the problem is gone.

darkliang commented 3 years ago

Sorry, it's my problem. I downloaded the wrong datasets. When I prepare DAVIS correctly, the problem is gone.

I also met this problem, could you tell me how you solved it?

MasterBin-IIAU commented 3 years ago

@darkliang Hi, Please download DAVIS 16 from this link (DAVIS16). I think if the dataset is right, this problem should not appear.

darkliang commented 3 years ago

@MasterBin-IIAU Thank you for your help. I did download the dataset from this link, but the problem still arises. And if I use DAVIS2017, the palette is available.

darkliang commented 3 years ago

@MasterBin-IIAU Thanks again, I figure out this problem, the correct dataset that contains color annotations is in DAVIS2017.

BigBoomDream commented 2 years ago

@darkliang Thank you for your help.