To plot the loss graph after training using TensorFlow's EfficientDet architecture and the Model Maker library for custom object detection in Google Colab notebook, follow these steps:
import matplotlib.pyplot as plt
import numpy as np
log_file = 'model/logs/efficientdet/model.log'
with open(log_file) as f:
training_logs = f.read().splitlines()
losses = []
for log in training_logs:
if 'loss =' in log:
loss_value = float(log.split('loss = ')[-1])
losses.append(loss_value)
plt.plot(np.arange(len(losses)), losses)
plt.title('Training Loss')
plt.xlabel('Number of steps')
plt.ylabel('Loss value')
plt.show()
This will create a graph showing the training loss over time.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2021-07-28 11:00:00 +0000
Seen: 10 times
Last updated: Apr 07 '22
How to retrieve lost messages in ZeroMQ publish/subscribe model?
How can weights be duplicated and altered using pytorch?
What are the steps to visualize a PCL Model accurately using ROS RVIZ?
What could be the reason for the low AUC and ROC scores of my significant model?
What is the process of using a Word2Vec model on a column within a Pandas dataframe?
How to provide parameters to machine learning model objects?
Is the BTYD model adjusted or modified before its implementation?