Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reading custom ''instances_train_2017_transform_slight_correct.json" file failed #141

Open
redcican opened this issue Apr 9, 2024 · 2 comments

Comments

@redcican
Copy link

redcican commented Apr 9, 2024

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
Copy link
Author

redcican commented Apr 9, 2024

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

@yfjiang1990
Copy link

I have the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants