10、深入挖掘(Diving Deeper)

This lesson creates a complete Diffusers pipeline from the underlying components: the VAE, unet, scheduler, and tokeniser. By putting them together manually, this gives you the flexibility to fully customise every aspect of the inference process.

We also discuss three important new papers that have been released in the last week, which improve inference performance by over 10x, and allow any photo to be “edited” by just describing what the new picture should show.

In the second half of the lesson Jeremy begins the “from scratch” implementation of Stable Diffusion. He introduces the “miniai” library which will be created by students during the course, and discusses organising and simplifying code. The lesson discusses the Python data model, tensors, and random number generation. Jeremy introduces the Wickman-Hill random number generation algorithm and compares the performance of custom and Pytorch’s built-in random number generators. The lesson concludes with creating a linear classifier using a tensor.

Concepts discussed

  • Papers:
    • Progressive Distillation for Fast Sampling of Diffusion Models
    • On Distillation of Guided Diffusion Models
    • Imagic
  • Tokenizing input text
  • CLIP encoder for embeddings
  • Scheduler for noise determination
  • Organizing and simplifying code
  • Negative prompts and callbacks
  • Iterators and generators in Python
  • Custom class for matrices
  • Dunder methods
  • Python data model
  • Tensors
  • Pseudo-random number generation
    • Wickman-Hill algorithm
    • Random state in deep learning
  • Linear classifier using a tensor

Video

Lesson resources

Links from the lesson

  • 5
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值