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
32b93da8
Commit
32b93da8
authored
Jun 29, 2022
by
patil-suraj
Browse files
begin conversion script
parent
597b7ae2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
src/diffusers/pipelines/latent_diffusion_uncond/convert_ldm_to_diffusers.py
...lines/latent_diffusion_uncond/convert_ldm_to_diffusers.py
+13
-0
No files found.
src/diffusers/pipelines/latent_diffusion_uncond/convert_ldm_to_diffusers.py
0 → 100644
View file @
32b93da8
import
argparse
import
torch
from
diffusers
import
UNetLDMModel
,
VQModel
if
__name__
==
"__main__"
:
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
"--checkpoint_path"
,
type
=
str
,
required
=
True
)
parser
.
add_argument
(
"--config_path"
,
type
=
str
,
required
=
True
)
parser
.
add_argument
(
"--output_path"
,
type
=
str
,
required
=
True
)
args
=
parser
.
parse_args
()
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