Skip to content

Commit 0899012

Browse files
authored
chore(api-nodes): by default set Watermark generation to False (comfyanonymous#11437)
1 parent fb478f6 commit 0899012

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

comfy_api_nodes/apis/bytedance_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Text2ImageTaskCreationRequest(BaseModel):
1010
size: str | None = Field(None)
1111
seed: int | None = Field(0, ge=0, le=2147483647)
1212
guidance_scale: float | None = Field(..., ge=1.0, le=10.0)
13-
watermark: bool | None = Field(True)
13+
watermark: bool | None = Field(False)
1414

1515

1616
class Image2ImageTaskCreationRequest(BaseModel):
@@ -21,7 +21,7 @@ class Image2ImageTaskCreationRequest(BaseModel):
2121
size: str | None = Field("adaptive")
2222
seed: int | None = Field(..., ge=0, le=2147483647)
2323
guidance_scale: float | None = Field(..., ge=1.0, le=10.0)
24-
watermark: bool | None = Field(True)
24+
watermark: bool | None = Field(False)
2525

2626

2727
class Seedream4Options(BaseModel):
@@ -37,7 +37,7 @@ class Seedream4TaskCreationRequest(BaseModel):
3737
seed: int = Field(..., ge=0, le=2147483647)
3838
sequential_image_generation: str = Field("disabled")
3939
sequential_image_generation_options: Seedream4Options = Field(Seedream4Options(max_images=15))
40-
watermark: bool = Field(True)
40+
watermark: bool = Field(False)
4141

4242

4343
class ImageTaskCreationResponse(BaseModel):

comfy_api_nodes/nodes_bytedance.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def define_schema(cls):
112112
),
113113
IO.Boolean.Input(
114114
"watermark",
115-
default=True,
115+
default=False,
116116
tooltip='Whether to add an "AI generated" watermark to the image',
117117
optional=True,
118118
),
@@ -215,7 +215,7 @@ def define_schema(cls):
215215
),
216216
IO.Boolean.Input(
217217
"watermark",
218-
default=True,
218+
default=False,
219219
tooltip='Whether to add an "AI generated" watermark to the image',
220220
optional=True,
221221
),
@@ -346,7 +346,7 @@ def define_schema(cls):
346346
),
347347
IO.Boolean.Input(
348348
"watermark",
349-
default=True,
349+
default=False,
350350
tooltip='Whether to add an "AI generated" watermark to the image.',
351351
optional=True,
352352
),
@@ -380,7 +380,7 @@ async def execute(
380380
sequential_image_generation: str = "disabled",
381381
max_images: int = 1,
382382
seed: int = 0,
383-
watermark: bool = True,
383+
watermark: bool = False,
384384
fail_on_partial: bool = True,
385385
) -> IO.NodeOutput:
386386
validate_string(prompt, strip_whitespace=True, min_length=1)
@@ -507,7 +507,7 @@ def define_schema(cls):
507507
),
508508
IO.Boolean.Input(
509509
"watermark",
510-
default=True,
510+
default=False,
511511
tooltip='Whether to add an "AI generated" watermark to the video.',
512512
optional=True,
513513
),
@@ -617,7 +617,7 @@ def define_schema(cls):
617617
),
618618
IO.Boolean.Input(
619619
"watermark",
620-
default=True,
620+
default=False,
621621
tooltip='Whether to add an "AI generated" watermark to the video.',
622622
optional=True,
623623
),
@@ -739,7 +739,7 @@ def define_schema(cls):
739739
),
740740
IO.Boolean.Input(
741741
"watermark",
742-
default=True,
742+
default=False,
743743
tooltip='Whether to add an "AI generated" watermark to the video.',
744744
optional=True,
745745
),
@@ -862,7 +862,7 @@ def define_schema(cls):
862862
),
863863
IO.Boolean.Input(
864864
"watermark",
865-
default=True,
865+
default=False,
866866
tooltip='Whether to add an "AI generated" watermark to the video.',
867867
optional=True,
868868
),

comfy_api_nodes/nodes_wan.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,22 +46,22 @@ class Txt2ImageParametersField(BaseModel):
4646
n: int = Field(1, description="Number of images to generate.") # we support only value=1
4747
seed: int = Field(..., ge=0, le=2147483647)
4848
prompt_extend: bool = Field(True)
49-
watermark: bool = Field(True)
49+
watermark: bool = Field(False)
5050

5151

5252
class Image2ImageParametersField(BaseModel):
5353
size: str | None = Field(None)
5454
n: int = Field(1, description="Number of images to generate.") # we support only value=1
5555
seed: int = Field(..., ge=0, le=2147483647)
56-
watermark: bool = Field(True)
56+
watermark: bool = Field(False)
5757

5858

5959
class Text2VideoParametersField(BaseModel):
6060
size: str = Field(...)
6161
seed: int = Field(..., ge=0, le=2147483647)
6262
duration: int = Field(5, ge=5, le=15)
6363
prompt_extend: bool = Field(True)
64-
watermark: bool = Field(True)
64+
watermark: bool = Field(False)
6565
audio: bool = Field(False, description="Whether to generate audio automatically.")
6666
shot_type: str = Field("single")
6767

@@ -71,7 +71,7 @@ class Image2VideoParametersField(BaseModel):
7171
seed: int = Field(..., ge=0, le=2147483647)
7272
duration: int = Field(5, ge=5, le=15)
7373
prompt_extend: bool = Field(True)
74-
watermark: bool = Field(True)
74+
watermark: bool = Field(False)
7575
audio: bool = Field(False, description="Whether to generate audio automatically.")
7676
shot_type: str = Field("single")
7777

@@ -208,7 +208,7 @@ def define_schema(cls):
208208
),
209209
IO.Boolean.Input(
210210
"watermark",
211-
default=True,
211+
default=False,
212212
tooltip="Whether to add an AI-generated watermark to the result.",
213213
optional=True,
214214
),
@@ -234,7 +234,7 @@ async def execute(
234234
height: int = 1024,
235235
seed: int = 0,
236236
prompt_extend: bool = True,
237-
watermark: bool = True,
237+
watermark: bool = False,
238238
):
239239
initial_response = await sync_op(
240240
cls,
@@ -327,7 +327,7 @@ def define_schema(cls):
327327
),
328328
IO.Boolean.Input(
329329
"watermark",
330-
default=True,
330+
default=False,
331331
tooltip="Whether to add an AI-generated watermark to the result.",
332332
optional=True,
333333
),
@@ -353,7 +353,7 @@ async def execute(
353353
# width: int = 1024,
354354
# height: int = 1024,
355355
seed: int = 0,
356-
watermark: bool = True,
356+
watermark: bool = False,
357357
):
358358
n_images = get_number_of_images(image)
359359
if n_images not in (1, 2):
@@ -476,7 +476,7 @@ def define_schema(cls):
476476
),
477477
IO.Boolean.Input(
478478
"watermark",
479-
default=True,
479+
default=False,
480480
tooltip="Whether to add an AI-generated watermark to the result.",
481481
optional=True,
482482
),
@@ -512,7 +512,7 @@ async def execute(
512512
seed: int = 0,
513513
generate_audio: bool = False,
514514
prompt_extend: bool = True,
515-
watermark: bool = True,
515+
watermark: bool = False,
516516
shot_type: str = "single",
517517
):
518518
if "480p" in size and model == "wan2.6-t2v":
@@ -637,7 +637,7 @@ def define_schema(cls):
637637
),
638638
IO.Boolean.Input(
639639
"watermark",
640-
default=True,
640+
default=False,
641641
tooltip="Whether to add an AI-generated watermark to the result.",
642642
optional=True,
643643
),
@@ -674,7 +674,7 @@ async def execute(
674674
seed: int = 0,
675675
generate_audio: bool = False,
676676
prompt_extend: bool = True,
677-
watermark: bool = True,
677+
watermark: bool = False,
678678
shot_type: str = "single",
679679
):
680680
if get_number_of_images(image) != 1:

0 commit comments

Comments
 (0)