Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
0f8547c2
Unverified
Commit
0f8547c2
authored
Jul 24, 2022
by
Mario Šaško
Committed by
GitHub
Jul 24, 2022
Browse files
Add syntax highlighting to code blocks in README (#131)
parent
343180c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
README.md
README.md
+3
-3
No files found.
README.md
View file @
0f8547c2
...
@@ -38,7 +38,7 @@ In order to get started, we recommend taking a look at two notebooks:
...
@@ -38,7 +38,7 @@ In order to get started, we recommend taking a look at two notebooks:
If you want to run the code yourself 💻, you can try out:
If you want to run the code yourself 💻, you can try out:
-
[
Text-to-Image Latent Diffusion
](
https://huggingface.co/CompVis/ldm-text2im-large-256
)
-
[
Text-to-Image Latent Diffusion
](
https://huggingface.co/CompVis/ldm-text2im-large-256
)
```
```
python
# !pip install diffusers transformers
# !pip install diffusers transformers
from
diffusers
import
DiffusionPipeline
from
diffusers
import
DiffusionPipeline
...
@@ -56,7 +56,7 @@ for idx, image in enumerate(images):
...
@@ -56,7 +56,7 @@ for idx, image in enumerate(images):
image
.
save
(
f
"squirrel-
{
idx
}
.png"
)
image
.
save
(
f
"squirrel-
{
idx
}
.png"
)
```
```
-
[
Unconditional Diffusion with discrete scheduler
](
https://huggingface.co/google/ddpm-celebahq-256
)
-
[
Unconditional Diffusion with discrete scheduler
](
https://huggingface.co/google/ddpm-celebahq-256
)
```
```
python
# !pip install diffusers
# !pip install diffusers
from
diffusers
import
DDPMPipeline
,
DDIMPipeline
,
PNDMPipeline
from
diffusers
import
DDPMPipeline
,
DDIMPipeline
,
PNDMPipeline
...
@@ -120,7 +120,7 @@ The class provides functionality to compute previous image according to alpha, b
...
@@ -120,7 +120,7 @@ The class provides functionality to compute previous image according to alpha, b
## Installation
## Installation
```
```
bash
pip
install
diffusers
# should install diffusers 0.1.2
pip
install
diffusers
# should install diffusers 0.1.2
```
```
...
...
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