mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-12-20 11:32:58 +08:00
Merge branch 'master' into flipflop-stream
This commit is contained in:
commit
ec156e72eb
@ -176,6 +176,12 @@ Simply download, extract with [7-Zip](https://7-zip.org) and run. Make sure you
|
|||||||
|
|
||||||
If you have trouble extracting it, right click the file -> properties -> unblock
|
If you have trouble extracting it, right click the file -> properties -> unblock
|
||||||
|
|
||||||
|
#### Alternative Downloads:
|
||||||
|
|
||||||
|
[Experimental portable for AMD GPUs](https://github.com/comfyanonymous/ComfyUI/releases/latest/download/ComfyUI_windows_portable_amd.7z)
|
||||||
|
|
||||||
|
[Portable with pytorch cuda 12.8 and python 3.12](https://github.com/comfyanonymous/ComfyUI/releases/latest/download/ComfyUI_windows_portable_nvidia_cu128.7z) (Supports Nvidia 10 series and older GPUs).
|
||||||
|
|
||||||
#### How do I share models between another UI and ComfyUI?
|
#### How do I share models between another UI and ComfyUI?
|
||||||
|
|
||||||
See the [Config file](extra_model_paths.yaml.example) to set the search paths for models. In the standalone windows build you can find this file in the ComfyUI directory. Rename this file to extra_model_paths.yaml and edit it with your favorite text editor.
|
See the [Config file](extra_model_paths.yaml.example) to set the search paths for models. In the standalone windows build you can find this file in the ComfyUI directory. Rename this file to extra_model_paths.yaml and edit it with your favorite text editor.
|
||||||
|
|||||||
@ -1605,6 +1605,7 @@ class _IO:
|
|||||||
Model = Model
|
Model = Model
|
||||||
ClipVision = ClipVision
|
ClipVision = ClipVision
|
||||||
ClipVisionOutput = ClipVisionOutput
|
ClipVisionOutput = ClipVisionOutput
|
||||||
|
AudioEncoder = AudioEncoder
|
||||||
AudioEncoderOutput = AudioEncoderOutput
|
AudioEncoderOutput = AudioEncoderOutput
|
||||||
StyleModel = StyleModel
|
StyleModel = StyleModel
|
||||||
Gligen = Gligen
|
Gligen = Gligen
|
||||||
|
|||||||
@ -920,7 +920,7 @@ class ByteDanceFirstLastFrameNode(comfy_io.ComfyNode):
|
|||||||
inputs=[
|
inputs=[
|
||||||
comfy_io.Combo.Input(
|
comfy_io.Combo.Input(
|
||||||
"model",
|
"model",
|
||||||
options=[Image2VideoModelName.seedance_1_lite.value],
|
options=[model.value for model in Image2VideoModelName],
|
||||||
default=Image2VideoModelName.seedance_1_lite.value,
|
default=Image2VideoModelName.seedance_1_lite.value,
|
||||||
tooltip="Model name",
|
tooltip="Model name",
|
||||||
),
|
),
|
||||||
|
|||||||
@ -540,7 +540,7 @@ class Rodin3D_Gen2(Rodin3DAPI):
|
|||||||
**kwargs)
|
**kwargs)
|
||||||
await self.poll_for_task_status(subscription_key, **kwargs)
|
await self.poll_for_task_status(subscription_key, **kwargs)
|
||||||
download_list = await self.get_rodin_download_list(task_uuid, **kwargs)
|
download_list = await self.get_rodin_download_list(task_uuid, **kwargs)
|
||||||
model = await self.download_files(download_list)
|
model = await self.download_files(download_list, task_uuid)
|
||||||
|
|
||||||
return (model,)
|
return (model,)
|
||||||
|
|
||||||
|
|||||||
@ -1,44 +1,62 @@
|
|||||||
import folder_paths
|
import folder_paths
|
||||||
import comfy.audio_encoders.audio_encoders
|
import comfy.audio_encoders.audio_encoders
|
||||||
import comfy.utils
|
import comfy.utils
|
||||||
|
from typing_extensions import override
|
||||||
|
from comfy_api.latest import ComfyExtension, io
|
||||||
|
|
||||||
|
|
||||||
class AudioEncoderLoader:
|
class AudioEncoderLoader(io.ComfyNode):
|
||||||
@classmethod
|
@classmethod
|
||||||
def INPUT_TYPES(s):
|
def define_schema(cls) -> io.Schema:
|
||||||
return {"required": { "audio_encoder_name": (folder_paths.get_filename_list("audio_encoders"), ),
|
return io.Schema(
|
||||||
}}
|
node_id="AudioEncoderLoader",
|
||||||
RETURN_TYPES = ("AUDIO_ENCODER",)
|
category="loaders",
|
||||||
FUNCTION = "load_model"
|
inputs=[
|
||||||
|
io.Combo.Input(
|
||||||
|
"audio_encoder_name",
|
||||||
|
options=folder_paths.get_filename_list("audio_encoders"),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
outputs=[io.AudioEncoder.Output()],
|
||||||
|
)
|
||||||
|
|
||||||
CATEGORY = "loaders"
|
@classmethod
|
||||||
|
def execute(cls, audio_encoder_name) -> io.NodeOutput:
|
||||||
def load_model(self, audio_encoder_name):
|
|
||||||
audio_encoder_name = folder_paths.get_full_path_or_raise("audio_encoders", audio_encoder_name)
|
audio_encoder_name = folder_paths.get_full_path_or_raise("audio_encoders", audio_encoder_name)
|
||||||
sd = comfy.utils.load_torch_file(audio_encoder_name, safe_load=True)
|
sd = comfy.utils.load_torch_file(audio_encoder_name, safe_load=True)
|
||||||
audio_encoder = comfy.audio_encoders.audio_encoders.load_audio_encoder_from_sd(sd)
|
audio_encoder = comfy.audio_encoders.audio_encoders.load_audio_encoder_from_sd(sd)
|
||||||
if audio_encoder is None:
|
if audio_encoder is None:
|
||||||
raise RuntimeError("ERROR: audio encoder file is invalid and does not contain a valid model.")
|
raise RuntimeError("ERROR: audio encoder file is invalid and does not contain a valid model.")
|
||||||
return (audio_encoder,)
|
return io.NodeOutput(audio_encoder)
|
||||||
|
|
||||||
|
|
||||||
class AudioEncoderEncode:
|
class AudioEncoderEncode(io.ComfyNode):
|
||||||
@classmethod
|
@classmethod
|
||||||
def INPUT_TYPES(s):
|
def define_schema(cls) -> io.Schema:
|
||||||
return {"required": { "audio_encoder": ("AUDIO_ENCODER",),
|
return io.Schema(
|
||||||
"audio": ("AUDIO",),
|
node_id="AudioEncoderEncode",
|
||||||
}}
|
category="conditioning",
|
||||||
RETURN_TYPES = ("AUDIO_ENCODER_OUTPUT",)
|
inputs=[
|
||||||
FUNCTION = "encode"
|
io.AudioEncoder.Input("audio_encoder"),
|
||||||
|
io.Audio.Input("audio"),
|
||||||
|
],
|
||||||
|
outputs=[io.AudioEncoderOutput.Output()],
|
||||||
|
)
|
||||||
|
|
||||||
CATEGORY = "conditioning"
|
@classmethod
|
||||||
|
def execute(cls, audio_encoder, audio) -> io.NodeOutput:
|
||||||
def encode(self, audio_encoder, audio):
|
|
||||||
output = audio_encoder.encode_audio(audio["waveform"], audio["sample_rate"])
|
output = audio_encoder.encode_audio(audio["waveform"], audio["sample_rate"])
|
||||||
return (output,)
|
return io.NodeOutput(output)
|
||||||
|
|
||||||
|
|
||||||
NODE_CLASS_MAPPINGS = {
|
class AudioEncoder(ComfyExtension):
|
||||||
"AudioEncoderLoader": AudioEncoderLoader,
|
@override
|
||||||
"AudioEncoderEncode": AudioEncoderEncode,
|
async def get_node_list(self) -> list[type[io.ComfyNode]]:
|
||||||
}
|
return [
|
||||||
|
AudioEncoderLoader,
|
||||||
|
AudioEncoderEncode,
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
async def comfy_entrypoint() -> AudioEncoder:
|
||||||
|
return AudioEncoder()
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
# This file is automatically generated by the build process when version is
|
# This file is automatically generated by the build process when version is
|
||||||
# updated in pyproject.toml.
|
# updated in pyproject.toml.
|
||||||
__version__ = "0.3.61"
|
__version__ = "0.3.62"
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "ComfyUI"
|
name = "ComfyUI"
|
||||||
version = "0.3.61"
|
version = "0.3.62"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
license = { file = "LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
requires-python = ">=3.9"
|
requires-python = ">=3.9"
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
comfyui-frontend-package==1.26.13
|
comfyui-frontend-package==1.27.7
|
||||||
comfyui-workflow-templates==0.1.91
|
comfyui-workflow-templates==0.1.91
|
||||||
comfyui-embedded-docs==0.2.6
|
comfyui-embedded-docs==0.2.6
|
||||||
torch
|
torch
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user