ChenhongyiYang / PPAL

[CVPR 2024] Plug and Play Active Learning for Object Detection
Apache License 2.0
68 stars 8 forks source link

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) #17

Open sangeethnrs opened 1 month ago

sangeethnrs commented 1 month ago

how to solve this error

[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] 115922/115922, 16.8 task/s, elapsed: 6898s, ETA: 0sKilled ----> Inference on unlabeled data time: 1:59:47

Starting Active Learning Acquisition!!!

Round: 2 Dataset: coco Oracle annotation path: data/coco/annotations/instances_train2017.json Image pool size: 118287 Uncertainty pool size per Round: 9461 (8.00%) Unlabeled results path: work_dirs/retinanet_coco_ppal_5rounds_2percent_to_10percent/round1/unlabeled_inference_result.bbox.json Uncertainty pool image info file path: work_dirs/retinanet_coco_ppal_5rounds_2percent_to_10percent/round1/annotations/uncertainty_new_labeled.json Score threshold: 0.05 Class weight upper bound: 0.20 Class quality alpha: 0.30 Traceback (most recent call last): File "tools/run_al_coco.py", line 156, in run(i+1, i!=int(cfg.get('round_num'))-1) File "tools/run_al_coco.py", line 120, in run uncertainty_sampler.al_round(round_uncertainty_inference_json, round_labeled_json, round_uncertainty_new_labeled_json, round_uncertainty_new_unlabeled_json) File "/home/sangeeth/Desktop/PPAL/mmdet/ppal/sampler/difficulty_calibrated_uncertainty_sampler.py", line 135, in al_round sampled_img_ids, rest_img_ids = self.al_acquisition(result_path, last_label_path) File "/home/sangeeth/Desktop/PPAL/mmdet/ppal/sampler/difficulty_calibrated_uncertainty_sampler.py", line 57, in al_acquisition results = json.load(f) File "/home/sangeeth/anaconda3/envs/ppal2/lib/python3.8/json/init.py", line 293, in load return loads(fp.read(), File "/home/sangeeth/anaconda3/envs/ppal2/lib/python3.8/json/init.py", line 357, in loads return _default_decoder.decode(s) File "/home/sangeeth/anaconda3/envs/ppal2/lib/python3.8/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/home/sangeeth/anaconda3/envs/ppal2/lib/python3.8/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)