Spooky Sale: 10% off Premium yearly · $118.80 for the first year · until Nov 6Get it

Deep-ML
Learn
Problems1,200+ hands-on ML problemsLearning PathA guided route through the fundamentalsLabsInteractive labs on real techniquesProjectsBuild a GPT, an RL agent, CUDA kernelsCollectionsCurated problem sets and videosMathPen-and-paper math for MLIntuitionInvent the idea behind the formula yourselfPlaylistsYour own problem lists, shareableStudy AssistantAn AI teacher that knows your progress
Interview Prep
Compete
ContestsFresh problem sets, ranked liveLeaderboardWhere you stand, globallyBuddiesSolve with a friend: streaks, a weekly board, chat
Discuss
Deep-Path
Premium
      Intuition
      85 of 88

      Fade to static

      A diffusion model learns to clean up pictures by seeing them buried in noise, at every level from none to all. Write blend(picture, noise, noise_weight): mix a 16-pixel picture with noise, putting the noise in at exactly noise_weight (from 0 to 1). How much of the picture to keep is up to you. The picture and the noise each have a spread of 1 (“How spread out?”) and have nothing to do with each other; the blend must keep a spread of 1 at every step, so the model always sees inputs of the same size.

      picture: an Xnoise: static
      solution.pyLoading Python
      ← Listen to your friendsIs it the math or the memory? →