Hi! I’ve trained a custom model following the Re-training SSD-Mobilenet tutorial. It works fine, but now I’d like to show metrics like F1 score, Accuracy and Loss.
So, I don’t know how to call ‘accuracy’ and ‘loss’ in order to show them into a graphic. By the way, I used Colab for training 'cause I have only a 2GB Jetson Nano.
Hi @juanpalaciosvargas, you can use the --validation-mean-ap flag to train_ssd.py to calculate the mean average precision (mAP) of each class during the validation phase of each training epoch.
Can you give me an example please? I’ve used this flag without any success. By the way, what I want to do is to show the results of training (“loss” and “accuracy”) into a graphic (“loss” vs" epochs" / “accuracy” vs “epochs”) and create a" confusion matrix".
Do you mean that it fails to run with that flag? If so, perhaps you are running an older version of train_ssd.py - in that case, try running this:
cd jetson-inference/python/training/detection/ssd
git pull
There is support for TensorBoard in train_ssd.py, it will output to your model’s tensorboard/ directory. You can then run TensorBoard from another terminal like tensorboard --log-dir=models/your_model/tensorboard and navigate your browser to it to see the Loss vs Epochs graphs and MeanAP vs Epochs graphs.
Hi @juanpalaciosvargas, can you try running git checkout master and git pull origin master instead?
If you are on Google COLAB, you can just clone pytorch-ssd repo directly (and it will be the latest master) - git clone https://github.com/dusty-nv/pytorch-ssd