"git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "54f186bba0bd3ec6bce588e5844e130119398e1c"
Unverified Commit f1ab955f authored by M. Tolga Cangöz's avatar M. Tolga Cangöz Committed by GitHub
Browse files

Update basic_training.mdx (#2639)

Add 'import os'
parent 9360bb94
...@@ -252,6 +252,7 @@ Then, you'll need a way to evaluate the model. For evaluation, you can use the [ ...@@ -252,6 +252,7 @@ Then, you'll need a way to evaluate the model. For evaluation, you can use the [
```py ```py
>>> from diffusers import DDPMPipeline >>> from diffusers import DDPMPipeline
>>> import math >>> import math
>>> import os
>>> def make_grid(images, rows, cols): >>> def make_grid(images, rows, cols):
...@@ -411,4 +412,4 @@ Unconditional image generation is one example of a task that can be trained. You ...@@ -411,4 +412,4 @@ Unconditional image generation is one example of a task that can be trained. You
* [Textual Inversion](./training/text_inversion), an algorithm that teaches a model a specific visual concept and integrates it into the generated image. * [Textual Inversion](./training/text_inversion), an algorithm that teaches a model a specific visual concept and integrates it into the generated image.
* [DreamBooth](./training/dreambooth), a technique for generating personalized images of a subject given several input images of the subject. * [DreamBooth](./training/dreambooth), a technique for generating personalized images of a subject given several input images of the subject.
* [Guide](./training/text2image) to finetuning a Stable Diffusion model on your own dataset. * [Guide](./training/text2image) to finetuning a Stable Diffusion model on your own dataset.
* [Guide](./training/lora) to using LoRA, a memory-efficient technique for finetuning really large models faster. * [Guide](./training/lora) to using LoRA, a memory-efficient technique for finetuning really large models faster.
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment