zengarden / light_head_rcnn

Light-Head R-CNN
834 stars 222 forks source link

problem reading JSON #37

Open emedinac opened 6 years ago

emedinac commented 6 years ago

Hello,

I am training a network with a modified base model from scratch. but I'm having this error two times before having a complete error and crash the ipython (terminal). Why am I obtaining this error? it looks like a dataset problem or during the reading process.

Process _Worker-8: Traceback (most recent call last): File "/home/edgar/light_head_rcnn/experiments/lizeming/light_head_rcnn.ori_res101.coco.ps_roialign/dataset.py", line 95, in get_data_for_singlegpu record = json.loads(raw_line) File "/usr/lib/python3.6/json/init.py", line 354, in loads return _default_decoder.decode(s) File "/usr/lib/python3.6/json/decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.6/json/decoder.py", line 355, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Unterminated string starting at: line 1 column 219 (char 218)

##########################

Process _Worker-1: Traceback (most recent call last): File "/home/edgar/light_head_rcnn/experiments/lizeming/light_head_rcnn.ori_res101.coco.ps_roialign/dataset.py", line 95, in get_data_for_singlegpu record = json.loads(raw_line) File "/usr/lib/python3.6/json/init.py", line 354, in loads return _default_decoder.decode(s) File "/usr/lib/python3.6/json/decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.6/json/decoder.py", line 355, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Unterminated string starting at: line 1 column 219 (char 218)

emedinac commented 6 years ago

Problem solved. Files must be downloaded by yourself, this error is generated by corrupted or uncompleted files.