8 Commits
Author SHA1 Message Date
Martin 9b36c13f2b Merge pull request #21 from ComfyNodePRs/update-publish-yaml
Update Github Action for Publishing to Comfy Registry
2025-03-27 09:57:35 -05:00
snomiao 1675f944ce chore(publish): update GitHub Actions workflow for node publishing
- Add permissions for writing issues
- Update action version to v1 for publish-node-action
- Add condition to run job only for specific repository owner
2025-01-20 21:39:46 +00:00
Martin 4fa499d47a Update pyproject.toml 2024-08-01 10:28:19 -05:00
Martin c1ef633a70 Merge pull request #13 from bvhari/patch-1
Fix for error when drop_rate = 0
2024-08-01 09:41:55 -05:00
Martin f336a8ae62 Merge pull request #14 from ComfyNodePRs/licence-update
Update PyProject Toml - License
2024-08-01 09:41:18 -05:00
snomiao 9e2d1693ee chore(licence-update): Update PyProject Toml - License 2024-07-31 13:39:10 +00:00
BVH 5ae3c2fc78 Update tensor.py to fix error when drop_rate = 0
Without the change, drop_rate=0 will cause the creation of an IntTensor from torch.full, which causes torch.bernoulli to throw an error as it expects a FloatTensor
2024-07-31 01:11:11 +05:30
Martin 1a865abbf5 Merge pull request #11 from 54rt1n/staging
Comfy Registry integration
2024-07-09 11:29:23 -05:00
3 changed files with 9 additions and 5 deletions
+5 -1
View File
@@ -7,15 +7,19 @@ on:
paths:
- "pyproject.toml"
permissions:
issues: write
jobs:
publish-node:
name: Publish Custom Node to registry
runs-on: ubuntu-latest
if: ${{ github.repository_owner == '54rt1n' }}
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Publish Custom Node
uses: Comfy-Org/publish-node-action@main
uses: Comfy-Org/publish-node-action@v1
with:
## Add your own personal access token to your Github Repository secrets and reference it here.
personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
+2 -2
View File
@@ -54,7 +54,7 @@ def dare_ties_sparsification(model_a_param: torch.Tensor, model_b_param: torch.T
model_b_flat = model_b_param.view(-1).float().to(device)
delta_flat = model_b_flat - model_a_flat
dare_mask = torch.bernoulli(torch.full(delta_flat.shape, 1 - drop_rate, device=device)).bool()
dare_mask = torch.bernoulli(torch.full(delta_flat.shape, 1.0 - drop_rate, device=device)).bool()
# The paper says we should rescale, but it yields terrible results for SD.
if rescale == "on":
# Rescale the remaining deltas
@@ -236,4 +236,4 @@ def divide_tensor_into_sets(tensor : torch.Tensor, n_sets : int):
# Randomly assign each element to one of the n sets
random_set_assignments = torch.randint(0, n_sets, tensor.shape, dtype=torch.int)
return random_set_assignments
return random_set_assignments
+2 -2
View File
@@ -1,8 +1,8 @@
[project]
name = "comfyui-daremerge"
description = "ComfyUI powertools for SD1.5 and SDXL model merging"
version = "0.3.1"
license = "GPL-3.0-only"
version = "0.3.2"
license = { text = "GNU General Public License v3.0" }
authors = [
{ name = "54rt1n", email = "opensource@bmds.us" }
]