mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-02 21:32:31 +08:00
Merge branch 'master' into fix/guard-unregistered-class-type
This commit is contained in:
commit
24587d8464
@ -248,8 +248,8 @@ class VideoFromFile(VideoInput):
|
|||||||
continue
|
continue
|
||||||
if self.__duration and frame.pts >= end_pts:
|
if self.__duration and frame.pts >= end_pts:
|
||||||
break
|
break
|
||||||
img = frame.to_ndarray(format='rgb24') # shape: (H, W, 3)
|
img = frame.to_ndarray(format='gbrpf32le') # shape: (H, W, 3)
|
||||||
img = torch.from_numpy(img) / 255.0 # shape: (H, W, 3)
|
img = torch.from_numpy(img)
|
||||||
frames.append(img)
|
frames.append(img)
|
||||||
|
|
||||||
images = torch.stack(frames) if len(frames) > 0 else torch.zeros(0, 3, 0, 0)
|
images = torch.stack(frames) if len(frames) > 0 else torch.zeros(0, 3, 0, 0)
|
||||||
|
|||||||
@ -33,9 +33,13 @@ class OpenAIVideoSora2(IO.ComfyNode):
|
|||||||
def define_schema(cls):
|
def define_schema(cls):
|
||||||
return IO.Schema(
|
return IO.Schema(
|
||||||
node_id="OpenAIVideoSora2",
|
node_id="OpenAIVideoSora2",
|
||||||
display_name="OpenAI Sora - Video",
|
display_name="OpenAI Sora - Video (Deprecated)",
|
||||||
category="api node/video/Sora",
|
category="api node/video/Sora",
|
||||||
description="OpenAI video and audio generation.",
|
description=(
|
||||||
|
"OpenAI video and audio generation.\n\n"
|
||||||
|
"DEPRECATION NOTICE: OpenAI will stop serving the Sora v2 API in September 2026. "
|
||||||
|
"This node will be removed from ComfyUI at that time."
|
||||||
|
),
|
||||||
inputs=[
|
inputs=[
|
||||||
IO.Combo.Input(
|
IO.Combo.Input(
|
||||||
"model",
|
"model",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user