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
OpenDAS
diffusers
Commits
b8f089c5
Unverified
Commit
b8f089c5
authored
Jul 07, 2023
by
Aisuko
Committed by
GitHub
Jul 06, 2023
Browse files
fix/doc-code: import torch and fix the broken document address (#3941)
Signed-off-by:
GitHub
<
noreply@github.com
>
parent
187ea539
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
docs/source/en/using-diffusers/loading.mdx
docs/source/en/using-diffusers/loading.mdx
+2
-1
No files found.
docs/source/en/using-diffusers/loading.mdx
View file @
b8f089c5
...
@@ -174,7 +174,7 @@ A checkpoint variant is usually a checkpoint where it's weights are:
...
@@ -174,7 +174,7 @@ A checkpoint variant is usually a checkpoint where it's weights are:
</
Tip
>
</
Tip
>
Otherwise
,
a
variant
is
**
identical
**
to
the
original
checkpoint
.
They
have
exactly
the
same
serialization
format
(
like
[
Safetensors
](./
using
-
diffusers
/
using
_safetensors
)),
model
structure
,
and
weights
have
identical
tensor
shapes
.
Otherwise
,
a
variant
is
**
identical
**
to
the
original
checkpoint
.
They
have
exactly
the
same
serialization
format
(
like
[
Safetensors
](./
using_safetensors
)),
model
structure
,
and
weights
have
identical
tensor
shapes
.
|
**
checkpoint
type
**
|
**
weight
name
**
|
**
argument
for
loading
weights
**
|
|
**
checkpoint
type
**
|
**
weight
name
**
|
**
argument
for
loading
weights
**
|
|---------------------|-------------------------------------|----------------------------------|
|---------------------|-------------------------------------|----------------------------------|
...
@@ -190,6 +190,7 @@ There are two important arguments to know for loading variants:
...
@@ -190,6 +190,7 @@ There are two important arguments to know for loading variants:
```python
```python
from diffusers import DiffusionPipeline
from diffusers import DiffusionPipeline
import torch
# load fp16 variant
# load fp16 variant
stable_diffusion = DiffusionPipeline.from_pretrained(
stable_diffusion = DiffusionPipeline.from_pretrained(
...
...
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