Visualize AI Model Training Metrics with TensorBoard
Key Takeaways
The video demonstrates how to visualize AI model training metrics with TensorBoard using the NVIDIA TAO Toolkit, showcasing the impact of changing the learning rate on model training progress.
Full Transcript
in this video we'll show how you can view the training process from the tau toolkit in tensorboard a visual tool for machine learning and experimentation we'll use one of the many computer vision notebooks for this example now i have already configured my system with the tao toolkit and so if you need to do that please refer to the getting started page for more info today i'm going to be using a yolo v4 notebook as an example we are going to look at the impact of changing the learning rate between two versions of the same model learning rate is essentially the size of the steps taken by the model to achieve the lowest cost function to set the learning rate navigate to the specs directory click on the training spec file for any one of these experiments for the first experiment we'll start with the default learning rate as shown here in the second experiment we'll set a higher learning rate we can expect the model to reach the cost function a lot quicker and finally to enable tensorboard set the visualization to true in both the training spec files with the training specification set let's head over to the jupyter notebook to begin our training we'll enable the environment variables by running the first cell in the notebook this is an essential step to enable the training progress the next cells here deal with downloading and installing the tau toolkit launcher which we'll skip as we've already have this installed the next cells here download and convert the format of the data set required for training then we'll download the pre-trained model directly from the ngc catalog and finally you can review the training parameters we said earlier in the cells here okay now we are ready to start training i am going to run the first experiment with default learning rate depending on the size of the model it may take a few minutes for the model to initiate and start solving as you can see that the training process has now started we can now view the progress in tensorboard to do this you'll need to start a new terminal session remotely log into the machine and then navigate to the folder where the results are being written enter the syntax shown here this will enable you to view multiple experiments in the same tensorboard window you can also refer to the documentation for the exact syntax the command will generate a specific url you simply need to copy and paste it into a new browser tab ensure that you enter the correct ip address of the machine so now we have tensorboard running in our browser you can view scalar plots in the first tab these include average precision for the various classes in our model the training loss the learning rate the mean average precision and also the validation loss the next tab shows the model predictions on the input images that are recorded per epoch the next two tabs give you access to some advanced data that includes histograms of the model weights in each layer as well all these metrics are recorded and displayed in real time we'll let this training complete for ade epochs and then view the final set of results the model training is not complete let's take a look at the results we can view the summary of the results in the jupyter notebook now let's take the results in detail in tensorboard as well again you'll see the accuracy for each class within our model we can also see the final training loss the resulting learning rate the mean average precision as well as the validation loss all after 80 epochs so we now know where we stand with our first experiment let's go back to the jupiter notebook and run the case with a higher learning rate again this will take a few minutes to initialize and solve now that this experiment has started to solve let's view the results in tensorboard you can now see the impact of changing the learning rate to higher value the model is converging a lot faster across all the various parameters we'll let this model run through the ad epochs and then inspect our final results you can see quite a big difference in the results between the two experiments shown here in the jupiter notebook it looks like the higher learning rate is showing better results it may just be that we have to run the experiment with the lower learning rate for a few more training epochs now let's compare the results in tensorboard again the comparison plots show that our second experiment the higher learning rate shows better results across the various parameters such as the average precision for each class the training loss the learning rate the mean average precision and also the validation loss with this visual capability we can now see and compare the results of all our experiments in a single view you've just seen how easy and powerful it is to visualize and understand the training process in tensorboard now you can change the right hyper parameters of your model in the tau toolkit experiment with various what-ifs and arrive at an optimized model that fits your use case
Original Description
The #NVIDIATAO Toolkit, built on TensorFlow and PyTorch, is a low-code AI solution that lets developers create custom AI models using the power of transfer learning. In this video, we’ll show how you can visualize the model training progress in TensorBoard with the TAO Toolkit.
Learn more: https://nvda.ws/3LaIHXt
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from NVIDIA Developer · NVIDIA Developer · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Ray Tracing Essentials Part 2: Rasterization versus Ray Tracing
NVIDIA Developer
Ray Tracing Essentials Part 3: Ray Tracing Hardware
NVIDIA Developer
Ray Tracing Essentials Part 4: The Ray Tracing Pipeline
NVIDIA Developer
NsightGraphics 2020 2 Release Spotlight
NVIDIA Developer
Ray Tracing Essentials Part 5: Ray Tracing Effects
NVIDIA Developer
Ray Tracing Essentials Part 6: The Rendering Equation
NVIDIA Developer
Ray Tracing Essentials Part 7: Denoising for Ray Tracing
NVIDIA Developer
Spatiotemporal Importance Resampling for Many-Light Ray Tracing (ReSTIR)
NVIDIA Developer
Announcing Cloud-Native Support for Jetson Platform
NVIDIA Developer
JetsonTV: Build your next project with NVIDIA Jetson
NVIDIA Developer
Nsight Compute Feature Spotlight: Roofline Analysis, Asynchronous Copy, Sparse Data Compression
NVIDIA Developer
Nsight Systems Feature Spotlight: OpenMP
NVIDIA Developer
Isaac Sim 2020: Deep Dive
NVIDIA Developer
NVIDIA Jetson: Enabling AI-Powered Autonomous Machines at Scale
NVIDIA Developer
NVIDIA Tools to Train, Build, and Deploy Intelligent Vision Applications at the Edge
NVIDIA Developer
Jetson Xavier NX Developer Kit: The Next Leap in Edge Computing
NVIDIA Developer
Synthesizing High-Resolution Images with StyleGAN2
NVIDIA Developer
NVIDIA Robotics: Isaac SDK and Sim 2020.1
NVIDIA Developer
Accelerating COVID-19 Research with GPUs
NVIDIA Developer
Visualizing 150 Terabytes of Data
NVIDIA Developer
Boosting Performance and Utilization with Multi-Instance GPU
NVIDIA Developer
Running Multiple Workloads on a Single A100 GPU
NVIDIA Developer
NVIDIA Nsight Feature Spotlight: GPU Trace
NVIDIA Developer
Spark 3 Demo: Comparing Performance of GPUs vs. CPUs
NVIDIA Developer
NVIDIA Jetson Nano Wins Edge AI and Vision Alliance Award
NVIDIA Developer
NVIDIA IndeX on Google Cloud Platform Marketplace
NVIDIA Developer
DeepStream SDK: Best practices for performance optimization
NVIDIA Developer
Efficiently Deploying GPU Accelerated 5G CloudRAN for Edge AI Inferencing
NVIDIA Developer
NVIDIA PhysicsNeMo - Accelerating Scientific & Engineering Simulation Workflows with AI
NVIDIA Developer
NVIDIA Deep Learning Institute Instructor-Led Training Available Remotely
NVIDIA Developer
Advancing AR Glasses
NVIDIA Developer
Blender Cycles: RTX On
NVIDIA Developer
Real-Time GPU-Accelerated Data Analytics of 250 million Flight Data Records of 737 Max grounding
NVIDIA Developer
Assessing Property Damage with AI
NVIDIA Developer
RAPIDS: GPU-Accelerated Data Analytics & Machine Learning
NVIDIA Developer
DaVinci Resolve Turns RTX On
NVIDIA Developer
RAPIDS with Plotly Dash : GPU-Accelerated Census 2010 Visualization
NVIDIA Developer
NVIDIA IndeX for arivis5D Cloud Platform
NVIDIA Developer
NVIDIA Backchannel: Behind the Scenes of Marbles at Night RTX
NVIDIA Developer
NVIDIA Backchannel: Sneak Peek into Marbles RTX in Omniverse
NVIDIA Developer
How to Create "Paint" in Substance Painter
NVIDIA Developer
Accelerate AI development for Computer Vision on the NVIDIA Jetson with alwaysAI
NVIDIA Developer
Securing Next Generation Apps over VMware Cloud Foundation with Bluefield-2 DPU
NVIDIA Developer
Accelerated Data Centers with NVIDIA and VMware
NVIDIA Developer
GPU-Accelerated Motion Blur in Blender Cycles
NVIDIA Developer
NVIDIA Clara Guardian Virtual Patient Assistant
NVIDIA Developer
Revolutionizing Supercomputing with NVIDIA UFM Cyber-AI
NVIDIA Developer
Inventing Virtual Meetings of Tomorrow with NVIDIA AI Research
NVIDIA Developer
Learning a Contact-Adaptive Controller for Robust, Efficient Legged Locomotion
NVIDIA Developer
Getting started with Jetson Nano 2GB Developer Kit
NVIDIA Developer
NVIDIA Jetson Developer Community AI Projects
NVIDIA Developer
Open-source projects on NVIDIA Jetson Nano 2GB Developer Kit
NVIDIA Developer
Real-Time Ray Tracing with Project Lavina
NVIDIA Developer
Jetson AI Fundamentals - S1E2 - Hello Camera
NVIDIA Developer
Develop Optimized Conversational AI Models with NVIDIA NeMo on DGX A100
NVIDIA Developer
Jetson AI Fundamentals - S1E4 - Image Regression Project
NVIDIA Developer
Jetson AI Fundamentals - S2E1 - JetBot Intro and Hardware
NVIDIA Developer
Jetson AI Fundamentals - S2E2 - JetBot Software Setup
NVIDIA Developer
Jetson AI Fundamentals - S1E1 - First Time Setup with JetPack
NVIDIA Developer
Jetson AI Fundamentals - S1E3 - Image Classification Project
NVIDIA Developer
More on: ML Pipelines
View skill →Related Reads
📰
📰
📰
📰
Help Choosing Neural Network Architecture for Matrix Classification
Reddit r/deeplearning
How to Choose the Best Deep Learning Model for Medical Imaging
Medium · Deep Learning
Another Way to Read Neural Geometry
Medium · Data Science
Another Way to Read Neural Geometry
Medium · Deep Learning
🎓
Tutor Explanation
DeepCamp AI