Merge branch 'comfyanonymous:master' into master

This commit is contained in:
patientx 2025-02-22 14:42:22 +03:00 committed by GitHub
commit 26eb98b96f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 3 additions and 18 deletions

View File

@ -41,27 +41,12 @@ def exists(val):
return val is not None
def uniq(arr):
return{el: True for el in arr}.keys()
def default(val, d):
if exists(val):
return val
return d
def max_neg_value(t):
return -torch.finfo(t.dtype).max
def init_(tensor):
dim = tensor.shape[-1]
std = 1 / math.sqrt(dim)
tensor.uniform_(-std, std)
return tensor
# feedforward
class GEGLU(nn.Module):
def __init__(self, dim_in, dim_out, dtype=None, device=None, operations=ops):

View File

@ -944,7 +944,7 @@ def force_upcast_attention_dtype():
upcast = args.force_upcast_attention
macos_version = mac_version()
if macos_version is not None and ((14, 5) <= macos_version <= (15, 2)): # black image bug on recent versions of macOS
if macos_version is not None and ((14, 5) <= macos_version < (16,)): # black image bug on recent versions of macOS
upcast = True
if upcast:

View File

@ -1,3 +1,3 @@
# This file is automatically generated by the build process when version is
# updated in pyproject.toml.
__version__ = "0.3.14"
__version__ = "0.3.15"

View File

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