xingyizhou / ExtremeNet

Bottom-up Object Detection by Grouping Extreme and Center Points
BSD 3-Clause "New" or "Revised" License
1.03k stars 172 forks source link

Generate extreme point annotation from segmentation #46

Open keravraj20 opened 3 years ago

keravraj20 commented 3 years ago

@xingyizhou while running python gen_coco_extreme_points.py for generating extreme points, I get this error. I tried looking at the exact column where it shows error, but it seams right.

Error I get: Traceback (most recent call last): File "gen_coco_extreme_points.py", line 80, in data = json.load(open(ANN_PATH.format(split), 'r')) File "/usr/lib/python3.6/json/init.py", line 299, in load parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw) File "/usr/lib/python3.6/json/init.py", line 354, in loads return _default_decoder.decode(s) File "/usr/lib/python3.6/json/decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.6/json/decoder.py", line 355, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting ',' delimiter: line 1 column 54525953 (char 54525952)

Can you pls help me with this?