Replies: 3 comments 22 replies
-
This is because the model predicts no true positives and no false positives, so when calculating precision and f1, we are dividing by zero. The formula for precision is TP/(TP+FP), which in this case would be 0/0 which is indeterminate, thus listed as null. The f1 value is based on both the values for recall and precision, and since precision is null, we can't find a value for f1 so f1 is then null. Your model is predicting everything to be "not a car". |
Beta Was this translation helpful? Give feedback.
-
What dataset are you training on? |
Beta Was this translation helpful? Give feedback.
-
I opened an issue for this and have narrowed down the bug, but haven't figured it out yet. See #1517 |
Beta Was this translation helpful? Give feedback.
-
Hi everyone;
After training object detection I get f1 null !!!
"overall": [
{
"class_id": 0,
"class_name": "car",
"gt_count": 2414.0,
"pred_count": 0.0,
"count_error": 2414.0,
"metrics": {
"recall": 0.0,
"precision": null,
"f1": null,
"sensitivity": 0.0,
"specificity": null
},
"true_pos": 0.0,
"false_pos": 0.0,
"false_neg": 2414.0
},
I used different backbone but the same result
The used configuration for training:
model=ObjectDetectionModelConfig(backbone=<Backbone.resnet50: 'resnet50'>, pretrained=True, init_weights=None, load_strict=True, external_def=None) solver=SolverConfig(lr=0.0001, num_epochs=100, test_num_epochs=2, test_batch_sz=4, overfit_num_steps=1, sync_interval=1, batch_sz=200, one_cycle=True, multi_stage=[], class_loss_weights=None, ignore_class_index=None, external_loss_def=None) data=ObjectDetectionGeoDataConfig(scene_dataset='<93 train_scenes, 41 validation_scenes, 0 test_scenes>', window_opts="method=<GeoDataWindowMethod.random: 'random'> size=412 stride=None padding=None size_lims=(412, 413) h_lims=None w_lims=None max_windows=500 max_sample_attempts=100 efficient_aoi_sampling=True ioa_thresh=0.75 clip=True neg_ratio=None neg_ioa_thresh=0.2") predict_mode=False test_mode=False overfit_mode=False eval_train=False save_model_bundle=True log_tensorboard=False run_tensorboard=False output_uri='/opt/src/output/model-object_detector_test/train'
Beta Was this translation helpful? Give feedback.
All reactions