Logging training metrics to a csv file
I want to log all training metrics to a csv file while it is training on YOLOV5 which is written with pytorch but the problem is that I don't want to use tensorboard.
To achieve this goal I tried some techniques like below:
-First log it into tensorboard and then try to convert it to a csv file (failed)
-Extract log files from Weights &amp; Biases (failed)
-Write to a csv file directly during training (failed)
Here I tried opening a csv file and transforming tensor data into string but couldn't succeed.
So I really wonder how could I achieve this goal because YOLOV5 is not using pytorch utilites like model.fit which we can use callbacks with.
Thanks in advance.

You might try using the Weights and Biases YOLOv5 integration.
Here is the link: https://docs.wandb.ai/guides/integrations/yolov5
The link has more details, but here are some quotes that convey the basic idea:

Simply by installing wandb, you'll activate the built-in W&amp;B logging features: system metrics, model metrics, and media logged to interactive Dashboards.

pip install wandb
git clone https://github.com/ultralytics/yolov5.git
python yolov5/train.py  # train a small network on a small dataset


Just follow the links printed to the standard out by wandb.pip install wandb git clone

You can also do model versioning &amp; dataset visualization, which is explained more in the w&amp;b yolov5 integration docs page (linked above). You can also watch this YouTube video for a guide: https://youtu.be/yyecuhBmLxE
