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
3cd20d59
Unverified
Commit
3cd20d59
authored
Aug 17, 2022
by
Suraj Patil
Committed by
GitHub
Aug 17, 2022
Browse files
fix test_from_pretrained_hub_pass_model (#194)
init pipeline once
parent
e36a3678
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
tests/test_modeling_utils.py
tests/test_modeling_utils.py
+0
-1
No files found.
tests/test_modeling_utils.py
View file @
3cd20d59
...
@@ -724,7 +724,6 @@ class PipelineTesterMixin(unittest.TestCase):
...
@@ -724,7 +724,6 @@ class PipelineTesterMixin(unittest.TestCase):
# pass unet into DiffusionPipeline
# pass unet into DiffusionPipeline
unet
=
UNet2DModel
.
from_pretrained
(
model_path
)
unet
=
UNet2DModel
.
from_pretrained
(
model_path
)
ddpm_from_hub_custom_model
=
DDPMPipeline
.
from_pretrained
(
model_path
,
unet
=
unet
)
ddpm_from_hub_custom_model
=
DiffusionPipeline
.
from_pretrained
(
model_path
,
unet
=
unet
)
ddpm_from_hub_custom_model
=
DiffusionPipeline
.
from_pretrained
(
model_path
,
unet
=
unet
)
ddpm_from_hub
=
DiffusionPipeline
.
from_pretrained
(
model_path
)
ddpm_from_hub
=
DiffusionPipeline
.
from_pretrained
(
model_path
)
...
...
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