-
Notifications
You must be signed in to change notification settings - Fork 36
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
[BUG] Failed to populate metadata on 72 samples. Use dataset.exists("metadata", False)
to retrieve them
#46
Comments
Another question is that this problem also causes 0 in precision. |
Have you inspected This error is coming from |
Yeah, the image paths do not exist but that should not be affecting the evaluation computations right? As it only needs bboxes from ground-truth and prediction. |
|
@brimoor So what you meant is that image paths are a prerequisite to calculating precision|recall|f1 correctly? |
Actually I'm confused. What code are you running exactly? This works perfectly fine with non-existent filepaths: import fiftyone as fo
import fiftyone.zoo as foz
dataset = foz.load_zoo_dataset("quickstart")
dataset.set_values("filepath", ["bad.jpg"] * len(dataset))
results = dataset.evaluate_detections(
"predictions",
gt_field="ground_truth",
eval_key="eval",
compute_mAP=True,
) |
Hi @brimoor, |
Does anyone know why I faced this error:
[BUG] Failed to populate metadata on 72 samples. Use
dataset.exists("metadata", False)to retrieve them
while calculating evaluate_detections?Computing metadata...
100% |█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 72/72 [791.6ms elapsed, 0s remaining, 91.0 samples/s]
Failed to populate metadata on 72 samples. Use
dataset.exists("metadata", False)
to retrieve them{
'samples_count': 72,
'samples_bytes': 510162,
'samples_size': '498.2KB',
'media_bytes': 0,
'media_size': '0.0B',
'total_bytes': 510162,
'total_size': '498.2KB',
}
Failed to populate metadata on 72 samples. Use
dataset.exists("metadata", False)
to retrieve themThreshold: 0.5
Evaluating detections...
100% |█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 72/72 [1.8s elapsed, 0s remaining, 40.7 samples/s]
precision recall f1-score support
contaminated 0.00 1.00 0.00 1
micro avg 0.00 1.00 0.00 2
macro avg 0.00 1.00 0.00 2
weighted avg 0.00 1.00 0.00 2
The text was updated successfully, but these errors were encountered: