YOLO early stopping not running off epochs

조회 수: 22 (최근 30일)
Conner Carriere
Conner Carriere 2022년 11월 29일
답변: Vidip Jain 2023년 3월 20일
Does the ValidationPatience option in trainingOptions() go by epocs or iterations? I am trying to implement early stopping into my YOLO V4 learning, and it seems to be by iterations, and stopping at a selected number. For example, ValidationPatience = 800, it will stop at the 800th iteration, even though the validation loss is not increasing.
Any help on how to implement early stopping into YOLO
  댓글 수: 1
Reece Pene
Reece Pene 2022년 12월 15일
편집: Reece Pene 2022년 12월 15일
I have the same issue. Matlab isnt allowing the training to stop according to the validation patience. Instead it stops at a certain iteration.
Hope someone fixes this. It might be an error on the yolov4 training function.

댓글을 달려면 로그인하십시오.

답변 (1개)

Vidip Jain
Vidip Jain 2023년 3월 20일
The “ValidationPatience” option in “tainingOptions()” goes by epochs, not iterations. The patience value determines the number of epochs to wait before stopping training when the validation loss has stopped improving. If the validation loss does not improve for the specified number of epochs, the training stops early.
In your case, it sounds like you are using a custom implementation of early stopping based on the number of iterations rather than epochs. You may want to modify your code to use a patience value based on epochs instead, which will give you more consistent results across different training configurations. You can calculate the number of iterations for a given epoch by multiplying the number of iterations per epoch by the epoch number.

카테고리

Help CenterFile Exchange에서 Pattern Recognition and Classification에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by