Skip to content

Commit dfebda2

Browse files
lawrence-cjdanhipke
authored andcommitted
[Sana]add 2K related model for Sana (#10322)
add 2K related model for Sana
1 parent dbbcd0f commit dfebda2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/convert_sana_to_diffusers.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
CTX = init_empty_weights if is_accelerate_available else nullcontext
2626

2727
ckpt_ids = [
28+
"Efficient-Large-Model/Sana_1600M_2Kpx_BF16/checkpoints/Sana_1600M_2Kpx_BF16.pth",
2829
"Efficient-Large-Model/Sana_1600M_1024px_MultiLing/checkpoints/Sana_1600M_1024px_MultiLing.pth",
2930
"Efficient-Large-Model/Sana_1600M_1024px_BF16/checkpoints/Sana_1600M_1024px_BF16.pth",
3031
"Efficient-Large-Model/Sana_1600M_512px_MultiLing/checkpoints/Sana_1600M_512px_MultiLing.pth",
@@ -265,9 +266,9 @@ def main(args):
265266
"--image_size",
266267
default=1024,
267268
type=int,
268-
choices=[512, 1024],
269+
choices=[512, 1024, 2048],
269270
required=False,
270-
help="Image size of pretrained model, 512 or 1024.",
271+
help="Image size of pretrained model, 512, 1024 or 2048.",
271272
)
272273
parser.add_argument(
273274
"--model_type", default="SanaMS_1600M_P1_D20", type=str, choices=["SanaMS_1600M_P1_D20", "SanaMS_600M_P1_D28"]

0 commit comments

Comments
 (0)