Hi all,
I’m currently following the steps outlined in guide to train SAM21 [How to Fine-Tune SAM-2.1 on a Custom Dataset)]. However, I’ve encountered an issue regarding logging during training. In the .yaml
file, the configuration is set as mode: train_only
, which means the log files only include outputs for the training process.
I also have a validation dataset and would like to log the validation metrics during training, so I can later visualize them using TensorBoard. I tried modifying the .yaml
file to include the validation set and logging, but I either encounter errors or the logs don’t show up as expected.
As my background is in mechanical engineering, I find some parts of the SAM2 codebase challenging to fully grasp. If you’ve encountered this issue before or have any advice on how to enable logging for both training and validation datasets, I would greatly appreciate your guidance.
Thank you so much for your time and help!