mirror of
https://github.com/huggingface/diffusers.git
synced 2026-10-24 20:59:27 +03:00
additional args
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user