-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Problem in train.py #177
Comments
I have the same problem! |
I found the solution! In your custom class name file (/data/custom/classes.names), you need to leave an empty line at the end. Because in utils/utils.py, the function "load_classes" parses the name file like this: [:-1], which ends up only selecting the first n-1 names in the file if u don't leave an empty line at the end. If you look at the coco dataset name file, you'll find that empty line in the end as well. (data/coco.names) I tried removing the empty line and change the [:-1] to [:], but somehow the evaluation gets stuck and not working. It's really weird. But anyways, it should be working with this fix. |
I followed your guide and succeeded. Thank you so much. |
@SirongHuang Awesome. Thanks .:) |
SirongHuang |
SirongHuang |
SirongHuang |
Awsome, Thanks |
Is this issue still relevant/occurring? I closed this issue due to inactivity. Feel free to reopen for further discussion. |
Print class APs and mAP
ap_table = [["Index", "Class name", "AP"]]
for i, c in enumerate(ap_class):
ap_table += [[c, class_names[c], "%.5f" % AP[i]]]
print(AsciiTable(ap_table).table)
print(f"---- mAP {AP.mean()}")
This module might have some problems in my custom training, do you know what happened?
The text was updated successfully, but these errors were encountered: