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
ab00f5d3
Commit
ab00f5d3
authored
Jul 19, 2022
by
anton-l
Browse files
Update model names for CompVis and google
parent
3f0b44b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tests/test_modeling_utils.py
tests/test_modeling_utils.py
+4
-4
No files found.
tests/test_modeling_utils.py
View file @
ab00f5d3
...
...
@@ -969,7 +969,7 @@ class PipelineTesterMixin(unittest.TestCase):
@
slow
def
test_ddim_lsun
(
self
):
model_id
=
"google/ddpm-
lsun
-bedroom-
ema
"
model_id
=
"google/ddpm-
ema
-bedroom-
256
"
unet
=
UNetUnconditionalModel
.
from_pretrained
(
model_id
)
scheduler
=
DDIMScheduler
.
from_config
(
model_id
)
...
...
@@ -1028,7 +1028,7 @@ class PipelineTesterMixin(unittest.TestCase):
@
slow
def
test_ldm_text2img
(
self
):
ldm
=
LatentDiffusionPipeline
.
from_pretrained
(
"CompVis/l
atent-diffusion
-text2im-large"
)
ldm
=
LatentDiffusionPipeline
.
from_pretrained
(
"CompVis/l
dm
-text2im-large"
)
prompt
=
"A painting of a squirrel eating a burger"
generator
=
torch
.
manual_seed
(
0
)
...
...
@@ -1042,7 +1042,7 @@ class PipelineTesterMixin(unittest.TestCase):
@
slow
def
test_ldm_text2img_fast
(
self
):
ldm
=
LatentDiffusionPipeline
.
from_pretrained
(
"CompVis/l
atent-diffusion
-text2im-large"
)
ldm
=
LatentDiffusionPipeline
.
from_pretrained
(
"CompVis/l
dm
-text2im-large"
)
prompt
=
"A painting of a squirrel eating a burger"
generator
=
torch
.
manual_seed
(
0
)
...
...
@@ -1121,7 +1121,7 @@ class PipelineTesterMixin(unittest.TestCase):
@
slow
def
test_ldm_uncond
(
self
):
ldm
=
LatentDiffusionUncondPipeline
.
from_pretrained
(
"CompVis/l
atent-diffusion
-celeba-256"
)
ldm
=
LatentDiffusionUncondPipeline
.
from_pretrained
(
"CompVis/l
dm
-celeba
hq
-256"
)
generator
=
torch
.
manual_seed
(
0
)
image
=
ldm
(
generator
=
generator
,
num_inference_steps
=
5
)[
"sample"
]
...
...
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