Skip to content
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

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

Open
naraekim12 opened this issue Nov 2, 2023 · 0 comments

Comments

@naraekim12
Copy link

naraekim12 commented Nov 2, 2023

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 :)

@naraekim12 naraekim12 changed the title FileNotFoundError: [Errno 2] No such file or directory: 'result.txt' convert_dr_yolo.py script not creating any files in detection-results folder Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant