Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
diffusers
Commits
69412d0a
Unverified
Commit
69412d0a
authored
Nov 17, 2023
by
Sayak Paul
Committed by
GitHub
Nov 17, 2023
Browse files
[Docs] add: japanese sdxl as a reference (#5844)
add: japanese sdxl as a reference
parent
913986af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
docs/source/en/using-diffusers/custom_pipeline_overview.md
docs/source/en/using-diffusers/custom_pipeline_overview.md
+21
-0
No files found.
docs/source/en/using-diffusers/custom_pipeline_overview.md
View file @
69412d0a
...
@@ -165,4 +165,25 @@ video_frames = pipeline(
...
@@ -165,4 +165,25 @@ video_frames = pipeline(
guidance_scale
=
9.0
,
guidance_scale
=
9.0
,
output_type
=
"pt"
output_type
=
"pt"
).
frames
).
frames
```
As an additional reference example, you can refer to the repository structure of
[
stabilityai/japanese-stable-diffusion-xl
](
https://huggingface.co/stabilityai/japanese-stable-diffusion-xl/
)
, that makes use of the
`trust_remote_code`
feature:
```
python
from
diffusers
import
DiffusionPipeline
import
torch
pipeline
=
DiffusionPipeline
.
from_pretrained
(
"stabilityai/japanese-stable-diffusion-xl"
,
trust_remote_code
=
True
)
pipeline
.
to
(
"cuda"
)
# if using torch < 2.0
# pipeline.enable_xformers_memory_efficient_attention()
prompt
=
"柴犬、カラフルアート"
image
=
pipeline
(
prompt
=
prompt
).
images
[
0
]
```
```
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment