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

How to get the accuracy of test or valid in classification? Not Top1 or Topk. Such as "- map" #8838

Open
zhen-yan opened this issue Sep 4, 2023 · 1 comment
Labels
Training issue Training issue - no-detections / Nan avg-loss / low accuracy:

Comments

@zhen-yan
Copy link

zhen-yan commented Sep 4, 2023

If you have an issue with training - no-detections / Nan avg-loss / low accuracy:
* read FAQ: https://github.com/AlexeyAB/darknet/wiki/FAQ---frequently-asked-questions
* what command do you use?
* what dataset do you use?
* what Loss and mAP did you get?
* show chart.png with Loss and mAP
* check your dataset - run training with flag -show_imgs i.e. ./darknet detector train ... -show_imgs and look at the aug_...jpg images, do you see correct truth bounded boxes?
* rename your cfg-file to txt-file and drag-n-drop (attach) to your message here
* show content of generated files bad.list and bad_label.list if they exist
* Read How to train (to detect your custom objects) and How to improve object detection in the Readme: https://github.com/AlexeyAB/darknet/blob/master/README.md
* show such screenshot with info

./darknet detector test cfg/coco.data cfg/yolov4.cfg yolov4.weights data/dog.jpg
 CUDA-version: 10000 (10000), cuDNN: 7.4.2, CUDNN_HALF=1, GPU count: 1
 CUDNN_HALF=1
 OpenCV version: 4.2.0
 0 : compute_capability = 750, cudnn_half = 1, GPU: GeForce RTX 2070
net.optimized_memory = 0
mini_batch = 1, batch = 8, time_steps = 1, train = 0
   layer   filters  size/strd(dil)      input                output
@zhen-yan zhen-yan added the Training issue Training issue - no-detections / Nan avg-loss / low accuracy: label Sep 4, 2023
@Dickoabc123
Copy link

Hello @zhen-yan did you manage to solve this? I too would like to know the training and validation losses for each Epoch along with the mAP for each Epoch. @AlexeyAB do you know how we can achieve this? This is very important for analysing the performance of the models.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Training issue Training issue - no-detections / Nan avg-loss / low accuracy:
Projects
None yet
Development

No branches or pull requests

2 participants