1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-10-24 20:59:27 +03:00

additional args

This commit is contained in:
sayakpaul
2023-10-27 16:33:13 +05:30
parent 0ccc58a88d
commit e152eccdb0

View File

@@ -108,7 +108,11 @@ You can load this pipeline from the Hub by specifying `trust_remote_code=True`:
```python
from diffusers import DiffusionPipeline
reloaded_pipeline = DiffusionPipeline.from_pretrained("sayakpaul/custom_pipeline_remote_code", trust_remote_code=True)
reloaded_pipeline = DiffusionPipeline.from_pretrained(
"sayakpaul/custom_pipeline_remote_code",
torch_dtype=torch.float16,
trust_remote_code=True,
).to("cuda")
```
And then perform inference: