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

hey,I want to know what the pred_dir(in evaluation.py) folder's usage is and where can i find these files,thanks #2

Open
sunnyjay3 opened this issue Aug 16, 2021 · 8 comments

Comments

@sunnyjay3
Copy link

sunnyjay3 commented Aug 16, 2021

1629095808(1)
1629095835(1)
1629095856(1)

@sunnyjay3 sunnyjay3 changed the title hey,I want to know what is the pred_dir folder's usage and where can i find these files hey,I want to know what is the pred_dir(in evaluation.py) folder's usage and where can i find these files Aug 16, 2021
@sunnyjay3 sunnyjay3 changed the title hey,I want to know what is the pred_dir(in evaluation.py) folder's usage and where can i find these files hey,I want to know what the pred_dir(in evaluation.py) folder's usage is and where can i find these files,thanks Aug 16, 2021
@ppogg
Copy link
Owner

ppogg commented Aug 16, 2021

Hello, my friend, I think what you said is that evaluate.py needs to be used mobilev3_txt and ground_truth
In fact, mobilev3_txt is the key point position after model prediction, and ground_truth is the correct key point position after manual labeling. Running evaluation.py will calculate the two files to evaluate the accuracy of the model.

How to get mobilev3_txt

cd ./widerface_evaluate
python setup.py build_ext --inplace
python test_widerface.py --trained_model ./weights/mobilev3_Final.pth --network mobilev3
python widerface_evaluate/evaluation.py

@sunnyjay3
Copy link
Author

sunnyjay3 commented Aug 16, 2021

thanks very much. I got it.

But when I running the test_widerface.py, that problem happend,I am wondering whether it is the data's problem
1629101692(1)

@ppogg
Copy link
Owner

ppogg commented Aug 16, 2021

Yes, it is indeed a data problem. Are you your own data set?

@sunnyjay3
Copy link
Author

I use the data-set of widerface-val, I still met this problem
1629110495(1)
the config is like this
1629110245(1)

@ppogg
Copy link
Owner

ppogg commented Aug 17, 2021

OK, I get it. May be the label.txt is not imported. Is the path checked?
You can print out the content of label.txt to see if it is loaded or the content is correct

@sunnyjay3
Copy link
Author

Yes, I directly print out "f.read()",everything is ok
bbe5b1f1ff2e36d4577481ff0356506
But when I try to print out the content of the file after using the function split(),the information before "10_848" disappeared.
image

@shenxiang1995
Copy link

我也是这个问题,怎么解决

@liu103687
Copy link

I also encountered the same problem. How did you solve it?
ValueError: zero-size array to reduction operation minimum which has no identity

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

4 participants