From b8d160b874b62e2cd531fb83f9052e28763b2e15 Mon Sep 17 00:00:00 2001 From: "async () = process.env.GIT_USERNAME || (await ghUser()).email && (await ghUser()).name || DIE(\"Missing env.GIT_USERNAME\")" Date: Wed, 22 Oct 2025 18:21:13 +0000 Subject: [PATCH 1/4] chore(pyproject): Add pyproject.toml for Custom Node Registry --- pyproject.toml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..abec6f8 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,37 @@ +[project] +name = "reservedvram" +description = "A simple node that can dynamically adjust the reserved memory of a workflow in real-time, used to avoid the utilization of shared memory." +version = "1.0.0" +license = {file = "LICENSE"} +# classifiers = [ +# # For OS-independent nodes (works on all operating systems) +# "Operating System :: OS Independent", +# +# # OR for OS-specific nodes, specify the supported systems: +# "Operating System :: Microsoft :: Windows", # Windows specific +# "Operating System :: POSIX :: Linux", # Linux specific +# "Operating System :: MacOS", # macOS specific +# +# # GPU Accelerator support. Pick the ones that are supported by your extension. +# "Environment :: GPU :: NVIDIA CUDA", # NVIDIA CUDA support +# "Environment :: GPU :: AMD ROCm", # AMD ROCm support +# "Environment :: GPU :: Intel Arc", # Intel Arc support +# "Environment :: NPU :: Huawei Ascend", # Huawei Ascend support +# "Environment :: GPU :: Apple Metal", # Apple Metal support +# ] + +dependencies = ["nvidia-ml-py"] + +[project.urls] +Repository = "https://github.com/Windecay/ComfyUI-ReservedVRAM" +# Used by Comfy Registry https://registry.comfy.org +Documentation = "https://github.com/Windecay/ComfyUI-ReservedVRAM/wiki" +"Bug Tracker" = "https://github.com/Windecay/ComfyUI-ReservedVRAM/issues" + +[tool.comfy] +PublisherId = "" +DisplayName = "ComfyUI-ReservedVRAM" +Icon = "" +includes = [] +# "requires-comfyui" = ">=1.0.0" # ComfyUI version compatibility + From f715beb18fcf11b805b4ca6c9f827fa5af3ad995 Mon Sep 17 00:00:00 2001 From: "async () = process.env.GIT_USERNAME || (await ghUser()).email && (await ghUser()).name || DIE(\"Missing env.GIT_USERNAME\")" Date: Wed, 22 Oct 2025 18:21:13 +0000 Subject: [PATCH 2/4] chore(publish): Add Github Action for Publishing to Comfy Registry --- .github/workflows/publish.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..4707daa --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,28 @@ +name: Publish to Comfy registry +on: + workflow_dispatch: + push: + branches: + - main + - master + paths: + - "pyproject.toml" + +permissions: + issues: write + +jobs: + publish-node: + name: Publish Custom Node to registry + runs-on: ubuntu-latest + if: ${{ github.repository_owner == 'Windecay' }} + steps: + - name: Check out code + uses: actions/checkout@v4 + with: + submodules: true + - name: Publish Custom Node + 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 }} From 361800337b7fe433f596a6dd56e7588ce919ba00 Mon Sep 17 00:00:00 2001 From: Windecay <4453636@qq.com> Date: Thu, 20 Nov 2025 10:56:13 +0800 Subject: [PATCH 3/4] Refine project description and set PublisherId Updated project description for clarity and changed PublisherId. --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index abec6f8..6d418e4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "reservedvram" -description = "A simple node that can dynamically adjust the reserved memory of a workflow in real-time, used to avoid the utilization of shared memory." +description = "A simple node that can dynamically adjust the reserved memory of a workflow in real-time." version = "1.0.0" license = {file = "LICENSE"} # classifiers = [ @@ -29,7 +29,7 @@ Documentation = "https://github.com/Windecay/ComfyUI-ReservedVRAM/wiki" "Bug Tracker" = "https://github.com/Windecay/ComfyUI-ReservedVRAM/issues" [tool.comfy] -PublisherId = "" +PublisherId = "windecay" DisplayName = "ComfyUI-ReservedVRAM" Icon = "" includes = [] From d4dfb468da8f1c84533ab190bc531ee206afa690 Mon Sep 17 00:00:00 2001 From: Windecay <4453636@qq.com> Date: Thu, 20 Nov 2025 11:09:15 +0800 Subject: [PATCH 4/4] Updated README Updated README to clarify memory adjustment features and added new information about ComfyUI's Pin Memory feature. --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bb1e0c9..74f2165 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ -A simple node that can dynamically adjust the reserved memory of a workflow in real-time, used to avoid the utilization of shared memory. +A simple node that can dynamically adjust the reserved memory of a workflow in real-time. 更新 +##新版ComfyUI具有Pin Memory特性,会直接显示部分卸载到内存的模型为共享显存的使用。只要调节到采样速度和显卡功耗正常就可以。 + 2025-10-21增强节点功能 1,可以作为随机种子节点,每次运行均检测和和修改显存策略。可选开关。 @@ -24,7 +26,7 @@ new 预留数值可以为负值,配合自动模式计算用。 ————————————————————————————————————————— -一个可以实时调节工作流预留显存的简单节点,可以用于规避共享显存的使用,跑满显卡最大功率,解除显存焦虑。 +一个可以实时调节工作流预留显存的简单节点,跑满显卡最大功率,解除显存焦虑。 接在排行较前的节点处即可,观察windows任务管理器共享显存溢出多少,就需要设置保留多少(可以略微多一点),填入该数值。运行工作流实时生效,输入单位是GB。