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

How to resume training? #15

Open
mmoollllee opened this issue Aug 5, 2023 · 3 comments
Open

How to resume training? #15

mmoollllee opened this issue Aug 5, 2023 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@mmoollllee
Copy link

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
Copy link
Collaborator

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:

  • "model_weight_file" = path_to_your_weight_file_from_interrupted_training.pth
  • "config_file" = path_to_your_config_file_from_interrupted_training (.yaml, .py... depending on the algorithm)
  • "use_custom_model" = "True"
    Hoping it helps, let me know if something is unclear.
    Best regards

@LudoBar LudoBar added the question Further information is requested label Sep 13, 2023
@imtheclown
Copy link

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
Copy link
Collaborator

ambroiseb commented Jan 3, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants