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

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

Open
sangeethnrs opened this issue Jun 12, 2024 · 0 comments

Comments

@sangeethnrs
Copy link

sangeethnrs commented Jun 12, 2024

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)

@sangeethnrs sangeethnrs changed the title difficulty_calibrated_uncertainty_sampler unexpected key state_dict: bbox_head.class_momentum, bbox_head.class_qualit Jun 13, 2024
@sangeethnrs sangeethnrs changed the title unexpected key state_dict: bbox_head.class_momentum, bbox_head.class_qualit json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) Jun 14, 2024
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

1 participant