3 Generative Models Explained in Azure
Skills:
Image Generation Basics90%
Key Takeaways
Explains three generative models in Azure, including GANs, diffusion models, and autoregressive models
Full Transcript
This demonstration covers three model types. Generative adversarial networks, GANs, diffusion, and auto reggressive. You'll see how each works and what problems they solve for generating text, numbers, and images. First, we'll review generative adversarial networks, or GANs for short. Unlike the other models where we'll use pre-built versions, we'll train again from scratch using Azure machine learning. In the Azure portal, you'll see the main dashboard. Under Azure services, select create a resource. Then search for machine learning and select it from the results. From the results page, under Azure Machine Learning, select create Azure Machine Learning in the drop- down box. Under the basics tab in the Azure Machine Learning screen, fill out this form. Select your subscription and resource group. Give your workspace a unique name. We'll use GAN-ML-workspace. Select the region closest to you. Finally, select the review plus create button at the lower left of the screen. Once validation completes, select create in the lower left corner. As you can see, our deployment is now in progress. After waiting a few seconds, you'll see that your deployment is complete. Select go to resource. From the resource page, select the launch studio to open the Azure Machine Learning Studio. In the Azure Machine Learning Studio, go to the notebooks tab on the left under the authoring section. Before we write any code into a notebook, we're going to create compute. To do so, select the create compute button. Name your compute GAN-P compute. Keep virtual machine type as CPU. Select standard E4DS. Then select review and create and create. This will take several minutes to set up. As you can see by the green dot, our compute is now running. In a notebook, we can create models programmatically. We have a notebook ready to go. So, we'll paste it here and run it to train our model. If you would like to run your own version of a GAN training notebook, we will have it linked in the download section. The output is newly generated samples that resemble the training data, typically visualized as grids of images that become more realistic as training progresses. for example, sharper faces or clearer objects or as batches of synthetic data points that match the source distribution. Next, we'll review diffusion models. Back on your main Azure portal page, open an instance of Azure AI Foundry. With an Azure AI Foundry or Foundry Hub resource open, launch the AI Foundry. Select on your project, then select go to project. With the Azure AI Foundry open, select models and endpoints in the left navigation to open the model catalog. Select deploy model and then deploy base model from the drop down. To find a diffusion model, open the inference tasks dropdown and search for text to image. Diffusion models generate new outputs by gradually denoising from pure noise over many steps, usually giving higher fidelity and broader coverage, but with slower inference and less acceleration. Within the text to image filtered results, scroll down until you see stable image core. Select this radio button and select confirm. Then select continue and subscribe and deploy. You can change this deployment name to your own custom name. Once satisfied, select deploy. This and any other models you deploy are tied to your subscription, which is tied to billing. Your subscription should be in the closest region to you to reduce cost and latency. With your model now deployed, select open and playground in the top left. Select your new deployment from the drop down. Enter in the prompt. create an image of an elephant in a small pool and then select generate. As you can see, almost as if magic, we now have a new picture of an elephant standing in a small pool. Let's try one more. Add create a house that has 10,000 square ft of space as well as a twocar garage and select generate. As you can see, diffusion models are very good at following our directions and rendering new images out of noise. Now we'll review auto reggressive models for time series forecasting. Return to the model catalog by selecting models and endpoints. Under deploy model, select deploy base model again and search for timegen and select time gen 1. Select confirm then continue and then subscribe and deploy. Unlike GANs or diffusion which are designed to generate independent samples that resemble a data distribution which is great for image and synthetic data, auto reggressive forecasting predicts the next step condition on priorly observed steps. This makes it ideal for a time series where order seasonality and lag dependencies matter. We prefer auto reggressive models here because they natively handle temporal structure, yield rolling, multi-step forecast, and let you incorporate external signals while maintaining coherence over time. Once ready, select deploy. Once deployed, you'll see the target URI and key under endpoint on the right. Select the copy icon on the right. Go back to your Azure machine learning notebook tab and create a new file. We'll name ours auto reggressive. Then select create. As with our GAN, we'll use sample code to connect to our Azure timegen model that we deployed previously. If you would like to do an example of this on your own, download the auto reggressive practice folder and open the forecasting notebook within it. You'll need to create a virtual environment and copy the target URI and key into your endpoint URL and API key variables. In this case, we'll copy the endpoint URL and API keys into their appropriate places in our code. You can run this code and see what happens when you connect to an Azure timegen model. In the case of our downloadable example, you will see that it loads the air passengers data set which shows monthly international airline passengers in Australia between the years of 1949 and 1960. And time gen 1 will generate a six-month forecast for 1961. You've now successfully worked with generative adversarial networks, diffusion models, and auto reggressive models.
Original Description
Generative models power everything from realistic images to accurate time series forecasts. In this lecture, explore three foundational model types—Generative Adversarial Networks (GANs), diffusion models, and autoregressive models—and see how each solves different problems in AI.
As part of a free course preview, this demonstration walks through training a GAN in Azure Machine Learning, deploying a diffusion model for text-to-image generation, and using an autoregressive model for time series forecasting. Enrolling in the full course provides deeper guidance, hands-on practice, and structured projects to help build real-world generative AI skills.
00:00 – Introduction to Generative Model Types
00:19 – Training a GAN in Azure Machine Learning
02:43 – GAN Outputs and Synthetic Data
02:54 – Deploying Diffusion Models in Azure AI Foundry
03:28 – How Diffusion Models Generate Images
04:58 – Autoregressive Models for Time Series Forecasting
06:05 – Connecting to TimeGen in a Notebook
07:03 – Forecasting Example and Key Takeaways
Explore the full *Microsoft Generative AI Engineering Professional Certificate* and continue building your generative AI expertise: https://bit.ly/3ZP9R02
#GenerativeAI #MachineLearning #AzureML #DiffusionModels #GANs #TimeSeriesForecasting #AIEngineering #DataScience #AzureAI
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Coursera · Coursera · 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
Principles of Obesity Economics with Professor Kevin Frick
Coursera
Introduction to the U.S. Food System: Perspectives from Public Health by John Hopkins University
Coursera
E-learning and Digital Cultures
Coursera
Equine Nutrition with Jo-Anne Murray
Coursera
Coursera Meetup BBQ
Coursera
Contraception: Choices, Culture and Consequences with Jerusalem Makonnen
Coursera
Nutrition for Health Promotion and Disease Prevention with Katie Clark
Coursera
Information Security and Risk Management in Context with Dr. Barbara Endicott-Popovsky
Coursera
Contraception: Choices, Culture and Consequences with Jerusalem Makonnen
Coursera
Writing in the Sciences with Kristin Sainani
Coursera
Economic Issues, Food, and You with Jennifer Clark
Coursera
Leading Strategic Innovation and Creativity in Organizations with David A. Owens, PhD
Coursera
Useful Genetics with Professor Rosie Redfield
Coursera
A History of the World since 1300!!!! with Jeremy Adelman
Coursera
Microeconomics with Richard McKenzie
Coursera
Discrete Optimization with Professor Pascal Van Hentenryck
Coursera
Leading Strategic Innovation and Creativity in Organizations with David A. Owens, PhD
Coursera
Science from Superheroes to Global Warming with Michael Dennin
Coursera
Introduction to Digital Sound Design with Steve Everett by Emory University
Coursera
Women and the Civil Rights Movement with Dr. Elsa Barkley Brown
Coursera
Galaxies and Cosmology with S. George Djorgovski
Coursera
Science, Technology, and Society in China I, II, and III: Basic Concepts with Naubahar Sharif
Coursera
Introduction to Pharmacy with Kenneth M. Hale, R.Ph., Ph.D.
Coursera
AIDS with Kimberley Sessions Hagen, EdD
Coursera
Health Informatics in the Cloud with Mark Braunstein
Coursera
Songwriting with Pat Pattison by Berklee College of Music
Coursera
Software Defined Networking with Dr. Nick Feamster
Coursera
Epigenetic Control of Gene Expression with Dr Marnie Blewitt
Coursera
Guitar for Beginners - Introduction to Guitar with Thaddeus Hogarth by Berklee College of Music
Coursera
Organizational Analysis with Daniel McFarland
Coursera
Scientific Computing with J. Nathan Kutz
Coursera
Jazz Improvisation - Introduction to Improvisation with Gary Burton by Berklee College of Music
Coursera
Principles of Economics for Scientists with Antonio Rangel
Coursera
Introduction to Music Production with Loudon Stearns by Berklee College of Music
Coursera
Principles of Public Health with Zuzana Bic
Coursera
The Science of Gastronomy with King Chow, Lam Lung Yeung by HKUST
Coursera
The Language of Hollywood: Storytelling, Sound, and Color with Scott Higgins by Wesleyan University
Coursera
Nutrition and Physical Activity for Health with John M. Jakicic, Ph.D., and Amy D. Rickman,...
Coursera
Nutrition, Health, and Lifestyle: Issues and Insights with Jamie Pope, MS, RD, L
Coursera
Survey of Music Technology with Jason Freeman by Georgia Institute of Technology
Coursera
Exercise Physiology: Understanding the Athlete Within with Mark Hargreaves
Coursera
Canine Theriogenology for Dog Enthusiasts with Margaret V. Root
Coursera
Web Intelligence and Big Data with Gautam Shroff
Coursera
Critical Perspectives on Management with Rolf Strom-Olsen
Coursera
El ABC del emprendimiento esbelto with Sergio Ortiz Valdes
Coursera
Interprofessional Healthcare Informatics with Karen Monsen
Coursera
Creativity, Innovation, and Change with Jack V. Matson, Darrell Velegol and Kath
Coursera
Innovacion educativa con recursos abiertos with Maria Soledad Ramirez Montoya an
Coursera
Inspiring Leadership through Emotional Intelligence with Richard Boyatzis
Coursera
Matematicas y movimiento with
Coursera
Sustainability of Food Systems: A Global Life Cycle Perspective with Jason Hill
Coursera
Latin American Culture with Enrique Tames
Coursera
Latin American Culture' with undefined
Coursera
Computer Security with Dan Boneh
Coursera
Introduction to Art: Concepts & Techniques
Coursera
Programmed cell death
Coursera
El ABC del emprendimiento esbelto
Coursera
Understanding economic policymaking
Coursera
History of Rock, Part 1 by University of Rochester
Coursera
Pensamiento Cientifico
Coursera
More on: Image Generation Basics
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
Chapters (8)
Introduction to Generative Model Types
0:19
Training a GAN in Azure Machine Learning
2:43
GAN Outputs and Synthetic Data
2:54
Deploying Diffusion Models in Azure AI Foundry
3:28
How Diffusion Models Generate Images
4:58
Autoregressive Models for Time Series Forecasting
6:05
Connecting to TimeGen in a Notebook
7:03
Forecasting Example and Key Takeaways
🎓
Tutor Explanation
DeepCamp AI