UPSNet icon indicating copy to clipboard operation
UPSNet copied to clipboard

About label['roidb']['segmes']

Open JoyHuYY1412 opened this issue 6 years ago • 7 comments

HI, for coco dataset, when I print label['roidb']['segmes'] in resnet_upsnet.py, I found sometimes the last segmentation is not polygon format, which is of list format, but they look like RLE format, for example, a dict {"counts': ,'size':}. What's more, the counts part is not binary string but polygon list, which is really confusing.

I have no idea why this could happen, could you please help me?

JoyHuYY1412 avatar May 30 '19 05:05 JoyHuYY1412

I give some example:

{'counts': [20939, 13, 289, 18, 12, 1, 271, 35, 7, 12, 248, 56, 245, 59, 242, 62, 218, 1, 19, 65, 217, 2, 17, 67, 216, 4, 14, 69, 216, 4, 13, 70, 216, 5, 12, 70, 216, 6, 11, 70, 216, 6, 11, 70, 216, 7, 11, 68, 217, 8, 10, 67, 218, 8, 1 0, 65, 220, 9, 9, 56, 229, 10, 8, 57, 228, 10, 9, 57, 227, 11, 8, 61, 223, 12, 8, 63, 220, 13, 7, 64, 220, 13, 7, 64, 220, 13, 6, 67, 219, 12, 6, 67, 220, 11, 6, 67, 221, 10, 5, 68, 225, 6, 5, 25, 9, 34, 223, 8, 4, 22, 13, 33, 223, 8, 5, 16, 19, 32, 223, 8, 5, 15, 20, 32, 223, 8, 5, 2, 1, 11, 22, 31, 223, 8, 5, 2, 5, 5, 25, 30, 223, 9, 4, 2, 37, 28, 223, 9, 5, 1, 39, 25, 224, 10, 4, 1, 47, 16, 225, 15, 53 , 8, 227, 15, 288, 15, 288, 15, 288, 15, 288, 14, 289, 13, 290, 12, 290, 13, 290, 13, 290, 13, 290, 13, 290, 12, 290, 13, 290, 13, 290, 13, 290, 13, 290, 13, 289, 13, 290, 13, 289, 14, 289, 14, 288, 15, 2 88, 15, 287, 15, 288, 15, 287, 16, 287, 15, 288, 15, 287, 12, 291, 11, 292, 9, 294, 8, 295, 8, 295, 8, 295, 7, 297, 6, 298, 5, 300, 2, 5750, 2, 300, 4, 299, 4, 299, 5, 298, 5, 297, 7, 296, 7, 296, 8, 295, 8, 295, 9, 293, 10, 293, 11, 292, 11, 292, 12, 291, 12, 291, 13, 290, 13, 4, 1, 285, 14, 2, 2, 285, 14, 1, 3, 286, 17, 286, 17, 286, 17, 286, 17, 286, 17, 286, 17, 286, 17, 286, 17, 286, 17, 286, 17, 286 , 17, 286, 17, 286, 17, 286, 17, 286, 17, 286, 17, 286, 17, 286, 17, 286, 17, 286, 17, 286, 17, 286, 17, 286, 18, 285, 18, 286, 17, 287, 16, 289, 14, 290, 13, 290, 13, 291, 11, 293, 9, 296, 5, 48167, 6, 2 96, 8, 294, 10, 292, 12, 291, 12, 34, 7, 250, 12, 1, 11, 21, 9, 249, 29, 15, 11, 248, 33, 10, 13, 247, 34, 9, 13, 247, 35, 8, 13, 247, 37, 5, 14, 247, 38, 2, 16, 247, 56, 247, 56, 247, 56, 247, 56, 247, 5 6, 247, 56, 247, 56, 247, 56, 247, 56, 247, 56, 247, 56, 247, 55, 248, 55, 248, 54, 249, 54, 249, 54, 249, 14, 5, 35, 250, 12, 11, 30, 251, 10, 19, 23, 253, 7, 26, 17, 293, 10, 294, 8, 296, 6, 298, 5, 298 , 4, 299, 4, 299, 4, 299, 4, 299, 3, 300, 2, 300, 1, 26312], 'size': [303, 500]}]

[{'size': [375, 500], 'counts': b'm_18\;5L3N2M2N2O1O100000O1OL0WE[Oh:d06O1100000NKAVE>i:FUE:j::TGXOh6i0VI[Oh6f0RIAl60QICn62_GGa1:n6NaGJ_1:o6:QIGn69RIHm65VIKi65XIKh65XIKh64YILg65YIJg66ZIIf6b0PI]OP71eGJ\\14o62hGG\\14l65fGI_10l67dGJc1Kj6m0ZInNg6;hGMX:MnE3R:MnE4Q:KQF4o9JSF6m9HUF8l9D\\F7c:O00M3O1N2BCaE>^:=1000000O100O1O2N2N1N3N2L4N2M^_1KgN4N100K4N200O1FB[E>d:FXE;h::0O000100QF_Oa8JdFh0i0B_8f0G]O]8d0bG^O\\8c0cG@[80eGBY8>gGDW8<iGEV8;jGFU8:kGFU8:k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d0_8[ObGe0^8[ObGe0^8[OcGd0]8[OeGd0[8\\OfGc0Z8]OhGa0X8_OiG?X8@kG=V8BlG<U8CmG;Y2DViMg0L3N2N100000000000O2N2N2MYS1[O\mN4M 2N2O00000O100000O0000010O1M3O10O011N4L001O10002N3RE_O_:o0N1O1N100000000000000000O100O2N2N2O7IO1O1O1O10000000000000O1O001N20000000001O1N2N3MO012N2N2N1O10000000000000000001O1N2N7J0O01O10000O101O0O1O1000K5N2 O1OGOnD1k:8TEGj:<VECi:?WE@h:a071O00001O004M1O0006KN1O1O0001O1O1O4L8G2N3MUci0'}]]

JoyHuYY1412 avatar May 30 '19 06:05 JoyHuYY1412

@JoyHuYY1412 Hi, I met this problem when using this code. That's because the "crowd instances" are included. You can refer to #33 .

Please let me know if you have any problem.

LaoYang1994 avatar May 30 '19 12:05 LaoYang1994

@JoyHuYY1412 Hi, I met this problem when using this code. That's because the "crowd instances" are included. You can refer to #33 .

Please let me know if you have any problem.

Yes, after I edited my files as https://github.com/uber-research/UPSNet/commit/ba524d5535e47ea42216dc299fa3effad4e3e661 did, this problem is solved. Unfortunately, the performance of panoptic head decreased, for example, the panoptic loss becomes larger and accuracy becomes smaller. Have you encountered this problem?

P.S. I use coco dataset instead of cityscapes.

JoyHuYY1412 avatar Jun 11 '19 10:06 JoyHuYY1412

@JoyHuYY1412 I am sorry that I can't remember exactly. But I remember that the performance seems to be worse. The pan_loss's becoming larger is normal. Because when you drop the crowd instance, the gt of this region will be wrong, which may affect the loss.

Please let me know if you have any problem.

LaoYang1994 avatar Jun 11 '19 11:06 LaoYang1994

@JoyHuYY1412 I am sorry that I can't remember exactly. But I remember that the performance seems to be worse. The pan_loss's becoming larger is normal. Because when you drop the crowd instance, the gt of this region will be wrong, which may affect the loss.

Please let me know if you have any problem.

Yes, I believe when I drop the crowd instance, the gt of the crowd part will also be "unknown", but it also makes sense when we calculate loss, right? So I was confused when the accuracy drops so much.

JoyHuYY1412 avatar Jun 11 '19 11:06 JoyHuYY1412

@JoyHuYY1412 Oh, you are right. I was wrong. It's hard to say. It seems that we need the author's help. @YuwenXiong

LaoYang1994 avatar Jun 11 '19 13:06 LaoYang1994

@JoyHuYY1412 Oh, you are right. I was wrong. It's hard to say. It seems that we need the author's help. @YuwenXiong

Thank you for your reply, but I still don't quiet understand why there will exist these kind of format in lable['roidb']['segms']. Especially the first one, it is not RLE or Polygen, ~~moreover, the code here~~ https://github.com/uber-research/UPSNet/blob/3218581a623b02a73c3334b672fc1ce0c25fdae9/upsnet/dataset/json_dataset.py#L173-L179 ~~also filtered some data, right?~~

JoyHuYY1412 avatar Jun 12 '19 12:06 JoyHuYY1412