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
b2ea8a84
Unverified
Commit
b2ea8a84
authored
Jan 16, 2023
by
William Dalheim
Committed by
GitHub
Jan 16, 2023
Browse files
Change PNDMPipeline to use PNDMScheduler (#2003)
* pndmpipeline uses pndmscheduler * formatted pipeline_pndm
parent
07c0fe4b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/diffusers/pipelines/pndm/pipeline_pndm.py
src/diffusers/pipelines/pndm/pipeline_pndm.py
+3
-0
No files found.
src/diffusers/pipelines/pndm/pipeline_pndm.py
View file @
b2ea8a84
...
@@ -39,6 +39,9 @@ class PNDMPipeline(DiffusionPipeline):
...
@@ -39,6 +39,9 @@ class PNDMPipeline(DiffusionPipeline):
def
__init__
(
self
,
unet
:
UNet2DModel
,
scheduler
:
PNDMScheduler
):
def
__init__
(
self
,
unet
:
UNet2DModel
,
scheduler
:
PNDMScheduler
):
super
().
__init__
()
super
().
__init__
()
scheduler
=
PNDMScheduler
.
from_config
(
scheduler
.
config
)
self
.
register_modules
(
unet
=
unet
,
scheduler
=
scheduler
)
self
.
register_modules
(
unet
=
unet
,
scheduler
=
scheduler
)
@
torch
.
no_grad
()
@
torch
.
no_grad
()
...
...
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