mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-07-12 17:37:17 +08:00
Merge branch 'Comfy-Org:master' into master
This commit is contained in:
commit
6b31e3f621
@ -337,6 +337,36 @@ class ModelMergeQwenImage(comfy_extras.nodes_model_merging.ModelMergeBlocks):
|
|||||||
|
|
||||||
return {"required": arg_dict}
|
return {"required": arg_dict}
|
||||||
|
|
||||||
|
class ModelMergeKrea2(comfy_extras.nodes_model_merging.ModelMergeBlocks):
|
||||||
|
CATEGORY = "model/merging/model specific"
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def INPUT_TYPES(s):
|
||||||
|
arg_dict = { "model1": ("MODEL",),
|
||||||
|
"model2": ("MODEL",)}
|
||||||
|
|
||||||
|
argument = ("FLOAT", {"default": 1.0, "min": 0.0, "max": 1.0, "step": 0.01})
|
||||||
|
|
||||||
|
arg_dict["first."] = argument
|
||||||
|
arg_dict["tmlp."] = argument
|
||||||
|
arg_dict["txtmlp."] = argument
|
||||||
|
arg_dict["tproj."] = argument
|
||||||
|
|
||||||
|
for i in range(2):
|
||||||
|
arg_dict["txtfusion.layerwise_blocks.{}.".format(i)] = argument
|
||||||
|
|
||||||
|
arg_dict["txtfusion.projector."] = argument
|
||||||
|
|
||||||
|
for i in range(2):
|
||||||
|
arg_dict["txtfusion.refiner_blocks.{}.".format(i)] = argument
|
||||||
|
|
||||||
|
for i in range(28):
|
||||||
|
arg_dict["blocks.{}.".format(i)] = argument
|
||||||
|
|
||||||
|
arg_dict["last."] = argument
|
||||||
|
|
||||||
|
return {"required": arg_dict}
|
||||||
|
|
||||||
NODE_CLASS_MAPPINGS = {
|
NODE_CLASS_MAPPINGS = {
|
||||||
"ModelMergeSD1": ModelMergeSD1,
|
"ModelMergeSD1": ModelMergeSD1,
|
||||||
"ModelMergeSD2": ModelMergeSD1, #SD1 and SD2 have the same blocks
|
"ModelMergeSD2": ModelMergeSD1, #SD1 and SD2 have the same blocks
|
||||||
@ -353,4 +383,5 @@ NODE_CLASS_MAPPINGS = {
|
|||||||
"ModelMergeCosmosPredict2_2B": ModelMergeCosmosPredict2_2B,
|
"ModelMergeCosmosPredict2_2B": ModelMergeCosmosPredict2_2B,
|
||||||
"ModelMergeCosmosPredict2_14B": ModelMergeCosmosPredict2_14B,
|
"ModelMergeCosmosPredict2_14B": ModelMergeCosmosPredict2_14B,
|
||||||
"ModelMergeQwenImage": ModelMergeQwenImage,
|
"ModelMergeQwenImage": ModelMergeQwenImage,
|
||||||
|
"ModelMergeKrea2": ModelMergeKrea2,
|
||||||
}
|
}
|
||||||
|
|||||||
14
openapi.yaml
14
openapi.yaml
@ -1692,6 +1692,12 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/ErrorResponse'
|
$ref: '#/components/schemas/ErrorResponse'
|
||||||
description: Unsupported media type
|
description: Unsupported media type
|
||||||
|
"422":
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ErrorResponse'
|
||||||
|
description: Validation error (e.g., disallowed model_type tag)
|
||||||
"500":
|
"500":
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@ -2137,6 +2143,12 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/ErrorResponse'
|
$ref: '#/components/schemas/ErrorResponse'
|
||||||
description: Source asset with given hash not found
|
description: Source asset with given hash not found
|
||||||
|
"422":
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ErrorResponse'
|
||||||
|
description: Validation error (e.g., disallowed model_type tag)
|
||||||
"500":
|
"500":
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@ -2992,7 +3004,7 @@ paths:
|
|||||||
format: uuid
|
format: uuid
|
||||||
type: string
|
type: string
|
||||||
- description: |
|
- description: |
|
||||||
When present, each output item in the response receives a `short_url` field containing an owner-gated durable link for that asset. Omit this parameter (the default) to receive a response identical to the no-param baseline. The value selects the link's lifetime: use `ephemeral_tool_chain` for short-lived machine-to-machine handoffs (~15 minutes); use `default` for durable human-revisitable links (30 days). Links are minted only for the authenticated request owner and are not resolvable by other users.
|
When present, each output item in the response receives a `short_url` field containing a short link for that asset. Omit this parameter (the default) to receive a response identical to the no-param baseline. The value selects the link's lifetime and auth model: use `ephemeral_tool_chain` for short-lived (≤5 minute) machine-to-machine handoffs — these are public bearer links where the link ID itself is the credential, so anyone holding the link can resolve it (intended for pasting into an agent/MCP tool chain); use `default` for durable (30 day) human-revisitable links, which are owner-gated and resolvable only by the authenticated owner. Links are always minted under the authenticated request owner's identity; the auth model is selected by the server and is never settable by the caller.
|
||||||
in: query
|
in: query
|
||||||
name: short_link
|
name: short_link
|
||||||
schema:
|
schema:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user