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
da8e87e2
"...git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "a85b34e7fdc0a5fceb11aa0fa6199bd9afaca396"
Commit
da8e87e2
authored
Jul 15, 2022
by
Patrick von Platen
Browse files
use real checkpoint
parent
43bbc781
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
debug_conversion.py
debug_conversion.py
+1
-1
tests/test_modeling_utils.py
tests/test_modeling_utils.py
+0
-1
No files found.
debug_conversion.py
View file @
da8e87e2
...
@@ -45,7 +45,6 @@ def current_codebase_conversion():
...
@@ -45,7 +45,6 @@ def current_codebase_conversion():
currently_converted_checkpoint
=
current_codebase_conversion
()
currently_converted_checkpoint
=
current_codebase_conversion
()
torch
.
save
(
currently_converted_checkpoint
,
'currently_converted_checkpoint.pt'
)
def
diff_between_checkpoints
(
ch_0
,
ch_1
):
def
diff_between_checkpoints
(
ch_0
,
ch_1
):
...
@@ -84,3 +83,4 @@ def diff_between_checkpoints(ch_0, ch_1):
...
@@ -84,3 +83,4 @@ def diff_between_checkpoints(ch_0, ch_1):
diff_between_checkpoints
(
currently_converted_checkpoint
,
checkpoint
)
diff_between_checkpoints
(
currently_converted_checkpoint
,
checkpoint
)
torch
.
save
(
checkpoint
,
"/path/to/checkpoint/"
)
tests/test_modeling_utils.py
View file @
da8e87e2
...
@@ -1070,7 +1070,6 @@ class PipelineTesterMixin(unittest.TestCase):
...
@@ -1070,7 +1070,6 @@ class PipelineTesterMixin(unittest.TestCase):
@
slow
@
slow
def
test_ldm_uncond
(
self
):
def
test_ldm_uncond
(
self
):
# ldm = LatentDiffusionUncondPipeline.from_pretrained("fusing/latent-diffusion-celeba-256", ldm=True)
ldm
=
LatentDiffusionUncondPipeline
.
from_pretrained
(
"CompVis/latent-diffusion-celeba-256"
)
ldm
=
LatentDiffusionUncondPipeline
.
from_pretrained
(
"CompVis/latent-diffusion-celeba-256"
)
generator
=
torch
.
manual_seed
(
0
)
generator
=
torch
.
manual_seed
(
0
)
...
...
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