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 }} 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。 diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..6d418e4 --- /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." +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 = "windecay" +DisplayName = "ComfyUI-ReservedVRAM" +Icon = "" +includes = [] +# "requires-comfyui" = ">=1.0.0" # ComfyUI version compatibility +