3 Generative Models Explained in Azure

Coursera · Beginner ·🧬 Deep Learning ·4mo ago

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 Principles of Obesity Economics with Professor Kevin Frick
Principles of Obesity Economics with Professor Kevin Frick
Coursera
2 Introduction to the U.S. Food System: Perspectives from Public Health by John Hopkins University
Introduction to the U.S. Food System: Perspectives from Public Health by John Hopkins University
Coursera
3 E-learning and Digital Cultures
E-learning and Digital Cultures
Coursera
4 Equine Nutrition with Jo-Anne Murray
Equine Nutrition with Jo-Anne Murray
Coursera
5 Coursera Meetup BBQ
Coursera Meetup BBQ
Coursera
6 Contraception: Choices, Culture and Consequences with Jerusalem Makonnen
Contraception: Choices, Culture and Consequences with Jerusalem Makonnen
Coursera
7 Nutrition for Health Promotion and Disease Prevention with Katie Clark
Nutrition for Health Promotion and Disease Prevention with Katie Clark
Coursera
8 Information Security and Risk Management in Context with Dr. Barbara Endicott-Popovsky
Information Security and Risk Management in Context with Dr. Barbara Endicott-Popovsky
Coursera
9 Contraception: Choices, Culture and Consequences with Jerusalem Makonnen
Contraception: Choices, Culture and Consequences with Jerusalem Makonnen
Coursera
10 Writing in the Sciences with Kristin Sainani
Writing in the Sciences with Kristin Sainani
Coursera
11 Economic Issues, Food, and You with Jennifer Clark
Economic Issues, Food, and You with Jennifer Clark
Coursera
12 Leading Strategic Innovation and Creativity in Organizations with David A. Owens, PhD
Leading Strategic Innovation and Creativity in Organizations with David A. Owens, PhD
Coursera
13 Useful Genetics with Professor Rosie Redfield
Useful Genetics with Professor Rosie Redfield
Coursera
14 A History of the World since 1300!!!! with Jeremy Adelman
A History of the World since 1300!!!! with Jeremy Adelman
Coursera
15 Microeconomics  with Richard McKenzie
Microeconomics with Richard McKenzie
Coursera
16 Discrete Optimization with Professor Pascal Van Hentenryck
Discrete Optimization with Professor Pascal Van Hentenryck
Coursera
17 Leading Strategic Innovation and Creativity in Organizations with David A. Owens, PhD
Leading Strategic Innovation and Creativity in Organizations with David A. Owens, PhD
Coursera
18 Science from Superheroes to Global Warming with Michael Dennin
Science from Superheroes to Global Warming with Michael Dennin
Coursera
19 Introduction to Digital Sound Design with Steve Everett by Emory University
Introduction to Digital Sound Design with Steve Everett by Emory University
Coursera
20 Women and the Civil Rights Movement with Dr. Elsa Barkley Brown
Women and the Civil Rights Movement with Dr. Elsa Barkley Brown
Coursera
21 Galaxies and Cosmology with S. George Djorgovski
Galaxies and Cosmology with S. George Djorgovski
Coursera
22 Science, Technology, and Society in China I, II, and III: Basic Concepts with Naubahar Sharif
Science, Technology, and Society in China I, II, and III: Basic Concepts with Naubahar Sharif
Coursera
23 Introduction to Pharmacy with Kenneth M. Hale, R.Ph., Ph.D.
Introduction to Pharmacy with Kenneth M. Hale, R.Ph., Ph.D.
Coursera
24 AIDS with Kimberley Sessions Hagen, EdD
AIDS with Kimberley Sessions Hagen, EdD
Coursera
25 Health Informatics in the Cloud with Mark Braunstein
Health Informatics in the Cloud with Mark Braunstein
Coursera
26 Songwriting with Pat Pattison by Berklee College of Music
Songwriting with Pat Pattison by Berklee College of Music
Coursera
27 Software Defined Networking with Dr. Nick Feamster
Software Defined Networking with Dr. Nick Feamster
Coursera
28 Epigenetic Control of Gene Expression with Dr Marnie Blewitt
Epigenetic Control of Gene Expression with Dr Marnie Blewitt
Coursera
29 Guitar for Beginners - Introduction to Guitar with Thaddeus Hogarth by Berklee College of Music
Guitar for Beginners - Introduction to Guitar with Thaddeus Hogarth by Berklee College of Music
Coursera
30 Organizational Analysis with Daniel McFarland
Organizational Analysis with Daniel McFarland
Coursera
31 Scientific Computing with J. Nathan Kutz
Scientific Computing with J. Nathan Kutz
Coursera
32 Jazz Improvisation - Introduction to Improvisation with Gary Burton by Berklee College of Music
Jazz Improvisation - Introduction to Improvisation with Gary Burton by Berklee College of Music
Coursera
33 Principles of Economics for Scientists with Antonio Rangel
Principles of Economics for Scientists with Antonio Rangel
Coursera
34 Introduction to Music Production with Loudon Stearns by Berklee College of Music
Introduction to Music Production with Loudon Stearns by Berklee College of Music
Coursera
35 Principles of Public Health with Zuzana Bic
Principles of Public Health with Zuzana Bic
Coursera
36 The Science of Gastronomy with King Chow, Lam Lung Yeung by HKUST
The Science of Gastronomy with King Chow, Lam Lung Yeung by HKUST
Coursera
37 The Language of Hollywood: Storytelling, Sound, and Color with Scott Higgins by Wesleyan University
The Language of Hollywood: Storytelling, Sound, and Color with Scott Higgins by Wesleyan University
Coursera
38 Nutrition and Physical Activity for Health with John M. Jakicic, Ph.D., and Amy D. Rickman,...
Nutrition and Physical Activity for Health with John M. Jakicic, Ph.D., and Amy D. Rickman,...
Coursera
39 Nutrition, Health, and Lifestyle: Issues and Insights with Jamie Pope, MS, RD, L
Nutrition, Health, and Lifestyle: Issues and Insights with Jamie Pope, MS, RD, L
Coursera
40 Survey of Music Technology with Jason Freeman by Georgia Institute of Technology
Survey of Music Technology with Jason Freeman by Georgia Institute of Technology
Coursera
41 Exercise Physiology: Understanding the Athlete Within with Mark Hargreaves
Exercise Physiology: Understanding the Athlete Within with Mark Hargreaves
Coursera
42 Canine Theriogenology for Dog Enthusiasts with Margaret V. Root
Canine Theriogenology for Dog Enthusiasts with Margaret V. Root
Coursera
43 Web Intelligence and Big Data with Gautam Shroff
Web Intelligence and Big Data with Gautam Shroff
Coursera
44 Critical Perspectives on Management with  Rolf  Strom-Olsen
Critical Perspectives on Management with Rolf Strom-Olsen
Coursera
45 El ABC  del emprendimiento esbelto  with Sergio  Ortiz Valdes
El ABC del emprendimiento esbelto with Sergio Ortiz Valdes
Coursera
46 Interprofessional Healthcare Informatics with Karen  Monsen
Interprofessional Healthcare Informatics with Karen Monsen
Coursera
47 Creativity, Innovation, and Change with Jack V. Matson, Darrell Velegol and Kath
Creativity, Innovation, and Change with Jack V. Matson, Darrell Velegol and Kath
Coursera
48 Innovacion educativa con recursos abiertos with Maria Soledad Ramirez Montoya an
Innovacion educativa con recursos abiertos with Maria Soledad Ramirez Montoya an
Coursera
49 Inspiring Leadership through Emotional Intelligence with Richard Boyatzis
Inspiring Leadership through Emotional Intelligence with Richard Boyatzis
Coursera
50 Matematicas y movimiento with
Matematicas y movimiento with
Coursera
51 Sustainability of Food Systems: A Global Life Cycle Perspective with Jason Hill
Sustainability of Food Systems: A Global Life Cycle Perspective with Jason Hill
Coursera
52 Latin American Culture with Enrique Tames
Latin American Culture with Enrique Tames
Coursera
53 Latin American Culture' with undefined
Latin American Culture' with undefined
Coursera
54 Computer Security with Dan Boneh
Computer Security with Dan Boneh
Coursera
55 Introduction to Art: Concepts & Techniques
Introduction to Art: Concepts & Techniques
Coursera
56 Programmed cell death
Programmed cell death
Coursera
57 El ABC  del emprendimiento esbelto
El ABC del emprendimiento esbelto
Coursera
58 Understanding economic policymaking
Understanding economic policymaking
Coursera
59 History of Rock, Part 1 by University of Rochester
History of Rock, Part 1 by University of Rochester
Coursera
60 Pensamiento Cientifico
Pensamiento Cientifico
Coursera

Related Reads

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
Up next
RNNs Explained in 60 Seconds #ai #coding #machinelearning
Ascent
Watch →