You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Annotations /root/autodl-tmp/datasets/coco/annotations/instancesonly_filtered_train.json: 4%|███▏ | 714/18732 [00:02<01:09, 257.80it/s]
Traceback (most recent call last):
File "general_json2yolo.py", line 396, in
convert_coco_json(
File "general_json2yolo.py", line 315, in convert_coco_json
file.write(("%g " * len(line)).rstrip() % line + "\n")
TypeError: must be real number, not NoneType
The text was updated successfully, but these errors were encountered:
I meet the same problem. I guess this is because the type of the dataset to be converted is inconsistent with COCO's native type.
I solved this problem by adding the argument "cls91to88 = False" to the function "convert_coco"
@huizhenlai thank you for sharing your solution. If the issue persists, please ensure you're using the latest version of the package. If you have further questions, feel free to ask.
Annotations /root/autodl-tmp/datasets/coco/annotations/instancesonly_filtered_train.json: 4%|███▏ | 714/18732 [00:02<01:09, 257.80it/s]
Traceback (most recent call last):
File "general_json2yolo.py", line 396, in
convert_coco_json(
File "general_json2yolo.py", line 315, in convert_coco_json
file.write(("%g " * len(line)).rstrip() % line + "\n")
TypeError: must be real number, not NoneType
The text was updated successfully, but these errors were encountered: