-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
Loss graph during training #614
Comments
Hi @abeyang00 |
@springkim can you tell me where the plot is located in his folder? is it in .c file in src?? |
AlexeyAB#504 (comment) |
can someone tell me how to show loss graph during training when i use pjreddie's darknet |
Any update on this thread? |
I found one solution here : https://github.com/Jumabek/darknet_scripts/#how-to-plot-yolo-loss You basically need to save the output of Note that the plot does not show in a jupyter-notebook even with %matplotlib inline. A work around is to copy all plot related code from https://github.com/Jumabek/darknet_scripts/blob/master/plot_yolo_log.py into a new function. |
You can use repo https://github.com/AlexeyAB/darknet that shows Loss & mAP chart during Training: |
@AlexeyAB is this plot of the training loss or validation loss? If training loss, do you have a way of viewing the validation loss? |
@groszste |
@AlexeyAB |
From README: https://github.com/AlexeyAB/darknet/blob/master/README.md "Or just train with -map flag: darknet.exe detector train data/obj.data yolo-obj.cfg darknet53.conv.74 -map So you will see mAP-chart (red-line) in the Loss-chart Window. mAP will be calculated for each 4 Epochs using valid=valid.txt file that is specified in obj.data file (1 Epoch = images_in_train_txt / batch iterations)" |
I have followed the steps given by Mr. @AlexeyAB and got the red line but my problem is how to plot a mAP after every 100 iteration. In your documentation until 1000 iteration, but i want in every 100 iteration. |
@yjdeveloper have you figured out how to downscale the mAP calculation to a shorter interval? |
@yjdeveloper @snphnolt use this version with -map 0.02 for map calculation at every 0.02 epoch (starts after warmup iterations) |
Where this map graph has seen? |
How do you got the red line? |
I am using your repo to detect a custom objects using yolov3. however I have get in to trouble. The predictions.jpg image do not draw the confidence score but it draws the class id. i traced the image.c code and I have found that in the function definition void draw_detections_v3(image im, detection *dets, int num, float thresh, char **names, image **alphabet, int classes, int ext_output) how to resolev e the issue? |
please, anyone, help. which function I have to use in AlexeyAB yolo repository in order to get confidence score drawings on the predictions.jpg image file???? I have get only class Id using this !./darknet detector test data/trainer.data cfg/yolov3.cfg backup/yolov3_last.weights -thresh 0.1 -iou_thresh 0.3 data/img/tb500.jpg |
The command |
@rbarman in the |
How to save the loss graph on drive because i run the code on colab . |
I'm training Yolov3-tiny on colab using the following command- It shows |
@harshkc03 I found this quote in StackOverflow. I still not found a way to propagate the json and graph at same time, but you can try something like this to train and see your graph updating. It prints a url that you can access your loss graph with the follow commands: !wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
!unzip ngrok-stable-linux-amd64.zip
get_ipython().system_raw('./ngrok http 8090 &')
!curl -s http://localhost:4040/api/tunnels | python3 -c \
"import sys, json; print(json.load(sys.stdin)['tunnels'][0]['public_url'])" After this, start your training: !./darknet detector train /content/obj.data /content/yolov3-tiny-obj.cfg backup/yolov3-tiny-obj_last.weights -dont_show -mjpeg_port 8090 -map |
Is there a way to produce the loss curve and mAP from an existing weight? |
@francismontalbo you can obtain mAP of the existing weight using the command- |
Yes, I've been using that. I see, thank you for the response good sir. |
You can use pyngrok python package to display loss graph
Then run your training with flags
|
Thankyou sir, it works as expected. |
Seems much more elegant than my response, ty auhdsuahsduahs |
Hello , I am getting the following error while using the command "!./darknet detector train data/obj.data cfg/yolov3_custom.cfg darknet53.conv.74 -dont_show -mjpeg_port 8090 -map".I am using google colab. The connection to http://d80c91c46410.ngrok.io was successfully tunneled to your ngrok client, but the client failed to establish a connection to the local address localhost:8090. Make sure that a web service is running on localhost:8090 and that it is a valid address. The error encountered was: dial tcp 127.0.0.1:8090: connect: connection refused |
Did you find a solution? Thanks in advance. |
I've followed this tutorial but my output mAP seems to have started its line from 68% and there is a broken line between 0 - 68%, how do I resolve this? |
Hello! It is work only on Windows? I dont know how use it on Linux. I use tag -map |
Ok, i do make without OPENCV=1, now i do make with OPENCV=1 and its work :) |
how to show red line (percentage) and run on what file? |
What is the y-axis? What do those numbers on the y-axis represent? |
@mhdayub You just have to add -map flag at the end of the command used for training and you will see accuracy-mAP during training. For e.g, darknet.exe detector train data/obj.data cfg/yolov4-obj.cfg backup/yolov4-obj_last.weights -map |
go to darket folder, you will see the chart image file 'chart.png' |
Hi, I am new to yolo. Where can I find the training loss values stored in the darknet? Is the training loss values stored or they are just directly plotted? |
Go to darknet folder and you can find it there |
cuDNN status Error in: file: ./src/convolutional_kernels.cu : () : line: 543 : build time: Apr 2 2023 - 12:39:35 cuDNN Error: CUDNN_STATUS_BAD_PARAM and, is there any method to avoid the runtime to get stopped? i have 6000th iterations to run , but it will automatically stops when it reaches 3000 iterations. |
Is there a way to show loss graph during training like tensorflow?
The text was updated successfully, but these errors were encountered: