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
json.decoder error (Mediapipe) #178
Comments
Hello, you can print the filename when the error occurs. |
thanks for your response..!! "Actully i don't know lot of things about coading, |
Seems the file is corrupted. You can remove the |
thanks... |
No. This won't cause the decode error. |
Ok thanks for your reply..!!! I will try |
The Problem is in the JSON files there should be two \ in the filename but there is only one run this command for each camera
|
Thanks @NishilVani . Maybe it's a bug in windows? I didn't test the code on Windows now. |
Thank you very much @NishilVani your code successfully convert .json file for each cameras, but easymocap giving same jsondecoder error. BTW thanks again for your help you are very kind, really appreciate 🙏🙏 |
Probably related to #198 |
Thank you very much @ferhatsb exactly..👌you have solved the problem..👏👏❤️ |
Hello.. thanks for this amazing development..
I was trying to use mediapipe for MV1P and i followed these steps
1 - python apps/preprocess/extract_image.py 0_input\project
2 - python apps/preprocess/extract_keypoints.py 0_input\project --mode mp-pose
and
3 - python apps/demo/mv1p.py 0_input/project --out 1_output/project --vis_det --vis_repro --sub_vis 1 2 3 4 --vis_smpl
but when i run 3rd steps (mv1p.py), getting this error
Traceback (most recent call last):
File "apps/demo/mv1p.py", line 117, in
mv1pmf_skel(dataset, check_repro=True, args=args)
File "apps/demo/mv1p.py", line 35, in mv1pmf_skel
images, annots = dataset[nf]
File "c:\mocap\easymocap\easymocap\dataset\mv1pmf.py", line 72, in getitem
images, annots_all = super().getitem(index)
File "c:\mocap\easymocap\easymocap\dataset\base.py", line 482, in getitem
annot = read_annot(annname, self.kpts_type)
File "c:\mocap\easymocap\easymocap\mytools\file_utils.py", line 46, in read_annot
data = read_json(annotname)
File "c:\mocap\easymocap\easymocap\mytools\file_utils.py", line 19, in read_json
data = json.load(f)
File "C:\Users\Vinayky86\anaconda3\envs\easymocap\lib\json_init_.py", line 296, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "C:\Users\Vinayky86\anaconda3\envs\easymocap\lib\json_init_.py", line 348, in loads
return _default_decoder.decode(s)
File "C:\Users\Vinayky86\anaconda3\envs\easymocap\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\Vinayky86\anaconda3\envs\easymocap\lib\json\decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Invalid \escape: line 2 column 19 (char 20)
Please correct me if I am doing any wrong steps
thank you ...!!!
The text was updated successfully, but these errors were encountered: