Compare commits

..

3 Commits

Author SHA1 Message Date
Jedrzej Kosinski
eb7be530e3 Merge branch 'master' into fix/gradient-stops-format 2026-03-12 09:55:42 -07:00
guill
6c79a3cb68 Merge branch 'master' into fix/gradient-stops-format 2026-03-12 09:45:48 -07:00
Terry Jia
ca597d2182 fix: use frontend-compatible format for Float gradient_stops 2026-03-05 10:29:54 -05:00
5 changed files with 7 additions and 7 deletions

View File

@@ -272,7 +272,7 @@ class VideoFromFile(VideoInput):
has_first_frame = False has_first_frame = False
for frame in frames: for frame in frames:
offset_seconds = start_time - frame.pts * audio_stream.time_base offset_seconds = start_time - frame.pts * audio_stream.time_base
to_skip = max(0, int(offset_seconds * audio_stream.sample_rate)) to_skip = int(offset_seconds * audio_stream.sample_rate)
if to_skip < frame.samples: if to_skip < frame.samples:
has_first_frame = True has_first_frame = True
break break
@@ -280,7 +280,7 @@ class VideoFromFile(VideoInput):
audio_frames.append(frame.to_ndarray()[..., to_skip:]) audio_frames.append(frame.to_ndarray()[..., to_skip:])
for frame in frames: for frame in frames:
if self.__duration and frame.time > start_time + self.__duration: if frame.time > start_time + self.__duration:
break break
audio_frames.append(frame.to_ndarray()) # shape: (channels, samples) audio_frames.append(frame.to_ndarray()) # shape: (channels, samples)
if len(audio_frames) > 0: if len(audio_frames) > 0:

View File

@@ -248,7 +248,7 @@ class KV_Attn_Input:
self.set_cache = False self.set_cache = False
return {"q": q, "k": torch.cat((k, kk), dim=2), "v": torch.cat((v, vv), dim=2)} return {"q": q, "k": torch.cat((k, kk), dim=2), "v": torch.cat((v, vv), dim=2)}
self.cache[cache_key] = (k[:, :, -ref_toks:].clone(), v[:, :, -ref_toks:].clone()) self.cache[cache_key] = (k[:, :, -ref_toks:], v[:, :, -ref_toks:])
self.set_cache = True self.set_cache = True
return {"q": q, "k": k, "v": v} return {"q": q, "k": k, "v": v}

View File

@@ -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.17.1" __version__ = "0.16.4"

View File

@@ -1,6 +1,6 @@
[project] [project]
name = "ComfyUI" name = "ComfyUI"
version = "0.17.1" version = "0.16.4"
readme = "README.md" readme = "README.md"
license = { file = "LICENSE" } license = { file = "LICENSE" }
requires-python = ">=3.10" requires-python = ">=3.10"

View File

@@ -1,5 +1,5 @@
comfyui-frontend-package==1.41.19 comfyui-frontend-package==1.41.16
comfyui-workflow-templates==0.9.21 comfyui-workflow-templates==0.9.18
comfyui-embedded-docs==0.4.3 comfyui-embedded-docs==0.4.3
torch torch
torchsde torchsde