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
a6288a55
Unverified
Commit
a6288a55
authored
Dec 21, 2024
by
Junsong Chen
Committed by
GitHub
Dec 20, 2024
Browse files
[Sana]add 2K related model for Sana (#10322)
add 2K related model for Sana
parent
7d4db570
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
scripts/convert_sana_to_diffusers.py
scripts/convert_sana_to_diffusers.py
+3
-2
No files found.
scripts/convert_sana_to_diffusers.py
View file @
a6288a55
...
@@ -25,6 +25,7 @@ from diffusers.utils.import_utils import is_accelerate_available
...
@@ -25,6 +25,7 @@ from diffusers.utils.import_utils import is_accelerate_available
CTX
=
init_empty_weights
if
is_accelerate_available
else
nullcontext
CTX
=
init_empty_weights
if
is_accelerate_available
else
nullcontext
ckpt_ids
=
[
ckpt_ids
=
[
"Efficient-Large-Model/Sana_1600M_2Kpx_BF16/checkpoints/Sana_1600M_2Kpx_BF16.pth"
,
"Efficient-Large-Model/Sana_1600M_1024px_MultiLing/checkpoints/Sana_1600M_1024px_MultiLing.pth"
,
"Efficient-Large-Model/Sana_1600M_1024px_MultiLing/checkpoints/Sana_1600M_1024px_MultiLing.pth"
,
"Efficient-Large-Model/Sana_1600M_1024px_BF16/checkpoints/Sana_1600M_1024px_BF16.pth"
,
"Efficient-Large-Model/Sana_1600M_1024px_BF16/checkpoints/Sana_1600M_1024px_BF16.pth"
,
"Efficient-Large-Model/Sana_1600M_512px_MultiLing/checkpoints/Sana_1600M_512px_MultiLing.pth"
,
"Efficient-Large-Model/Sana_1600M_512px_MultiLing/checkpoints/Sana_1600M_512px_MultiLing.pth"
,
...
@@ -265,9 +266,9 @@ if __name__ == "__main__":
...
@@ -265,9 +266,9 @@ if __name__ == "__main__":
"--image_size"
,
"--image_size"
,
default
=
1024
,
default
=
1024
,
type
=
int
,
type
=
int
,
choices
=
[
512
,
1024
],
choices
=
[
512
,
1024
,
2048
],
required
=
False
,
required
=
False
,
help
=
"Image size of pretrained model, 512
or 1024
."
,
help
=
"Image size of pretrained model, 512
, 1024 or 2048
."
,
)
)
parser
.
add_argument
(
parser
.
add_argument
(
"--model_type"
,
default
=
"SanaMS_1600M_P1_D20"
,
type
=
str
,
choices
=
[
"SanaMS_1600M_P1_D20"
,
"SanaMS_600M_P1_D28"
]
"--model_type"
,
default
=
"SanaMS_1600M_P1_D20"
,
type
=
str
,
choices
=
[
"SanaMS_1600M_P1_D20"
,
"SanaMS_600M_P1_D28"
]
...
...
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