mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-11 14:50:49 +08:00
WAN 2.1 support
This commit is contained in:
parent
bfb145bb26
commit
83948cafd1
@ -17,7 +17,7 @@ import importlib.resources
|
||||
from typing_extensions import NotRequired
|
||||
|
||||
from ..cli_args import DEFAULT_VERSION_STRING
|
||||
from ..cmd.folder_paths import add_model_folder_path
|
||||
from ..cmd.folder_paths import add_model_folder_path # pylint: disable=import-error
|
||||
|
||||
REQUEST_TIMEOUT = 10 # seconds
|
||||
|
||||
|
||||
@ -120,7 +120,7 @@ except:
|
||||
npu_available = False
|
||||
|
||||
try:
|
||||
import torch_mlu # noqa: F401
|
||||
import torch_mlu # pylint: disable=import-error, noqa: F401
|
||||
|
||||
_ = torch.mlu.device_count()
|
||||
mlu_available = torch.mlu.is_available()
|
||||
|
||||
@ -977,7 +977,7 @@ class CLIPLoader:
|
||||
elif type == "lumina2":
|
||||
clip_type = sd.CLIPType.LUMINA2
|
||||
elif type == "wan":
|
||||
clip_type = comfy.sd.CLIPType.WAN
|
||||
clip_type = sd.CLIPType.WAN
|
||||
else:
|
||||
logging.warning(f"Unknown clip type argument passed: {type} for model {clip_name}")
|
||||
|
||||
|
||||
@ -101,7 +101,7 @@ class SaveNodeResultT(TypedDict, total=True):
|
||||
type: Literal["output", "input", "temp"]
|
||||
|
||||
|
||||
SaveNodeResult = SaveNodeResultT | FileLocator
|
||||
SaveNodeResult = SaveNodeResultT
|
||||
|
||||
|
||||
class UIImagesImagesResult(TypedDict, total=True):
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import dataclasses
|
||||
import json
|
||||
import logging
|
||||
import math
|
||||
import os.path
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import nodes
|
||||
import node_helpers
|
||||
from comfy.nodes import base_nodes as nodes
|
||||
from comfy import node_helpers
|
||||
import torch
|
||||
import comfy.model_management
|
||||
import comfy.utils
|
||||
|
||||
Loading…
Reference in New Issue
Block a user