detecto icon indicating copy to clipboard operation
detecto copied to clipboard

Plot Training Loss

Open xwasco opened this issue 3 years ago • 7 comments

Describe the feature you'd like I would like to see the training loss not only the validation loss

Describe the use cases of the feature To better detect cases of under/overfitting

Additional context

Thanks!

xwasco avatar Aug 01 '20 16:08 xwasco

Suggestion noted. In the meantime, a workaround could be to copy and modify the source code for the fit method to return both the training and validation losses.

alankbi avatar Aug 04 '20 04:08 alankbi

It would be really nice to have a progress bar as well.

cagbal avatar Aug 26 '20 11:08 cagbal

@cagbal just want to confirm: have you been using the verbose=True flag when training?

alankbi avatar Aug 27 '20 00:08 alankbi

Exactly. I trained the system with 10K images with bbs. It was hard to understand how long would one epoch take. A progress bar would help a lot.

cagbal avatar Aug 27 '20 06:08 cagbal

@alankbi Would it be possible to link it to tensorboard?

simeon9696 avatar Sep 14 '20 12:09 simeon9696

Maybe this tutorial can help? With Detecto's Model class, you can call the get_internal_model method to get the actual PyTorch model, which you can then pass to the SummaryWriter as detailed in that tutorial.

alankbi avatar Sep 16 '20 16:09 alankbi

Update: a progress bar has been added in v1.1.2 :)

alankbi avatar Oct 24 '20 03:10 alankbi