Skip to content

convert_dr_yolo.py script not creating any files in detection-results folder #181

@naraekim12

Description

@naraekim12

Hiya, I'm trying to use mAP for my YOLOv4 model.

I'm following the steps here for the detection results: [https://github.com/Cartucho/mAP/tree/master/scripts/extra#convert-yolo-to-our-format-1]

I copied result.txt to mAP/scripts/extra folder
cp result.txt /home/abbeykim/mAP/scripts/extra

cd /home/abbeykim/mAP/scripts/extra

then I ran convert_dr_yolo.py
python3 convert_dr_yolo.py

but I get a FileNotFoundError
image
which is odd because the result.txt has been copied to the folder
image

So I've edited lines 12 in convert_dr_yolo.py because result.txt isn't in the directory /home/abbeykim/mAP/input/detection-results
image

It didn't show any errors, but no files were created after running convert_dr_yolo.py

I tried unediting the code to its original version
image
and instead copied the result.txt file and convert_dr_yolo file into the /mAP/input/detection-results folder
Then ran
python3 convert_dr_yolo.py

But still there aren't any files created in /mAP/input/detection-results

Everything works fine when I follow the steps for the ground-truth folder files (https://github.com/Cartucho/mAP/tree/master/scripts/extra#convert-yolo-to-our-format)

Anyone know what might be the problem?
Thanks :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions