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

No JSON object could be decoded #8

Open
BoogalooXiang opened this issue May 18, 2020 · 5 comments
Open

No JSON object could be decoded #8

BoogalooXiang opened this issue May 18, 2020 · 5 comments

Comments

@BoogalooXiang
Copy link

I followed readme file and ran trans.py, main.py , process-vmaf.py one by one. I used vmaf-1.3.9 but the error come out: No JSON object could be decoded. And my json file is empty. Has anyone met with this problem? Can anybody tell me how to solve that? thx :D

@kasimte
Copy link
Contributor

kasimte commented May 18, 2020

I think I've seen this. Can you post a log?

@BoogalooXiang
Copy link
Author

Traceback (most recent call last):

File "../ffmpeg2vmaf", line 8, in
from vmaf.config import VmafConfig, DisplayConfig
ImportError: No module named vmaf.config

Traceback (most recent call last):

File "generate.py", line 62, in
eventloop(_file)
File "generate.py", line 44, in eventloop
data = json.load(json_file)
File "/usr/lib/python2.7/json/init.py", line 291, in load
**kw)
File "/usr/lib/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

@kasimte
Copy link
Contributor

kasimte commented May 18, 2020

It looks like it is trying to read a json file on this line:

data = json.load(json_file)

Did you print the filename and check if the json file exists?

@BoogalooXiang
Copy link
Author

Yeah the json file do exist but I found it was an empty file when I opened it.
I used
print json_file
before
data = json.load(json_file)
and it showed:
<open file 'tmp_0.flv.json', mode 'r' at 0x7f002321f390>

@kasimte
Copy link
Contributor

kasimte commented May 18, 2020

That looks like the culprit. If you get the training data processing to work, I would be grateful if you would let me know. I tried following the README instructions and ended up with files with a lot of NaNs that couldn't be used for training.

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