BCNet icon indicating copy to clipboard operation
BCNet copied to clipboard

reading custom ''instances_train_2017_transform_slight_correct.json" file failed

Open redcican opened this issue 10 months ago • 2 comments

hi, I followed the installation step, when I tried to run all.bash, the error occured:

File "/usr/local/lib/python3.8/site-packages/pycocotools-2.0-py3.8-linux-x86_64.egg/pycocotools/coco.py", line 84, in __init__ dataset = json.load(open(annotation_file, 'r')) File "/usr/local/lib/python3.8/json/__init__.py", line 293, in load return loads(fp.read(), File "/usr/local/lib/python3.8/json/__init__.py", line 357, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.8/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/local/lib/python3.8/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting ',' delimiter: line 1 column 650681102 (char 650681101)

The coco files are structured as below:

Screenshot 2024-04-09 150701

any idea?

redcican avatar Apr 09 '24 07:04 redcican

what is worse. the json can't open with any software, there is invalid characters.

redcican avatar Apr 09 '24 07:04 redcican

I have the same problem

yfjiang1990 avatar May 10 '24 05:05 yfjiang1990