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

error in evaluate the model #133

Open
qrt159 opened this issue Dec 17, 2019 · 1 comment
Open

error in evaluate the model #133

qrt159 opened this issue Dec 17, 2019 · 1 comment

Comments

@qrt159
Copy link

qrt159 commented Dec 17, 2019

when i run evaluate.py, I get some trouble like this:

Traceback (most recent call last):
File "evaluate.py", line 104, in
main(args)
File "evaluate.py", line 100, in main
test(testing_db, system_config, model, args)
File "evaluate.py", line 60, in test
test_func(system_config, db, nnet, result_dir, debug=debug)
File "/qinruntian/CornerNet-Lite/core/test/init.py", line 11, in test_func
return globals()[sys_config.sampling_function](db, nnet, result_dir, debug=debug)
File "/qinruntian/CornerNet-Lite/core/test/cornernet_saccade.py", line 284, in cornernet_saccade
json.dump(detections, f)
File "/root/anaconda3/envs/CornerNet_Lite/lib/python3.7/json/init.py", line 179, in dump
for chunk in iterable:
File "/root/anaconda3/envs/CornerNet_Lite/lib/python3.7/json/encoder.py", line 429, in _iterencode
yield from _iterencode_list(o, _current_indent_level)
File "/root/anaconda3/envs/CornerNet_Lite/lib/python3.7/json/encoder.py", line 325, in _iterencode_list
yield from chunks
File "/root/anaconda3/envs/CornerNet_Lite/lib/python3.7/json/encoder.py", line 405, in _iterencode_dict
yield from chunks
File "/root/anaconda3/envs/CornerNet_Lite/lib/python3.7/json/encoder.py", line 438, in _iterencode
o = _default(o)
File "/root/anaconda3/envs/CornerNet_Lite/lib/python3.7/json/encoder.py", line 179, in default
raise TypeError(f'Object of type {o.class.name} '
TypeError: Object of type int64 is not JSON serializable

what can i do to solve this problem?

@heilaw
Copy link
Contributor

heilaw commented Dec 19, 2019

Were you evaluating the model on your own dataset?

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