1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

docs: Add missing import statement in textual_inversion inference example (#4227)

docs: Add missing import statement in textual_inversion inference instructions
This commit is contained in:
Apoorva Kulkarni
2023-07-24 11:07:53 -07:00
committed by GitHub
parent 5470a4fce3
commit cbb1ead60b

View File

@@ -100,6 +100,7 @@ Once you have trained a model using above command, the inference can be done sim
```python
from diffusers import StableDiffusionPipeline
import torch
model_id = "path-to-your-trained-model"
pipe = StableDiffusionPipeline.from_pretrained(model_id,torch_dtype=torch.float16).to("cuda")