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

During training, these parameters are all 0 --- P, R, mAP50 #252

Open
Dapao7777 opened this issue Mar 15, 2024 · 5 comments
Open

During training, these parameters are all 0 --- P, R, mAP50 #252

Dapao7777 opened this issue Mar 15, 2024 · 5 comments

Comments

@Dapao7777
Copy link

During training, these parameters are all 0 --- P, R, mAP50. My device is RTX4090. I changed half() and amp to float() and False. It is useless and a warning will appear. Here are a few screenshots of the training process:
屏幕截图 2024-03-15 195802
屏幕截图 2024-03-15 201030
屏幕截图 2024-03-15 201051

@Dapao7777
Copy link
Author

Ask for advice

@Youho99
Copy link

Youho99 commented Mar 15, 2024

It's normal
Look at your warning message. Your labels are not in the correct format

@txctxc
Copy link

txctxc commented Apr 9, 2024

Several hours ago, I downloaded the latest official YOLOv9 GitHub repository manually instead of downloading it by

git clone https://github.com/SkalskiP/yolov9.git

as the latest repository has not been released yet.
Then I exported YOLOv9 format from my Roboflow dataset version. I have used this dataset format for YOLOv9 Object Detection and it works fine. Now I want to use the same dataset format for YOLOv9 Instance Segmentation. In Roboflow platform, my dataset is well-annotated by polygon masks.

python segment/train.py --epochs 50 --batch 1 --img 1408 --workers 8 --device 0 \
--data /root/autodl-tmp/yolov9/AutoKary2022-2/data.yaml \
--cfg models/segment/gelan-c-seg.yaml \
--weights /root/autodl-tmp/weights/gelan-c-seg.pt \
--name gelan-c-seg --hyp hyp.scratch-high.yaml --no-overlap --close-mosaic 10

where I used this code for training: https://github.com/WongKinYiu/yolov9/blob/main/segment/train.py
as the training process continued, I found something went wrong. The P, R, and mAP50 values all became 0 after epoch 3:
image

The detailed log is as follows:
detailedLog.txt

But I have not got any warning messages on my labels' format, so I think my situation is not quite the same as yours.

Any advice on how to fix this?
Best regards.

@Youho99
Copy link

Youho99 commented Apr 9, 2024

Several hours ago, I downloaded the latest official YOLOv9 GitHub repository manually instead of downloading it by

git clone https://github.com/SkalskiP/yolov9.git

as the latest repository has not been released yet. Then I exported YOLOv9 format from my Roboflow dataset version. I have used this dataset format for YOLOv9 Object Detection and it works fine. Now I want to use the same dataset format for YOLOv9 Instance Segmentation. In Roboflow platform, my dataset is well-annotated by polygon masks.

python segment/train.py --epochs 50 --batch 1 --img 1408 --workers 8 --device 0 \
--data /root/autodl-tmp/yolov9/AutoKary2022-2/data.yaml \
--cfg models/segment/gelan-c-seg.yaml \
--weights /root/autodl-tmp/weights/gelan-c-seg.pt \
--name gelan-c-seg --hyp hyp.scratch-high.yaml --no-overlap --close-mosaic 10

where I used this code for training: https://github.com/WongKinYiu/yolov9/blob/main/segment/train.py as the training process continued, I found something went wrong. The P, R, and mAP50 values all became 0 after epoch 3: image

The detailed log is as follows: detailedLog.txt

But I have not got any warning messages on my labels' format, so I think my situation is not quite the same as yours.

Any advice on how to fix this? Best regards.

This problem is not the same
Personally, I haven't tried segmentation.
Opens a new issue for this please

@cza0426
Copy link

cza0426 commented Apr 16, 2024

So do I. During training, these parameters are 0 -- P, R, mAP50. The values of box_loss, cls_loss, and dfl_loss are NAN. My device RTX4060ti. How to solve it?
BEI6S$ 1P}89~V4$S4MTPY6
F}H}UWN@0GDZC)_2NP7_I~A

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