Ikomia-dev / IkomiaApi

Deploy Computer Vision solutions with a few lines of code.
https://ikomia-dev.github.io/python-api-documentation/
Apache License 2.0
225 stars 13 forks source link

How to resume training? #15

Open mmoollllee opened 1 year ago

mmoollllee commented 1 year ago

Is your feature request related to a problem? Please describe. After training was interrupted I want to pick up the process and continue training where it stopped.

Describe the solution you'd like Some parameter to define the correct folder where progress was saved to.

ambroiseb commented 1 year ago

Hi @mmoollllee. Stricly resuming a training is not implemented for most of our training algorithms. But you can restart a new training (from epoch 0) with as pretrained model the one from interrupted training. Indeed, if you have left the algorithm running long enough to make a validation pass, you should find in your "output_folder" (a parameter of the training algorithm) the weights and config file from the best model. To do so, you need to set some parameters:

imtheclown commented 8 months ago

Hi @ambroiseb, I am new to Ikomia and I am not familiar with the technicalities. I would like to ask how could I use the answer above to restart training in train_yolov7? I've read the documentation of train_yoloV7 and I did not found the parameters stated above. Thank you.

ambroiseb commented 8 months ago

Hi @imtheclown For now resuming a training is not possible with train_yolo_v7. I'll let you know when it's fixed. Best regards