Skip to content

Commit 9df6da1

Browse files
marawan206claude
andcommitted
feat(api-nodes): make Astra 2 the default Topaz upscaler model
Reorder UPSCALER_MODELS_MAP and the upscaler_model dynamic combo so "Astra 2" appears first, surfacing it as the default selection. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent aac9dd5 commit 9df6da1

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

comfy_api_nodes/nodes_topaz.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
)
3737

3838
UPSCALER_MODELS_MAP = {
39+
"Astra 2": "ast-2",
3940
"Starlight (Astra) Fast": "slf-1",
4041
"Starlight (Astra) Creative": "slc-1",
41-
"Astra 2": "ast-2",
4242
"Starlight Precise 2.5": "slp-2.5",
4343
}
4444

@@ -482,22 +482,6 @@ def define_schema(cls):
482482
IO.DynamicCombo.Input(
483483
"upscaler_model",
484484
options=[
485-
IO.DynamicCombo.Option(
486-
"Starlight (Astra) Fast",
487-
[IO.Combo.Input("upscaler_resolution", options=["FullHD (1080p)", "4K (2160p)"]),],
488-
),
489-
IO.DynamicCombo.Option(
490-
"Starlight (Astra) Creative",
491-
[
492-
IO.Combo.Input("upscaler_resolution", options=["FullHD (1080p)", "4K (2160p)"]),
493-
IO.Combo.Input(
494-
"creativity",
495-
options=["low", "middle", "high"],
496-
default="low",
497-
tooltip="Creative strength of the upscale.",
498-
),
499-
],
500-
),
501485
IO.DynamicCombo.Option(
502486
"Astra 2",
503487
[
@@ -542,6 +526,22 @@ def define_schema(cls):
542526
),
543527
],
544528
),
529+
IO.DynamicCombo.Option(
530+
"Starlight (Astra) Fast",
531+
[IO.Combo.Input("upscaler_resolution", options=["FullHD (1080p)", "4K (2160p)"]),],
532+
),
533+
IO.DynamicCombo.Option(
534+
"Starlight (Astra) Creative",
535+
[
536+
IO.Combo.Input("upscaler_resolution", options=["FullHD (1080p)", "4K (2160p)"]),
537+
IO.Combo.Input(
538+
"creativity",
539+
options=["low", "middle", "high"],
540+
default="low",
541+
tooltip="Creative strength of the upscale.",
542+
),
543+
],
544+
),
545545
IO.DynamicCombo.Option(
546546
"Starlight Precise 2.5",
547547
[IO.Combo.Input("upscaler_resolution", options=["FullHD (1080p)", "4K (2160p)"])],

0 commit comments

Comments
 (0)