-
Notifications
You must be signed in to change notification settings - Fork 2
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
Phenobench-evaluator does not detect folders in the zip file #2
Comments
Hi @niqbal996,
|
Hi @jbehley, |
No need to send me the files; I can access the submission via Codalab and I can have a look. I'm not sure what then goes wrong and have to visualize the detections and see if it's a problem of our evaluation script. I will have probably in the next few days some time to look over it, therefore, expect a bit of delay. |
I finally managed to look into the issue. Sorry that it took a bit longer.
Hope that helps to debug your code. |
Hi @jbehley ,
and all values have to be multiplied with 1024 i.e. image size (hence the values close to 0) to get the absolute values of the bounding boxes. I visualized it locally and I get the following boxes. |
yes, all values need to be divided by the image width/height, which is in our case 1024; thus your file should look something like this:
which are taken from the results of YOLOv7 that we published at https://github.com/PrBOnn/phenobench-baselines (only the high-confidence results). In your latest submission, the width/height seems not to be normalized to [0,1] and therefore cannot be correctly scored. I'm currently working on a viewer to show the predictions/results conveniently, but I have a lot of other duties currently that have higher priority. However, I read the bounding boxes with the following code: def read_bboxes(filename: str, img_width=1024, img_height=1024) -> List[Dict]:
bboxes = []
with open(filename) as f:
for line in f.readlines():
cid, cx, cy, w, h, conf = line.strip().split(" ")[:6]
bboxes.append(
{
"label": int(cid),
"center": (float(cx) * img_width, float(cy) * img_height),
"width": float(w) * img_width,
"height": float(h) * img_height,
"confidence": float(conf),
}
)
return bboxes and then use the phenobench/src/phenobench/visualization.py Lines 77 to 107 in 0edc128
|
Hi,
I am trying to upload a submission on the Plant detection competition on the Codalab. My submission is not being processed correctly. I have tried to validate it with the phenobench-evaluator using the following command:
I also reproduced the example with python source at
phenobench/src/phenobench/tools/validator.py
and I noticed that at linephenobench/src/phenobench/tools/validator.py
Line 67 in 0edc128
If I understand the instructions given here https://codalab.lisn.upsaclay.fr/competitions/14178#learn_the_details-evaluation correctly, the zip file has the correct folder structure,
but the validator detects no folder named
plant_bboxes
. Maybe this resulted in different zipfile version?Phenobench version: 0.1.0
I could open a pull request if that is indeed not the expected behaviour. Thank you.
The text was updated successfully, but these errors were encountered: