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 return val is not None
def uniq(arr):
return{el: True for el in arr}.keys()
def default(val, d): def default(val, d):
if exists(val): if exists(val):
return val return val
return d 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 # feedforward
class GEGLU(nn.Module): class GEGLU(nn.Module):
def __init__(self, dim_in, dim_out, dtype=None, device=None, operations=ops): 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 upcast = args.force_upcast_attention
macos_version = mac_version() 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 upcast = True
if upcast: if upcast:

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.3.14" __version__ = "0.3.15"

View File

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