YOLO early stopping not running off epochs

19 visualizaciones (últimos 30 días)
Conner Carriere
Conner Carriere el 29 de Nov. de 2022
Respondida: Vidip Jain el 20 de Mzo. de 2023
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 comentario
Reece Pene
Reece Pene el 15 de Dic. de 2022
Editada: Reece Pene el 15 de Dic. de 2022
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.

Iniciar sesión para comentar.

Respuestas (1)

Vidip Jain
Vidip Jain el 20 de Mzo. de 2023
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.

Categorías

Más información sobre Recognition, Object Detection, and Semantic Segmentation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by