diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 25d2cd9..0a6a353 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -62,12 +62,56 @@ jobs: test_tmp="$(mktemp -d "$HOME/agent-work/tmp/pytest/public-ci-XXXXXX")" trap 'rm -rf "$test_tmp"' EXIT export TMPDIR="$test_tmp" - python -m pytest -q --basetemp="$test_tmp/bt" tests scripts/test_app_guide_catalog.py scripts/test_app_graph_catalog.py scripts/test_hardware_catalog.py scripts/test_demo_catalog.py scripts/test_guide_translations.py scripts/test_community_workflows.py scripts/test_community_workflow_sources.py scripts/test_moss_trainer.py scripts/test_workflow_library.py scripts/test_workflow_guides.py scripts/test_autoip_oct22.py scripts/test_autoip_contract.py scripts/test_autoip_worker.py scripts/test_autoip_quote.py scripts/test_provider_autoip_profiles.py + python -m pytest -q --basetemp="$test_tmp/bt" tests scripts/test_app_guide_catalog.py scripts/test_app_graph_catalog.py scripts/test_hardware_catalog.py scripts/test_demo_catalog.py scripts/test_guide_translations.py scripts/test_community_workflows.py scripts/test_community_workflow_sources.py scripts/test_moss_trainer.py scripts/test_workflow_library.py scripts/test_workflow_guides.py scripts/test_autoip_oct22.py scripts/test_autoip_contract.py scripts/test_autoip_worker.py scripts/test_autoip_quote.py scripts/test_provider_autoip_profiles.py \ + scripts/test_character_original.py \ + scripts/test_collector_r35_integration.py \ + scripts/test_compute_collector.py \ + scripts/test_compute_parity_hosted_h1.py \ + scripts/test_compute_parity_p1.py \ + scripts/test_compute_r29.py \ + scripts/test_compute_r29b.py \ + scripts/test_compute_r29c.py \ + scripts/test_compute_r30.py \ + scripts/test_compute_r31.py \ + scripts/test_compute_r32.py \ + scripts/test_compute_r33.py \ + scripts/test_compute_r34.py \ + scripts/test_compute_r35.py \ + scripts/test_compute_r36.py \ + scripts/test_compute_r36b.py \ + scripts/test_compute_r36c.py \ + scripts/test_compute_r37.py \ + scripts/test_compute_r38.py \ + scripts/test_compute_r39.py \ + scripts/test_compute_r40.py \ + scripts/test_compute_r40b.py \ + scripts/test_compute_r40c.py \ + scripts/test_compute_r40v4.py \ + scripts/test_compute_r40v5.py scripts/test_egress_guard.py scripts/test_security_s1.py scripts/test_security_s1d.py scripts/test_compute_r40v6_robustness.py scripts/test_compute_r40v6_unsent_faults.py scripts/test_compute_r40v6_voice_toolchain.py scripts/test_h3_provider_worker.py \ + scripts/test_compute_r40v5_log_stats.py \ + scripts/test_compute_r40v5_restart_hold.py \ + scripts/test_compute_r40v5_worker_yield.py \ + scripts/test_review2_fixes_r35.py \ + scripts/test_review2_original_r35.py \ + scripts/test_review2_safety_r35.py \ + scripts/test_review3_boundaries_r35.py \ + scripts/test_review3_grace_r35.py \ + scripts/test_review_r35.py \ + scripts/test_review_r36c.py \ + scripts/test_review_r37.py \ + scripts/test_review_r38_caps.py \ + scripts/test_review_r38_diagnostics.py \ + scripts/test_review_r38_faults.py \ + scripts/test_review_r38b_edges.py \ + scripts/test_session_safety_r35.py - name: JavaScript syntax run: | node --check webui/static/app.js node --check webui/static/workflow-library.js node --check webui/static/colab.js + node --check webui/static/compute-parity.js + node --check scripts/test_compute_r32_poll.cjs + node --check scripts/test_session_controls_r38.js node --check webui/docs/docs.js node --check webui/docs/explorers.js node --check webui/docs/tour.js @@ -77,6 +121,10 @@ jobs: node --check webui/static/guide-translations-en.js node --check webui/docs/landing.js node --check webui/docs/hardware.js + - name: Offline JavaScript regressions + run: | + node scripts/test_compute_r32_poll.cjs + node scripts/test_session_controls_r38.js browser: runs-on: ubuntu-latest steps: @@ -102,4 +150,4 @@ jobs: browser_test_tmp="$(mktemp -d "$HOME/agent-work/tmp/pytest/browser-ci-XXXXXX")" trap 'rm -rf "$browser_test_tmp"' EXIT export TMPDIR="$browser_test_tmp" - python -m pytest -q --basetemp="$browser_test_tmp/bt" scripts/test_docs_browser.py scripts/test_landing_browser.py scripts/test_tour_browser.py scripts/test_explorers_browser.py scripts/test_hardware_catalog.py scripts/test_i18n_browser.py tests/test_portrait_browser.py tests/test_colab_browser.py tests/test_workflow_review_browser.py + python -m pytest -q --basetemp="$browser_test_tmp/bt" scripts/test_docs_browser.py scripts/test_landing_browser.py scripts/test_tour_browser.py scripts/test_explorers_browser.py scripts/test_hardware_catalog.py scripts/test_i18n_browser.py tests/test_portrait_browser.py tests/test_colab_browser.py tests/test_workflow_review_browser.py tests/test_provider_console_browser.py diff --git a/.gitleaks.toml b/.gitleaks.toml new file mode 100644 index 0000000..8dc8343 --- /dev/null +++ b/.gitleaks.toml @@ -0,0 +1,26 @@ +# Gitleaks settings for this repository: all default rules, plus one reviewed exception. +# The Colab overlay manifests map file paths to SHA-256 digests of pinned upstream files. +# File names such as "api.py" or "...ArgsEntry.py" next to a 64-character hex digest trip +# the generic-api-key and sentry-access-token rules. For those two rules only, a value that +# is exactly 64 lowercase hex characters in one of these two files is allowed; everything +# else, in these files or elsewhere, is still reported. +[extend] +useDefault = true + +[[rules]] +id = "generic-api-key" +[[rules.allowlists]] +description = "SHA-256 file digests in the Colab overlay manifests" +condition = "AND" +paths = ['''(^|/)scripts/colab_session_overlays/(breezy-inventory|voice-environments)\.json$'''] +regexTarget = "secret" +regexes = ['''^[0-9a-f]{64}$'''] + +[[rules]] +id = "sentry-access-token" +[[rules.allowlists]] +description = "SHA-256 file digests in the Colab overlay manifests" +condition = "AND" +paths = ['''(^|/)scripts/colab_session_overlays/(breezy-inventory|voice-environments)\.json$'''] +regexTarget = "secret" +regexes = ['''^[0-9a-f]{64}$'''] diff --git a/README.md b/README.md index e1bf3c9..23d00bd 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,15 @@ The installed app also includes [character portrait composition](docs/character-portraits.md): Qwen 2.1 identity-image conditioning, separate anime/realistic clothing references, scene and pose choices, and compact previews. -The optional [Google Colab H3 lane](docs/colab.md) adds separate account connections, durable cloud jobs, output retrieval and verified GPU release. Its source, CPU and browser contracts are tested; real-account GPU qualification is still pending. The [exhaustive upstream audit](docs/workflow-audit/README.md) distinguishes indexed workflows, importable graphs and actual execution evidence. +Five lanes, in short: + +- **Local** is the reference lane. Every catalog workflow runs on your own ComfyUI. Hosted time estimates start from your own completed Local runs or an estimate the owner enters; the repository ships no measurements. +- **Google Colab** opens one work session per connected Google account. Real-account video jobs (dance and video replace) completed on A100 work sessions on 2026-11-13. Voice on Colab is not available yet: the voice environment still fails to build there, and this repository does not ship the pinned VoxCPM wheel, so that environment fails closed (`voice_env_mismatch`). See [Colab](docs/colab.md). +- **AutoIP** quotes credits before dispatch and settles afterwards. Real-account dance generations completed on 2026-11-11 and 2026-11-12. Identity similarity to Local varies by character. The seven media operations are covered by contract and synthetic tests in CI. +- **Comfy Cloud** takes your own API key and submits the same graph bundle through the `/api/v2` jobs and assets API, after an object-info readiness check. Real-account dance jobs completed on 2026-11-11 and 2026-11-12. The API reported settlement as pending, so the UI shows an estimate until the provider reports an actual cost. +- **RunningHub** takes your own membership API key and runs the same graph through its ComfyUI-compatible API (`/proxy-plus/` prompt, object info, upload, history, queue and interrupt) plus an account-status check. A real-account calibration produced 8 of 8 outputs on 2026-11-12. Identity similarity to Local ranged from close to clearly lower for realistic characters, and anime characters drifted toward a realistic face, so identity parity with Local is not reached yet. + +Since 2026-11-10 the installed app adds Colab work sessions and an independent lease sweeper, cross-lane graph bundles with readiness checks, estimates and a local journal, a provider console for bring-your-own keys, and hosted readiness and inventory checks. [Compute platforms](docs/compute-platforms.md) is the current description. The [upstream audit](docs/workflow-audit/README.md) remains a historical snapshot from 2026-11-10. A local front end for your own ComfyUI: image and video forms, a searchable workflow library, generation queues, and user-managed character, voice and media collections. Use the top-right **繁中 / English** control to switch the interface language on the documentation site or in the installed app. @@ -20,7 +28,7 @@ The working application runs on **your computer**, with a separately installed C **Reference blending now preserves the original subject:** SAM3 creates a subject mask and composites the original person over your second image as the background. It does not redraw the face, change clothes or add lighting/shadows. See the [model setup, actual GPU example and pixel comparison](docs/subject-blend.md). Recorded demos display labeled simulated progress before revealing their results. -The demo's hardware selector offers no NVIDIA GPU, common 8/12/16/24/32 GB VRAM tiers, and two 24 GB cards. These are planning estimates, not measured minimums or benchmarks; two 24 GB cards are not treated as a pooled 48 GB device. Selecting a profile changes only the static demo's availability hints, never your installed app's configuration or permissions. Choosing **AutoIP** enables all 23 demo forms for exploration; real cloud support remains limited to available provider services and implemented integrations. The [cloud/demo guide](docs/autoip-cloud-demo.md) explains those boundaries and discloses referral code `TEDH2FND` used by the optional AutoIP registration link and QR code. +The demo's hardware selector offers no NVIDIA GPU, common 8/12/16/24/32 GB VRAM tiers, and two 24 GB cards. These are planning estimates, not measured minimums or benchmarks; two 24 GB cards are not treated as a pooled 48 GB device. Selecting a profile changes only the static demo's availability hints, never your installed app's configuration or permissions. Choosing **AutoIP** enables all 23 demo forms for exploration; real cloud support remains limited to available provider services and implemented integrations. The [cloud/demo guide](docs/autoip-cloud-demo.md) explains those boundaries and discloses referral code `TEDH2FND` used by the optional AutoIP registration link and QR code. The RunningHub card uses referral code `qqgzxufp` and the link `https://www.runninghub.ai?inviteCode=qqgzxufp`; the disclosure is in [docs/runninghub-referral.md](docs/runninghub-referral.md). ## Start locally diff --git a/README.zh-TW.md b/README.zh-TW.md index 5189309..bb81422 100644 --- a/README.zh-TW.md +++ b/README.zh-TW.md @@ -4,7 +4,15 @@ 安裝版新增[角色搭配寫真](docs/character-portraits.md):以 Qwen 2.1 參考角色原圖,搭配場景、服裝與姿勢。動畫/寫實服裝分開,圖卡使用小型預覽視窗。 -選用的 [Google Colab H3 整合](docs/colab.md) 提供分開的帳號連線、可恢復的雲端任務、成果下載與 GPU 釋放確認;已通過來源、CPU 與瀏覽器測試,真實帳號的 GPU 生成仍待驗證。[完整上游逐條研究](docs/workflow-audit/README.md) 分清楚已收錄、可匯入及有實跑證據的工作流。 +五條運算路線目前是: + +- **本機**是對照路線。目錄裡的每個工作流都在你自己的 ComfyUI 上跑。託管路線的時間估計來自你自己已完成的本機執行,或由擁有者輸入的估計;儲存庫不附帶測量資料。 +- **Google Colab** 對每個已連接的 Google 帳號開一個工作階段。2026-11-13 已在 A100 工作階段完成真實帳號的舞蹈與影片替換。Colab 上的語音還不能用:語音環境建置仍然失敗,此儲存庫也不附帶釘選的 VoxCPM wheel,因此語音環境以 `voice_env_mismatch` 失敗關閉。見 [Colab](docs/colab.md)。 +- **AutoIP** 在派送前報價、完成後結算。2026-11-11 與 2026-11-12 已完成真實帳號的舞蹈生成。和本機的身份相似度依角色而異。七個媒體操作由 CI 的契約與合成測試覆蓋。 +- **Comfy Cloud** 使用你自己的 API 金鑰,把同一份圖束經 `/api/v2` 的工作與素材 API 送出,並先做 object-info 就緒檢查。2026-11-11 與 2026-11-12 已完成真實帳號的舞蹈工作。API 回報結算仍待處理,所以介面顯示估計,直到供應商回報實際費用。 +- **RunningHub** 使用你自己的會員 API 金鑰。同一張圖走 RunningHub 相容 ComfyUI 的 API(`/proxy-plus/` 的 prompt、object info、上傳、history、queue、interrupt)以及帳戶狀態。2026-11-12 的真實帳號校正產出 8 個成果、8 個都成功。和本機的身份相似度,寫實角色從接近到明顯較低都有,動漫角色會往寫實的臉偏移,因此還沒有達到和本機一致。 + +2026-11-10 之後,安裝版新增 Colab 工作階段與獨立租約清掃、跨路線圖束與就緒檢查、估計與本機日誌、自備金鑰的供應商主控台,以及託管就緒與清單檢查。現況見 [運算平台](docs/compute-platforms.md)。[上游逐條研究](docs/workflow-audit/README.md) 仍是 2026-11-10 的歷史快照。 在自己的電腦上,用網頁介面操作 ComfyUI 生圖、影片、工作流、角色、聲音與素材。公開文件站與安裝後的 WebUI 都可用右上角 **繁中 / English** 切換介面語言。角色、帳號與素材庫從空白開始,需要 API 的功能可設定自己的帳號與金鑰。 @@ -16,7 +24,7 @@ 成果範例必須來自對應工作流的實際執行,並記錄輸入、不同的輸出、GPU 與執行證據。參考插圖只作為輸入,不充當生成成果;尚未實跑的影片、語音、訓練及其他功能不以替代媒體展示成果。[示範來源紀錄](webui/docs/examples/provenance.json) 保留公開素材與執行證據;發布只開放經審核的指定路徑與固定雜湊,個人與執行期媒體仍不納入。詳見 [文件站說明](docs/site.md)。 -示範的硬體選單提供無 NVIDIA GPU、8/12/16/24/32 GB 常見顯存級距,以及雙 24 GB 顯卡。這是規劃估計,不是最低需求實測或效能測試;雙 24 GB 不視為合併的 48 GB。切換只影響示範中的可用性提示,不偵測顯卡,也不更動安裝後 WebUI 的設定或停用本機功能。選 **AutoIP** 可探索全部 23 項示範表單,不代表每個本機節點、訓練器或功能都已有雲端 API 對應。選用的註冊連結與 QR code 帶推薦碼 `TEDH2FND`;服務界線與聯盟推薦揭露見 [AutoIP 雲端與示範說明](docs/autoip-cloud-demo.md)。 +示範的硬體選單提供無 NVIDIA GPU、8/12/16/24/32 GB 常見顯存級距,以及雙 24 GB 顯卡。這是規劃估計,不是最低需求實測或效能測試;雙 24 GB 不視為合併的 48 GB。切換只影響示範中的可用性提示,不偵測顯卡,也不更動安裝後 WebUI 的設定或停用本機功能。選 **AutoIP** 可探索全部 23 項示範表單,不代表每個本機節點、訓練器或功能都已有雲端 API 對應。選用的註冊連結與 QR code 帶推薦碼 `TEDH2FND`;服務界線與聯盟推薦揭露見 [AutoIP 雲端與示範說明](docs/autoip-cloud-demo.md)。RunningHub 的推薦碼是 `qqgzxufp`,連結為 `https://www.runninghub.ai?inviteCode=qqgzxufp`,揭露見 [RunningHub 推薦連結](docs/runninghub-referral.md)。 女聲示範包含五種風格、三頁簡報旁白與合成聲音延續,共九段實際音檔;以本機 VoxCPM2 在 CPU 生成,沒有私人錄音或真人聲音參考。聲音庫可試聽、選聲音,再帶入語音示範。另補上實跑對嘴、虛構角色換臉、首尾幀影片及循環處理。詳見[女聲範例與重播方法](docs/voice-examples.md)。 diff --git a/docs/autoip-cloud-demo.md b/docs/autoip-cloud-demo.md index 24a513f..3db8cd0 100644 --- a/docs/autoip-cloud-demo.md +++ b/docs/autoip-cloud-demo.md @@ -28,7 +28,7 @@ QR code 與上方連結編碼相同的完整網址。SVG 使用原生向量圖 官方首頁列出 MCP 的七類媒體工具,並說明 API 金鑰及訂閱條件。[官方首頁的 MCP 說明](https://autoip.app/)、[官方串接教學](https://autoip.app/blog/claude-code)、[API 金鑰管理](https://autoip.app/dashboard/api-keys) -本專案已實作七個媒體生成操作:文生圖、圖生圖、文生影片、圖生影片、多參考影片、對嘴與舞蹈影片。這是程式契約及合成測試覆蓋的範圍,並非本次使用真實帳戶執行成功的宣告。詳細端點、選項及限制見 [AutoIP integration](autoip-api.md)。 +本專案已實作七個媒體生成操作:文生圖、圖生圖、文生影片、圖生影片、多參考影片、對嘴與舞蹈影片。CI 覆蓋的是契約與合成測試。真實帳號的結果見 [運算平台](compute-platforms.md)。詳細端點、選項及限制見 [AutoIP integration](autoip-api.md)。 使用者提供的 2026-10-22 **AutoIP Public API Skill** 另描述圖片反推提示詞、圖片融合、多角度、貼文、關鍵幀影片、角色跳舞、影片修復、語音克隆、提示詞擴寫,以及角色/提示詞/聲音庫管理。這些上游能力並未因此自動出現在本 WebUI 的已實作操作中;逐項整合狀態見上述文件。 diff --git a/docs/colab.md b/docs/colab.md index fbf6226..8e8711f 100644 --- a/docs/colab.md +++ b/docs/colab.md @@ -4,7 +4,15 @@ Web ComfyUI 的一般生成表單與角色單步生成表單提供 **執行位 管理員可直接從 **管理 → Google Colab 帳號**,或 **管理中心 → Google Colab 帳號**,新增帳號、完成授權、重新連接及更新餘額。這裡管理的是目前登入使用者自己的 Google 連線,不是全站共用帳號。 它使用 Google 官方 `google-colab-cli` 0.7.4 的傳輸實作,讓已選擇的 Google 帳號申請 GPU、執行 H3、下載成果並釋放 GPU。它不會改變本機 ComfyUI 的位址,也不需要公開 ComfyUI 或建立通道。 -**驗證程度:已完成來源研究、CPU 契約測試與模擬帳號的瀏覽器測試;尚未以真實 Google 帳號完成 Colab GPU 生成。** 首次連線後仍需用小型任務驗證實際配額、GPU、驅動、依賴安裝及模型相容性。公開示範站不提供這個付費執行入口。 +**驗證程度:來源研究、CPU 契約測試與模擬帳號的瀏覽器測試已完成。** 工作階段路線在 2026-11-13 以真實帳號於 A100 完成舞蹈與影片替換。語音在 Colab 還不能用:語音環境建置仍然失敗,此儲存庫不附帶釘選的 VoxCPM wheel,語音環境以 `voice_env_mismatch` 失敗關閉。首次連線後仍需用小型任務確認你自己的配額、GPU、驅動與依賴。公開示範站不提供這個付費執行入口。 + +每個已連接的 Google 帳號,Web 只開一個工作階段:所選等級的 GPU 執行環境(仍受 Colab 當下是否有機器影響)、依 `scripts/colab_session_overlays/` 釘選的獨立 CPython、覆疊與版本來啟動、上傳輸入、執行工作、送心跳,並在閒置、故障上限或狀態遺失時自己關閉。Web 沒在跑時,獨立租約清掃 `scripts/colab_lease_sweeper.py` 仍會釋放租約。使用者單元是 `scripts/systemd/web-comfyui-colab-lease-sweeper.service` 與 `.timer`,每 5 分鐘清掃一次。單元假設簽出位於 `~/Web_Comfyui`、Web 使用該目錄的 `.venv`,Colab 控制器虛擬環境位於 `~/.local/share/web-comfyui/colab-controller`;路徑不同時請編輯單元。狀態目錄採用 Web 的預設值,可用 `CASTLE_COLAB_ROOT` 覆寫。 + +```sh +cp scripts/systemd/web-comfyui-colab-lease-sweeper.* ~/.config/systemd/user/ +systemctl --user daemon-reload +systemctl --user enable --now web-comfyui-colab-lease-sweeper.timer +``` ## 同一平台選算力 diff --git a/docs/compute-platforms.md b/docs/compute-platforms.md index 21542c9..042edee 100644 --- a/docs/compute-platforms.md +++ b/docs/compute-platforms.md @@ -5,7 +5,7 @@ ## 如何使用 1. 在生成表單選擇「執行方式」。本機沿用既有工作流;Colab 使用已整合的 PRISM / P-H3 配方;AutoIP 使用已支援的服務契約。 -2. 管理介面開啟「運算平台」,設定 Comfy Cloud 或 RunningHub 的官方網址、API 金鑰與功能配方。內建配方可直接選取;RunningHub 須先在其工作台儲存並成功手動執行對應工作流,再填入其 ID;不要求公開發布至社群。金鑰不會回填至瀏覽器。Google Colab 帳號管理仍在同一個 Web。 +2. 管理介面開啟「運算平台」。每位已登入的使用者連接自己的金鑰,並選擇要使用哪些路線;金鑰留在本機狀態目錄,不會回填到瀏覽器。連線探測只檢查金鑰、不跑工作:目前涵蓋 AutoIP 與 RunningHub,Comfy Cloud 還沒有這支探測。舊的配方路徑仍可選內建配方;RunningHub 的 workflow-ID 配方要先在其工作台儲存並成功手動執行,再填入 ID,不要求公開發布。圖束路線則把同一張圖送到 Comfy Cloud 的 `/api/v2` 或 RunningHub 的 `/proxy-plus/`,不必先取得 workflow ID。Google Colab 帳號管理仍在同一個 Web。 3. 每個託管配方必須先手動選用平台,取得下載並驗證成功的成果,才會納入自動安排。變更金鑰、端點或配方會重新要求驗證。 4. 創作頁或側欄開啟「多步製作」,使用三條快速流程,或自行加入製作步驟、選擇各步平台、上傳素材或綁定前一步的成果。可選同一平台,也可跨平台。流程不接受任意程式或節點圖,只能使用平台已開放的生成功能。 5. 每一步的進度、成果、取消與失敗重試都留在此頁。關閉瀏覽器後,已接受的流程會繼續;重新開啟可讀取原紀錄。 @@ -38,6 +38,90 @@ ## 費用與驗證範圍 -各平台費用單位分開檢查,不把 Colab 運算單位、AutoIP 點數、Comfy 點數、RunningHub 金幣視為同一貨幣。Comfy Cloud / RunningHub 目前以設定的配方估計值與執行期限作為准入條件;這不是供應商保證的帳單硬上限。取消已開始的工作仍可能有費用。 +各平台費用單位分開檢查,不把 Colab 運算單位、AutoIP 點數、Comfy 點數、RunningHub 金幣視為同一貨幣。舊的 Comfy Cloud/RunningHub 配方路徑仍以設定的配方估計值與執行期限作為准入條件;這不是供應商保證的帳單硬上限。圖束路線則要先有報價才算就緒,見下一節。取消已開始的工作仍可能有費用。 合成測試覆蓋 HTTP 權限、UI、五平台選擇、下載與驗證、重啟、重複送出、並行 worker、取消和續跑。這些測試不申請真實 GPU、不使用真實帳號金鑰,也不代表五條路線的每個模型已完成實際生成。託管 API 契約與配方格式見 [託管運算設定](hosted-compute.md)。 + +## 目前各路線 + +本機是對照路線。目錄裡的每個工作流都在使用者自己的 ComfyUI 上跑。託管路線的執行時間估計來自使用者自己已完成的本機執行,或由擁有者輸入的估計;儲存庫不附帶測量資料。 + +Google Colab 工作階段:每個已連接的 Google 帳號開一個工作階段(所選等級的 GPU,仍看 Colab 當時有沒有機器)。它用 `scripts/colab_session_overlays/` 裡釘選的獨立 CPython、覆疊與版本啟動環境,上傳輸入、執行工作、送心跳,並在閒置、故障上限或狀態遺失時關閉。Web 沒在跑時,`scripts/colab_lease_sweeper.py` 配合 systemd 使用者單元 `scripts/systemd/web-comfyui-colab-lease-sweeper.service` 與 `.timer`(每 5 分鐘)釋放租約。單元假設簽出位於 `~/Web_Comfyui`(Web 使用其 `.venv`),控制器虛擬環境位於 `~/.local/share/web-comfyui/colab-controller`;路徑不同時請編輯單元。狀態目錄採用 Web 的預設值,可用 `CASTLE_COLAB_ROOT` 覆寫。安裝方式見 [Colab](colab.md)。2026-11-13 已在 A100 工作階段完成真實帳號的舞蹈與影片替換。語音還不能用:語音環境在 Colab 上仍建置失敗,此儲存庫不附帶釘選的 VoxCPM wheel,語音環境以 `voice_env_mismatch` 失敗關閉。 + +AutoIP:派送前向報價 API 取點數報價,完成後結算。2026-11-11 與 2026-11-12 已完成真實帳號的舞蹈生成。和本機的身份相似度依角色而異。七個媒體操作由 CI 的契約與合成測試覆蓋。 + +Comfy Cloud:自備 API 金鑰。同一份圖束經 `/api/v2` 的工作與素材 API 送出,並做 object-info 就緒檢查。2026-11-11 與 2026-11-12 已完成真實帳號的舞蹈工作。API 把結算回報為待處理,介面因此顯示估計,直到供應商回報實際費用。 + +RunningHub:自備會員 API 金鑰。同一張圖經 RunningHub 相容 ComfyUI 的 API 執行(`/proxy-plus/` 的 prompt、object info、上傳、history、queue、interrupt),並查帳戶狀態。2026-11-12 的真實帳號校正產出 8/8。和本機的身份相似度,寫實角色從接近到明顯較低都有,動漫角色會往寫實的臉偏移,因此還沒有和本機對齊。推薦連結見 [RunningHub 推薦連結](runninghub-referral.md)。 + +## 估計與實際費用 + +Comfy Cloud 的估計對照官方點數說明 與定價頁 。RunningHub 用公開工作流作者所說的約 60 POINT/4 分鐘作包絡();這支 API 沒有成文費率。AutoIP 的數字來自分派前的報價 API。 + +圖束路線在有報價之前不算就緒,原因碼是 `parity_probe_quote_required`(`webui/compute_parity/hosted_readiness.py`)。報價來自這位使用者自己的本機同款執行;沒有的話,由擁有者輸入 `runninghub_points` 或 `comfy_cloud_credits`,標成「擁有者估計,非官方報價」。實際費用只在供應商回報後出現。 + +## 供應商主控台 + +每位已登入的使用者在主控台連接自己的金鑰,並選擇要開哪些路線。金鑰留在本機狀態目錄。連線探測不跑工作:RunningHub 查帳戶狀態,AutoIP 查帳戶與餘額;Comfy Cloud 尚無這支探測。 + +離線升級請先停止 Web,先乾跑再套用。 + +`webui/provider_console_migration.py` 不連網。旗標:`--state-root`、`--vault-root`、`--identity-key`、可重複的 `--owner`、`--backup`。`--dry-run`、`--apply`、`--rollback` 互斥;都沒給時走乾跑。`--rollback` 使用 `--backup`。 + +`webui/provider_console_backfill.py` 需要 `--state-root`。加上 `--dry-run` 只報告;不加上就寫入。先乾跑。 + +## 上游來源 / Upstream sources + +下列呼叫只列主機與路徑。查詢字串不列入。RunningHub 把金鑰拼進路徑的寫法不展開,只記 `/proxy-plus/`。 + +### 本機 / Local + +| | | +| --- | --- | +| 官方 | | +| API | 使用者自己的 ComfyUI。預設位址字串是 `127.0.0.1:8188`,另有 `/history/{id}` 與 `/queue` | +| 此程式呼叫 | 沒有固定的公開主機。執行器使用使用者設定的 ComfyUI | + +### Google Colab + +| | | +| --- | --- | +| 官方 | ;方案說明見 [Colab](colab.md) 所引的 Google 頁 | +| 此程式呼叫 | `accounts.google.com/`、`accounts.google.com/.well-known/openid-configuration`、`openidconnect.googleapis.com/v1/userinfo`、`www.googleapis.com/auth/userinfo.profile`、`/auth/userinfo.email`、`/auth/cloud-platform`、`/auth/colaboratory`、`/auth/drive.file`、`sdk.cloud.google.com/applicationdefaultauthcode.html`、執行階段主機 `colab.research.google.com` 或 `*.googleusercontent.com` 的 `/api/contents/{path}` | +| 工作階段安裝 | `pypi.org/simple`、`download.pytorch.org/whl/cu128` | + +釘選的上游(`scripts/colab_session_overlays/`): + +| 專案 | 釘選 | 授權 | +| --- | --- | --- | +| VideoHelperSuite | `4ee72c065db22c9d96c2427954dc69e7b908444b`(`registry.json`) | GPL-3.0(`NOTICE.md`) | +| BreezyVoice | `d592c9d3e8927a0f53f68616387060dcd32a05ea`(`registry.json`) | Apache-2.0(`NOTICE.md`) | +| ComfyUI-KJNodes | `6ab7e8130e449ed2c0037589bcf84146ceb7fc9c`(`comfy-node-supplements.json`) | pin 檔沒有記錄授權或倉庫網址 | +| VoxCPM | `30118a33522ef2d8698fca9bebac7224af242395`(`NOTICE`、`voice-environments.json`) | Apache-2.0。公開樹不附帶該 wheel | +| python-build-standalone | 20260602。`interpreters.comfy`:CPython 3.12.13,`cpython-3.12.13+20260602-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz`,SHA256 `191b5188b42886fb8a14968d714571e8f3d1cef92ac7ad4c7e24cc4d0929b194`。`interpreters.voice`:CPython 3.11.15,`cpython-3.11.15+20260602-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz`,SHA256 `4b79bcb83a22961c8972f8d1d4780bd8925f0b52688d95b090a488f31c8b1139`。發布頁是 `https://github.com/astral-sh/python-build-standalone/releases/download/20260602/`(`voice-environments.json`) | pin 檔沒有另記授權 | + +### AutoIP + +| | | +| --- | --- | +| 官方 | | +| API 文件 | 、金鑰頁 | +| 此程式呼叫 | 基底 `https://autoip.app/api/v1`。POST `/images/text-to-image`、`/images/image-to-image`、`/videos/image-to-video`、`/videos/text-to-video`、`/videos/lip-sync`、`/videos/dance`、`/videos/multi-subject-reference`。GET `/dance-templates`、`/me`、`/credits/balance`、`/pricing`、`/tasks`、`/tasks/{task_uuid}`、`/tasks/{task_uuid}/outputs/{index}` | + +### Comfy Cloud + +| | | +| --- | --- | +| 官方 | ,或已建立的 `https://.run.comfy.app` | +| API 文件 | 、素材上傳說明、點數說明 、定價 | +| 此程式呼叫 | POST `/api/v2/assets`、POST `/api/v2/jobs`、GET `/api/v2/jobs`、GET `/api/v2/jobs/{id}`、GET `/api/object_info`、GET `/api/v2/jobs/{id}/workflow`、POST `/api/v2/jobs/{id}/cancel`、GET `/api/v2/assets/{uuid}/content`、GET `/api/billing/usage/timeseries`。下載主機 `cdn.comfy.org`、`comfy-hub-assets.comfy.org`、`storage.googleapis.com` | + +### RunningHub + +| | | +| --- | --- | +| 官方 | | +| API 文件 | 工作流程部署 `doc-8287465`、錯誤碼 `doc-8287467`、Advanced API `api-425761093`、帳號欄位 `api-425761030`、上傳 `api-425761099`。相容 API 指南 `doc-8287466` | +| 此程式呼叫 | 舊 workflow-ID 路徑:POST `/task/openapi/upload`、`/task/openapi/create`、`/task/openapi/outputs`、`/task/openapi/{operation}`。圖束路徑:POST `www.runninghub.ai/uc/openapi/accountStatus`;`www.runninghub.ai/proxy-plus/` 下的 `/object_info`、`/upload/image`、`/prompt`、`/history`、`/queue`、`/history/{id}`、`/interrupt`、`/view`;POST `www.runninghub.ai/openapi/v2/query`。轉址主機 `rh-images.xiaoyaoyou.com`、`rh-hk-images.xiaoyaoyou.com` | +| 估計出處 | (約 60 POINT/4 分鐘的公開作者包絡,不是這支 API 的費率表) | + diff --git a/docs/getting-started.md b/docs/getting-started.md index c79bfe0..291c2e2 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -21,7 +21,7 @@ Each of the 23 tools, plus character creation, has a prefilled example. Edit the Recorded result examples require actual GPU execution evidence, including the workflow and input/output hashes. Reference illustrations are shown as inputs; unverified features have no result example. The [provenance ledger](../webui/docs/examples/provenance.json) identifies reviewed public assets separately from runtime and personal media. The [site maintenance guide](site.md) explains the publication checks. -The demo hardware selector offers no NVIDIA GPU and common VRAM tiers (8/12/16/24/32 GB), plus two 24 GB cards. Treat its labels as planning estimates, not benchmarks or proven minimums. Two 24 GB cards do not become one 48 GB device. The selector changes only the demo; it never disables or configures your installed app. Choose **AutoIP** to explore all 23 demo forms, while checking real provider support separately. The optional registration link and QR code use referral code `TEDH2FND`; [cloud/demo boundaries and referral disclosure](autoip-cloud-demo.md) explain the distinction. +The demo hardware selector offers no NVIDIA GPU and common VRAM tiers (8/12/16/24/32 GB), plus two 24 GB cards. Treat its labels as planning estimates, not benchmarks or proven minimums. Two 24 GB cards do not become one 48 GB device. The selector changes only the demo; it never disables or configures your installed app. Choose **AutoIP** to explore all 23 demo forms, while checking real provider support separately. The optional registration link and QR code use referral code `TEDH2FND`; [cloud/demo boundaries and referral disclosure](autoip-cloud-demo.md) explain the distinction. The RunningHub referral uses code `qqgzxufp` and `https://www.runninghub.ai?inviteCode=qqgzxufp`; see [docs/runninghub-referral.md](runninghub-referral.md). Most actual generation forms build their own API graphs in Python. A community JSON with a similar title is a separate example, not automatically the form’s template. diff --git a/docs/hosted-compute.md b/docs/hosted-compute.md index 038615b..da651aa 100644 --- a/docs/hosted-compute.md +++ b/docs/hosted-compute.md @@ -1,6 +1,8 @@ # Comfy Cloud 與 RunningHub 託管算力 -研究與協定檢查日期:2026-11-10。這兩個選項使用同一個生產表單,但執行的是管理者明確設定的遠端工作流程。此版本已完成合成素材、注入 HTTP 回應,以及本機 TLS 伺服器的離線驗證;尚未登入真實供應商帳戶、確認付費權益、部署工作流程或執行付費 GPU 工作。既有本機、Colab、AutoIP 的說明見 [算力選擇](compute-platforms.md)。 +研究與協定檢查日期:2026-11-10;路線狀態更新至 2026-11-14。這兩個選項使用同一個生產表單。舊的配方路徑仍執行管理者明確設定的遠端工作流程,並已用合成素材、注入 HTTP 回應與本機 TLS 伺服器做過離線驗證。圖束路線則把與本機相同的圖送出。既有本機、Colab、AutoIP 的說明見 [算力選擇](compute-platforms.md)。 + +真實帳號:Comfy Cloud 的舞蹈工作流已在 2026-11-11 與 2026-11-12 完成。該 API 把結算回報為待處理,所以介面顯示估計,不顯示實際費用,直到供應商回報一筆。RunningHub 在 2026-11-12 的校正產出 8 個成果、8 個都成功。和本機的身份相似度,寫實角色從接近到明顯較低都有,動漫角色會往寫實的臉偏移,因此身份還沒有和本機對齊。 使用「平台設定」為自己的登入身分填入 API key、啟用平台並匯入配方。API key 是只寫欄位,回應只顯示是否已設定;留空保留,明確清除才刪除。各登入身分的配方、憑證、工作與成果分開存放。管理 API 的授權由 WebUI 處理;後端不搜尋其他專案或環境中的憑證。 @@ -10,7 +12,9 @@ RunningHub 使用 `https://www.runninghub.ai`。先在供應商工作台儲存 目前整合的是 RunningHub 的 **workflow-ID REST API**:以 `workflowId` 與 `nodeInfoList` 呼叫 `/task/openapi/create`。官方 Advanced API 雖另有完整圖 JSON 字串的 `workflow` override 欄位,其 schema 仍將 `workflowId` 列為必填;本程式也尚未支援該 inline 欄位。[Advanced API](https://www.runninghub.ai/runninghub-api-doc-en/api-425761093)、[請求 schema](https://www.runninghub.ai/runninghub-api-doc-en/schema-252340070) -RunningHub 另有宣稱相容本機 ComfyUI 的 **Native proxy**,以及不需要 workflow ID、使用個別模型端點的 **Standard Model API**;兩者目前都未整合到本介面。Standard Model API 官方要求 Enterprise-Shared key。它們的模型、節點、輸入控制與計費需分別確認,不能視為本目錄原工作流程已可執行,也不能由帳號查詢成功推定功能可用。[Native proxy 指南](https://www.runninghub.ai/runninghub-api-doc-en/doc-8287466)、[API 類型與資格](https://www.runninghub.ai/runninghub-api-doc-en/doc-8287463)、[Standard Model 端點範例](https://www.runninghub.ai/runninghub-api-doc-en/api-448184514) +RunningHub 的 **ComfyUI 相容 API** 已接入:同一張圖經 `https://www.runninghub.ai/proxy-plus/` 的 prompt、object info、上傳、history、queue 與 interrupt 送出,並另查帳戶狀態。這取代「Native proxy 尚未整合」的舊說明。不需要 workflow ID、改走個別模型端點的 **Standard Model API** 仍未整合;官方要求 Enterprise-Shared key。它的模型、節點、輸入與計費要分開確認,不能把帳戶查詢成功當成該 API 已可執行。[Native proxy 指南](https://www.runninghub.ai/runninghub-api-doc-en/doc-8287466)、[API 類型與資格](https://www.runninghub.ai/runninghub-api-doc-en/doc-8287463)、[Standard Model 端點範例](https://www.runninghub.ai/runninghub-api-doc-en/api-448184514) + +Comfy Cloud 的圖束走 `/api/v2` 的工作與素材 API,並以 object info 做就緒檢查。兩邊都要先有報價,路線才算就緒(`parity_probe_quote_required`):報價來自這位使用者自己跑過的本機同款工作流,或由擁有者輸入 `comfy_cloud_credits`/`runninghub_points`,後者標成「擁有者估計,非官方報價」。Comfy Cloud 的估計對照官方點數說明與定價頁;RunningHub 用公開工作流作者所說的約 60 POINT/4 分鐘作包絡,這支 API 沒有成文費率。實際費用只在供應商回報後出現。細節與上游表見 [運算平台](compute-platforms.md)。 ## 配方與映射 diff --git a/docs/runninghub-referral.md b/docs/runninghub-referral.md new file mode 100644 index 0000000..e44a7ec --- /dev/null +++ b/docs/runninghub-referral.md @@ -0,0 +1,21 @@ +# RunningHub 推薦連結 / Referral link + +**推廣揭露:以下連結與 QR code 使用推薦碼 `qqgzxufp`,屬於聯盟推薦入口;推薦方可能獲得獎勵。** 本頁不承諾折扣、贈點或費用不變。服務費用、點數與優惠以 RunningHub 當下公告為準。 + +[透過推薦連結註冊 RunningHub](https://www.runninghub.ai?inviteCode=qqgzxufp) + +![RunningHub 推薦註冊 QR code;推薦碼 qqgzxufp](../webui/docs/runninghub-referral.svg) + +QR code 與上方連結編碼相同的完整網址 `https://www.runninghub.ai?inviteCode=qqgzxufp`。SVG 使用原生向量圖形,沒有腳本、外部圖片、追蹤像素或自動跳轉。此檔以 segno 1.6.6 產生:`make_qr(url, error='m', boost_error=False)`,再 `save(kind='svg', scale=1, border=4, unit='mm', xmldecl=False, svgns=True)`,標題為 “RunningHub registration referral QR code”,說明為掃描後開啟帶推薦碼 `qqgzxufp` 的註冊頁、且該碼是聯盟推薦而非 API 金鑰;寫出後在根 `` 加上 `role="img"`。相同參數可重現此圖。 + +RunningHub 運算路線如何送出同一張圖、如何檢查帳戶,見 [託管運算](hosted-compute.md)。 + +## English + +**Referral disclosure:** the registration link and QR code contain affiliate referral code `qqgzxufp`. The referrer may receive a reward. No discount or credit offer is promised. Service fees, credits and offers are determined by RunningHub’s current terms. + +[Register for RunningHub via the referral link](https://www.runninghub.ai?inviteCode=qqgzxufp) + +The QR code encodes that same URL. It is native vector geometry: no script, no external image, no tracking pixel and no automatic redirect. It was generated with segno 1.6.6: `make_qr(url, error='m', boost_error=False)`, then `save(kind='svg', scale=1, border=4, unit='mm', xmldecl=False, svgns=True)`, with the title “RunningHub registration referral QR code” and a description that names referral code `qqgzxufp` and states it is an affiliate referral, not an API key. `role="img"` is set on the root ``. Those parameters reproduce the file. + +How the RunningHub lane submits the same graph and checks the account is documented in [hosted compute](hosted-compute.md). diff --git a/docs/site.md b/docs/site.md index 0d79873..780e1cb 100644 --- a/docs/site.md +++ b/docs/site.md @@ -10,7 +10,7 @@ 23 項工具與建立角色都保留預填表單與說明,每個工具都有可體驗的結果。已實跑的工具顯示對應紀錄;其餘顯示「預製介面範例 · 非此工作流實測」,清楚標記素材真正的來源引擎。預製範例不證明所選工作流已執行,也不代表其品質。修改提示詞或選項只用來熟悉介面,不會重新生成。 -按下生成前只在上傳區顯示參考素材,結果區保持隱藏;重設或更換參考檔案會清除舊結果。指令改圖在生成後並排顯示青綠白原隊服與紅色上衣、深藍短褲的實測成品,清楚標示修改前後。 +按下生成前只在上傳區顯示參考素材,結果區保持隱藏;重設或更換參考檔案會清除舊結果。指令改圖在生成後並排顯示青綠白原隊服與紅色上衣、深藍短褲的實測成品,清楚標示修改前後。工具選單的「AI 指令改圖」開啟 Qwen 2.1 表單,其預製範例沿用這組 Flux Kontext 實跑的前後圖片並註明來源;Flux Kontext 表單不在選單中,實跑紀錄可從直接路徑 `#/studio/img2img` 開啟。示範頁的「AI 跳舞影片」表單保留動作影片上傳欄,用來顯示實測使用的動作影片;安裝後的 WebUI 在同一位置改用舞蹈模板選擇器,其中「使用自己的影片」可上傳檔案。 文生圖與其他已實跑的範例按下生成後,會先顯示約 2.4 秒的百分比進度,再開啟成果;進度明確標為模擬,不代表即時 GPU 狀態。系統設定減少動態效果時會快速完成。參考圖融合改用 SAM3 分割原人物,再合成夜間球場背景,保留人物原貌;[實際模型、節點與像素比對](subject-blend.md) 有獨立 GPU 紀錄。此合成不會自動補光或新增陰影。 @@ -30,7 +30,7 @@ 硬體選單提供無 NVIDIA GPU、8/12/16/24/32 GB,以及雙 24 GB 等規劃級距。顯存需求是依預設 builder 整理的估計,不是偵測結果、最低需求實測或效能基準;解析度、精度、影格數、參考素材、卸載方式及系統記憶體都會影響實際需求。這些 builder 沒有自動跨卡切分模型,雙 24 GB 以單卡 24 GB 計,不加總成 48 GB。 -選擇只影響靜態示範中的操作提示與範例可用性,不修改安裝後 WebUI 的設定、不啟用原本停用的 API,也不因選擇無 GPU 而停用使用者的本機服務。**AutoIP** 選項開放全部 23 項示範表單供探索;不代表供應商已支援每個本機工作流、節點或訓練器。實際雲端能力與目前七項已實作 API 整合分開核對。首頁的選用註冊連結與 QR code 使用聯盟推薦碼 `TEDH2FND`,詳見 [服務界線與推薦揭露](autoip-cloud-demo.md)。 +選擇只影響靜態示範中的操作提示與範例可用性,不修改安裝後 WebUI 的設定、不啟用原本停用的 API,也不因選擇無 GPU 而停用使用者的本機服務。**AutoIP** 選項開放全部 23 項示範表單供探索;不代表供應商已支援每個本機工作流、節點或訓練器。實際雲端能力與目前七項已實作 API 整合分開核對。首頁的選用註冊連結與 QR code 使用聯盟推薦碼 `TEDH2FND`,詳見 [服務界線與推薦揭露](autoip-cloud-demo.md)。RunningHub 卡片使用推薦碼 `qqgzxufp` 與連結 `https://www.runninghub.ai?inviteCode=qqgzxufp`,見 [RunningHub 推薦連結](runninghub-referral.md)。 ## 本機預覽 @@ -94,3 +94,20 @@ python3 scripts/replay_recorded_demo.py --run --input-dir ~/comfyui/inp ``` 預設連線為 `http://127.0.0.1:8188`;`--comfy-url` 只接受數字形式的 HTTP loopback 位址,不接受帳密、外部位址或重新導向。核准素材會複製至指定目錄中的 `web-demo-replay/`,遇到同名但不同內容的檔案會停止。腳本只回報提交取得的 `prompt_id`,完成與否請在 ComfyUI 查看;它不宣稱佇列提交就是生成成功。重跑前會確認輸入雜湊與原始執行一致;成果可能轉成公開用格式,與 ComfyUI 原始輸出分別記錄雜湊。即使使用同一份輸入,重跑結果也不保證逐像素相同。模型與節點版本、執行硬體也可能影響結果。 + +## Demo compute screens / 示範運算畫面 + +`/demo/` also displays the per-form execution chooser, all five compute lanes and their available-feature conditions, multi-step production, Google Colab accounts, and the resource provider console. These are read-only screens with canned empty-state responses: nothing connects, credential inputs are disabled, and settings are never saved. Action buttons explain that the operation requires your own installed WebUI. This is interface coverage, not a verified compute or GPU run. + +`/demo/` 也展示表單的執行位置、五個運算平台與可用條件、多步製作、Google Colab 帳號及資源平台管理畫面。畫面使用固定的空白狀態資料,不連線、不接受金鑰,也不保存設定;操作按鈕會提示改用自行安裝的 WebUI。這是介面展示,不代表已驗證運算或 GPU 生成。 + +Regenerate with the WebUI Python dependencies installed / 安裝 WebUI Python 相依套件後重新產生: + +```bash +python3 scripts/record_demo_compute.py +python3 scripts/build_docs.py +``` + +The recorder starts the public server on `127.0.0.1` in a fresh temporary state under a temporary home directory, ignores `.env` and inherited provider configuration, completes local password setup and login, and blocks outgoing server connections. It replaces only the server's built-in local identity with `demo@example.invalid` (display name `Demo`), normalizes volatile timestamps/IDs, and rejects other e-mails, filesystem paths and credential-shaped values before writing `webui/docs/demo-compute.json`. Review that file before committing it. The build embeds it in `app-guide.json`; opening compute screens adds no native API requests. + +錄製器只啟動全新暫存狀態與暫存家目錄的本機服務,不讀取 `.env` 或繼承平台設定,完成本機密碼設定與登入後擷取回應,並阻止服務對外連線。僅將內建本機身份替換為 `demo@example.invalid`(名稱 `Demo`),固定時間與產生的識別碼;其他信箱、檔案絕對路徑或憑證樣式內容都會使錄製失敗。提交前請審查 `webui/docs/demo-compute.json`。建置時資料嵌入 `app-guide.json`,開啟運算畫面不會增加原生 API 請求。 diff --git a/docs/workflow-audit/README.md b/docs/workflow-audit/README.md index fa0b817..57c7ad2 100644 --- a/docs/workflow-audit/README.md +++ b/docs/workflow-audit/README.md @@ -1,3 +1,6 @@ +> 歷史快照(2026-11-10,對應 95e2079);目前各運算平台狀態見 `docs/compute-platforms.md`。 +> Historical snapshot (2026-11-10, commit 95e2079). Current compute-platform status is in `docs/compute-platforms.md`. + # 上游工作流完整稽核 這份稽核逐一研究兩個上游來源的工作流、模型與節點、輸入/輸出、授權、公開版本對應位置,以及尚未完成的整合。**目錄收錄、JSON 靜態檢查、原生編輯器載入、表單/執行器串接及實際 GPU 驗證,是不同階段。這兩批上游圖檔的實際 GPU 驗證數為 0。** diff --git a/docs/workflow-audit/h3-colab-study.md b/docs/workflow-audit/h3-colab-study.md index 86df670..bd39fbb 100644 --- a/docs/workflow-audit/h3-colab-study.md +++ b/docs/workflow-audit/h3-colab-study.md @@ -1,3 +1,6 @@ +> 歷史快照(2026-11-10,對應 95e2079);目前各運算平台狀態見 `docs/compute-platforms.md`。 +> Historical snapshot (2026-11-10, commit 95e2079). Current compute-platform status is in `docs/compute-platforms.md`. + # H3 Colab 完整來源研究與整合設計 研究日期:**2026-11-10**。範圍包括 `dseditor/h3-colab-skill` 的全部追蹤檔案、三份相關 Colab 筆記本、Google 官方 CLI、必要節點、模型中繼資料與授權,以及 Web ComfyUI 的傳輸、恢復、取消與費用控制設計。**尚未存取真實 Google 帳號、驗證訂閱餘額、申請 GPU 或完成 Colab 生成。** 後文的來源檢查、離線契約測試及 SDK 匯入檢查,不構成實際 GPU 執行證據。 diff --git a/docs/workflow-audit/review-20261110.md b/docs/workflow-audit/review-20261110.md index 10570b4..8a03095 100644 --- a/docs/workflow-audit/review-20261110.md +++ b/docs/workflow-audit/review-20261110.md @@ -1,3 +1,6 @@ +> 歷史快照(2026-11-10,對應 95e2079);目前各運算平台狀態見 `docs/compute-platforms.md`。 +> Historical snapshot (2026-11-10, commit 95e2079). Current compute-platform status is in `docs/compute-platforms.md`. + # 2026-11-10 工作流整合重查 本次以 **233 個目錄項目的固定版本原始 JSON**,逐項檢查來源雜湊、圖形詳情、啟用節點、相依檢查,以及匯入政策。另以假的 ComfyUI `/object_info` 與 `/userdata` 回應,覆蓋公開工作流庫 **248 個項目**的下載、原生編輯器匯入與重複匯入。這是程式內的整合測試,未操作真實 ComfyUI 編輯器,也未執行上游程式或生成圖像。**這批上游圖的本次實際 GPU 驗證數為 0**。 diff --git a/docs/workflow-audit/templates-audit-20261110.md b/docs/workflow-audit/templates-audit-20261110.md index c011401..502b029 100644 --- a/docs/workflow-audit/templates-audit-20261110.md +++ b/docs/workflow-audit/templates-audit-20261110.md @@ -1,3 +1,6 @@ +> 歷史快照(2026-11-10,對應 95e2079);目前各運算平台狀態見 `docs/compute-platforms.md`。 +> Historical snapshot (2026-11-10, commit 95e2079). Current compute-platform status is in `docs/compute-platforms.md`. + # ComfyUI-Templates:完整整合稽核 — 2026-11-10 > **歷史基準報告:** 本報告比較的是公開版本 `95e2079ed3ae47f76ff67948f80673f410abd407`,不是後續修正後的即時狀態。新修正、測試與尚未完成的執行驗證請見 [稽核索引](README.md)。上游工作流實際 GPU 驗證數仍為 **0**。 diff --git a/docs/workflow-audit/workflows-audit-20261110.md b/docs/workflow-audit/workflows-audit-20261110.md index 346ef99..8f68f12 100644 --- a/docs/workflow-audit/workflows-audit-20261110.md +++ b/docs/workflow-audit/workflows-audit-20261110.md @@ -1,3 +1,6 @@ +> 歷史快照(2026-11-10,對應 95e2079);目前各運算平台狀態見 `docs/compute-platforms.md`。 +> Historical snapshot (2026-11-10, commit 95e2079). Current compute-platform status is in `docs/compute-platforms.md`. + # dseditor ComfyuiWorkflows:完整來源與公開應用程式稽核 > **歷史基準報告:** 本報告比較的是公開版本 `95e2079ed3ae47f76ff67948f80673f410abd407`,不是後續修正後的即時狀態。新修正、測試與尚未完成的執行驗證請見 [稽核索引](README.md)。上游工作流實際 GPU 驗證數仍為 **0**。 diff --git a/manifests/app_guides/catalog.json b/manifests/app_guides/catalog.json index 6f76b51..29c4be5 100644 --- a/manifests/app_guides/catalog.json +++ b/manifests/app_guides/catalog.json @@ -82,22 +82,32 @@ }, "character-angles": { "source": "webui/server.py", - "symbol": "instantid_prompt", - "summary": "SDXL + InstantID 將真人正臉特徵與 ControlNet 條件用於候選肖像生成。", + "symbol": "qwen21_angles_prompt", + "source_files": [ + "webui/qwen_image21.py" + ], + "summary": "Qwen-Image 2.1 指令改圖:以同一張真人臉照片逐張生成不同朝向的半身肖像候選,指令要求保留原圖身份與色彩。", "steps": [ - "準備單一、清楚、近正面的真人臉照片。", - "InsightFace 分析臉部;InstantID 與 ControlNet 將參考特徵加入 SDXL。", - "依場景/角度描述採樣候選圖,使用 checkpoint 內附 VAE。" + "上傳單一、清楚、近正面的真人臉照片,輸入場景/角度描述與候選張數(1–6)。", + "每張候選都以原始照片為 ,再加上一個固定視角,依序為:左朝向三分之二側臉、右朝向三分之二側臉、正面、左側輪廓、右側輪廓、正面微抬頭(鏡頭略低於視線)。", + "每張以 1024 解析度設定分別採樣、解碼並儲存,種子逐張加 1;不會把上一張生成圖當成下一張的參考。" ], "techniques": [ - "InstantID", - "InsightFace", - "ControlNet", - "SDXL" + "Qwen-Image 2.1", + "TextEncodeQwenImage21", + "圖文條件", + "VAE 解碼" ], "requirements": [ - "動漫、插畫、多人或遮擋臉不適用;需 antelopev2 模型目錄。" - ] + "只接受單一、清楚、近正面的真人臉照片;動漫角色、插畫、多人照與遮擋臉孔不適用。", + "需要支援 TextEncodeQwenImage21 的 ComfyUI 版本及對應權重;模型不隨 repo 發布。", + "寫真候選不保證臉部完全一致,請比較原始參考。" + ], + "model_directories": { + "qwen_image_2.1_int8_convrot.safetensors": "diffusion_models", + "qwen3vl_8b_int8_convrot.safetensors": "text_encoders", + "qwen_image_2.1_vae_bf16.safetensors": "vae" + } }, "clipmode-character-photoshoot": { "source": "webui/server.py", diff --git a/manifests/app_guides/en.json b/manifests/app_guides/en.json index 7013775..d238312 100644 --- a/manifests/app_guides/en.json +++ b/manifests/app_guides/en.json @@ -28,11 +28,12 @@ "每張圖依序加入 IPAdapterAdvanced;採樣後用 checkpoint 內附 VAE 解碼。": "Chain an IPAdapterAdvanced node for each image; after sampling, decode with the checkpoint's bundled VAE.", "IPAdapter 參考條件串接": "Chained IPAdapter reference conditioning", "不能保證保留同一張臉、服裝或人物身分;不是精準換裝入口。": "The same face, clothing, or identity is not guaranteed. This is not a precise clothing-replacement tool.", - "SDXL + InstantID 將真人正臉特徵與 ControlNet 條件用於候選肖像生成。": "SDXL + InstantID uses a real person's frontal facial features and ControlNet conditioning to generate portrait candidates.", - "準備單一、清楚、近正面的真人臉照片。": "Prepare a clear, nearly frontal photo of a single real person's face.", - "InsightFace 分析臉部;InstantID 與 ControlNet 將參考特徵加入 SDXL。": "InsightFace analyzes the face; InstantID and ControlNet add reference features to SDXL.", - "依場景/角度描述採樣候選圖,使用 checkpoint 內附 VAE。": "Sample candidates from the scene/angle description, using the checkpoint's bundled VAE.", - "動漫、插畫、多人或遮擋臉不適用;需 antelopev2 模型目錄。": "Not suitable for anime, illustrations, multiple people, or obscured faces. Requires the antelopev2 model directory.", + "Qwen-Image 2.1 指令改圖:以同一張真人臉照片逐張生成不同朝向的半身肖像候選,指令要求保留原圖身份與色彩。": "Qwen-Image 2.1 instruction editing: from one real face photo, each candidate is generated separately as a half-body portrait at a different head angle; the instruction asks to keep the original identity and colors.", + "上傳單一、清楚、近正面的真人臉照片,輸入場景/角度描述與候選張數(1–6)。": "Upload one clear, near-frontal photo of a real person's face, then enter the scene/angle description and the number of candidates (1–6).", + "每張候選都以原始照片為 ,再加上一個固定視角,依序為:左朝向三分之二側臉、右朝向三分之二側臉、正面、左側輪廓、右側輪廓、正面微抬頭(鏡頭略低於視線)。": "Every candidate uses the original photo as plus one fixed view, in this order: left-facing three-quarter, right-facing three-quarter, frontal, left profile, right profile, frontal with the head slightly raised (camera just below eye level).", + "每張以 1024 解析度設定分別採樣、解碼並儲存,種子逐張加 1;不會把上一張生成圖當成下一張的參考。": "Each candidate is sampled at the 1024 resolution setting, decoded and saved on its own, with the seed increased by 1 per candidate; a generated image is never used as the reference for the next one.", + "只接受單一、清楚、近正面的真人臉照片;動漫角色、插畫、多人照與遮擋臉孔不適用。": "Only one clear, near-frontal photo of a real person's face is accepted; anime characters, illustrations, group photos and covered faces are not suitable.", + "寫真候選不保證臉部完全一致,請比較原始參考。": "Portrait candidates do not guarantee identical facial identity; compare the original reference.", "角色入口的 SDXL Beta 寫真:真人使用角色原圖做 InstantID 與 ReActor,動漫使用已綁定的角色 LoRA。": "The character page's SDXL Beta photoshoot uses the original character image with InstantID and ReActor for realistic characters, or a bound character LoRA for anime characters.", "由角色頁選擇角色、場景、比例及種子。": "Choose the character, scene, aspect ratio, and seed on the character page.", "伺服器綁定身份圖片與模型;真人走 InstantID / ReActor,動漫走既有角色 LoRA。": "The server binds identity images and models. Realistic characters use InstantID / ReActor; anime characters use their existing character LoRA.", diff --git a/scripts/app_graph_catalog.py b/scripts/app_graph_catalog.py index 29589d8..e234966 100644 --- a/scripts/app_graph_catalog.py +++ b/scripts/app_graph_catalog.py @@ -172,7 +172,7 @@ def ip_blend(source): return diagram(raw,'webui/server.py#'+symbol,['代表分支:兩張參考圖,依實際迴圈建立兩個 IPAdapterAdvanced;第三張會再串接一組。']) -def qwen(source,edit): +def qwen(source,edit,path='webui/qwen_image21.py#compile_prompt',notes=None): raw,fn,scope=primary_graph(source,'compile_prompt') scope.update(edit=edit,node_id='11',i=1) branch=next(n for n in fn.body if isinstance(n,ast.If) and isinstance(n.test,ast.Name) and n.test.id=='edit') @@ -197,11 +197,22 @@ def qwen(source,edit): id=source.value(target.value.slice,scope) if id in raw: for keyword in stmt.value.keywords:raw[id]['inputs'][keyword.arg]=source.value(keyword.value,scope) - return diagram(raw,'webui/qwen_image21.py#compile_prompt',[ + return diagram(raw,path,notes if notes is not None else [ '代表分支:一張輸入圖片;實際改圖支援依序加入最多四張。' if edit else '文生圖分支:ResolutionSelector 決定空白 latent 尺寸。', '這是應用程式 builder 的連線,並非官方參考 JSON 的逐字複本。']) +def angles_delegation(source): + """Check, without running it, that each angle candidate is one Qwen edit of the face upload.""" + fn=source.function('qwen21_angles_prompt') + calls=[n for n in ast.walk(fn) if isinstance(n,ast.Call) and isinstance(n.func,ast.Name) and n.func.id=='compile_qwen21_prompt'] + def edit_call(call): + keywords={k.arg:k.value for k in call.keywords} + return (len(call.args)==2 and isinstance(keywords.get('edit'),ast.Constant) and keywords['edit'].value is True + and ast.unparse(call.args[1])=="{'image': face}") + if len(calls)!=1 or not edit_call(calls[0]):raise ValueError('character-angles Qwen edit delegation changed') + + def h3_first_frame(source,fn,raw,conditioning): """Read the reviewed keyframe loop at index zero, without executing it.""" def matches(node,expression): @@ -347,6 +358,12 @@ def graphs(root,app_catalog): id=feature['id'] if id in result:continue if id.startswith('h3-'):result[id]=h3(native,id);continue + if id=='character-angles': + angles_delegation(server) + result[id]=qwen(qwen_source,True,'webui/server.py#qwen21_angles_prompt',[ + '代表一張候選:每張候選各自以原始照片執行一次 Qwen 2.1 改圖,並加上自己的固定視角指令;不會串接前一張生成圖。', + '這是應用程式 builder 的連線,並非官方參考 JSON 的逐字複本。']) + continue if id in {'qwen21-edit','qwen21-text2img'}:result[id]=qwen(qwen_source,id=='qwen21-edit');continue symbol=guides[id].get('builder_symbol') raw,_,_=primary_graph(server,symbol,largest=id=='clipmode-character-photoshoot',scope={'model_ref':['1',0]} if id=='text2img' else None) @@ -366,6 +383,7 @@ def graphs(root,app_catalog): '顯示預設羽化關閉的九節點流程;開啟羽化會加入五個節點,混合邊緣並以內縮遮罩還原主體內部像素。': 'Shows the default nine-node graph with feathering off. Enabling feathering adds five nodes, blends edge pixels and restores the subject interior using an eroded mask.', '代表分支:兩張參考圖,依實際迴圈建立兩個 IPAdapterAdvanced;第三張會再串接一組。': 'Representative branch: two references create two chained IPAdapterAdvanced nodes using the actual loop. A third reference adds another pair.', '代表分支:一張輸入圖片;實際改圖支援依序加入最多四張。': 'Representative branch: one input image. Editing supports up to four images in sequence.', + '代表一張候選:每張候選各自以原始照片執行一次 Qwen 2.1 改圖,並加上自己的固定視角指令;不會串接前一張生成圖。': 'Shows one candidate: each candidate runs one Qwen 2.1 edit on the original photo with its own fixed view instruction. A generated image is never chained into the next.', '文生圖分支:ResolutionSelector 決定空白 latent 尺寸。': 'Text-to-image branch: ResolutionSelector determines the empty latent dimensions.', '這是應用程式 builder 的連線,並非官方參考 JSON 的逐字複本。': 'These are application builder connections, not a verbatim copy of the official reference JSON.', 'Stock 代表分支;Sage/EasyCache/TeaCache 的可選包裝不在此圖。': 'Representative Stock branch. Optional Sage, EasyCache and TeaCache wrappers are not shown.', diff --git a/scripts/build_docs.py b/scripts/build_docs.py index d673e79..5fdea59 100644 --- a/scripts/build_docs.py +++ b/scripts/build_docs.py @@ -28,6 +28,7 @@ ASSETS = { 'webui/static/colab.js': 'assets/colab.js', 'webui/static/colab.css': 'assets/colab.css', + 'webui/static/compute-parity.js': 'assets/compute-parity.js', **{'webui/static/'+name+suffix: 'assets/'+name+suffix for name in ('compute-placement', 'compute-settings', 'compute-pipeline') for suffix in ('.js', '.css')}, @@ -37,6 +38,7 @@ 'webui/docs/hardware.js': 'assets/hardware.js', 'webui/docs/hardware.css': 'assets/hardware.css', 'webui/docs/autoip-referral.svg': 'assets/autoip-referral.svg', + 'webui/docs/runninghub-referral.svg': 'assets/runninghub-referral.svg', 'webui/docs/docs.css': 'assets/docs.css', 'webui/docs/docs.js': 'assets/docs.js', 'webui/docs/explorers.js': 'assets/explorers.js', @@ -126,9 +128,11 @@ def site_html(root): html = html.replace('/static/', '../assets/') html = html.replace('Web ComfyUI', 'Web ComfyUI · 介面示範') html = html.replace('class="auth-gate"', 'class="auth-gate hidden"') - policy = "default-src 'self'; script-src 'self'; style-src 'self'; connect-src 'self'; img-src 'self' data: blob:; media-src 'self' blob:; object-src 'none'; base-uri 'self'; form-action 'none'" + # The app uses style attributes for its existing controls. Permit those in + # the demo while keeping scripts, stylesheets and network sources restricted. + policy = "default-src 'self'; script-src 'self'; style-src 'self'; style-src-attr 'unsafe-inline'; connect-src 'self'; img-src 'self' data: blob:; media-src 'self' blob:; object-src 'none'; base-uri 'self'; form-action 'none'" html = html.replace('', '\n\n\n\n') - banner = '''''' + banner = '''''' html = html.replace('', '' + banner, 1) html = html.replace('\n \n \n \n \n - + - - - - + + + + + diff --git a/webui/static/translations-en.js b/webui/static/translations-en.js index f21a8ff..7e43703 100644 --- a/webui/static/translations-en.js +++ b/webui/static/translations-en.js @@ -177,6 +177,7 @@ AI 指令改圖|Instruction-based image editing 動漫場景寫真|Anime scene composition AI 參考圖融合|Reference image blending 真人臉參考肖像|Face-reference portraits +Qwen 2.1 · 保留原圖身份與色彩的多角度肖像|Qwen 2.1 · Multi-angle portraits that keep the original identity and colors 角色身份寫真|Character identity portraits AI 圖生影片|Image to video 首尾幀影片|First/last-frame video @@ -200,6 +201,7 @@ Qwen 2.1 指令改圖|Qwen 2.1 image editing 聲音生成 · 簡報配音 · 聲音庫|Speech generation · Presentation voiceover · Voice library Flux Kontext 重新生成式編輯|Regenerative editing with Flux Kontext 角色原圖合成 · 不會轉成真人|Original character compositing · Keeps the illustrated style +角色原圖|Original character image 保留人物原貌 · AI 去背合成|Keep the original subject · AI background compositing 人物原圖|Original subject image 背景參考圖|Background reference @@ -516,6 +518,7 @@ API 金鑰|API key 上傳一段目標影片與一張來源臉部照片,ReActor 會逐格把影片中的臉換成來源臉,可選 GFPGAN/CodeFormer 修復臉部,輸出為動畫 webp。|Upload a target video and source face. ReActor swaps faces frame by frame, with optional GFPGAN or CodeFormer restoration, and outputs animated WebP. 依圖片 1 的比例輸出;參考圖請按順序加入,指令以 至 指定。|Output uses image 1's aspect ratio. Add references in sequence and refer to them as through . 只接受單一、清楚、近正面的真人臉照片;動漫角色、插畫、多人照與遮擋臉孔不適用。|Use one clear, nearly frontal real face. Anime, illustrations, group photos and obscured faces are not supported. +只接受單一、清楚、近正面的真人臉照片;動漫角色、插畫、多人照與遮擋臉孔不適用。保留原圖色彩,逐張生成不同朝向的候選肖像。|Use one clear, nearly frontal real face. Anime, illustrations, group photos and obscured faces are not supported. Keeps the original colors and generates each candidate portrait at a different facing. 可直接使用最多 9 圖、3 影片、3 音訊;六段提示詞與上傳 reference tag 必須一致。|Use up to 9 images, 3 videos and 3 audio clips. The six prompt sections must match the uploaded reference tags. 可直接描述中文海報與排版;PNG 輸出支援透明背景。|Describe Chinese posters and typography directly. PNG output supports transparent backgrounds. 可直接測試,不綁角色;Stock、Sage、EasyCache、TeaCache 都是明確選項。|Use without a bound character. Stock, Sage, EasyCache and TeaCache are explicit choices. @@ -863,6 +866,7 @@ Drive 狀態讀取失敗:此資料由安裝後的本機服務提供;說明 目標平台|Target platform 至少選一個參考|Select at least one reference +動作參考|Motion reference `; const map = Object.fromEntries(pairs.trim().split('\n').map(line => {const i=line.indexOf('|');return [line.slice(0,i),line.slice(i+1)];})); window.WebComfyEnglish = Object.freeze(map); diff --git a/webui/voxcpm_tts.py b/webui/voxcpm_tts.py index ab0873e..13d6880 100644 --- a/webui/voxcpm_tts.py +++ b/webui/voxcpm_tts.py @@ -1024,10 +1024,12 @@ def main() -> int: if accepted_path is None: cleanup_attempts(attempt_paths) best_label = f"{best_similarity:.3f}" if best_similarity >= 0 else "n/a" - raise ValueError( - f"speaker gate failed after {max_attempts} attempts; best similarity {best_label}, " - f"threshold {args.speaker_threshold:.3f}" - ) + from quality_rejection import QualityRejected + rejection=QualityRejected({'stage':'speaker_gate','best_similarity':best_similarity, + 'threshold':args.speaker_threshold,'attempts':len(gate_attempts)}) + diagnostic_path=Path(str(args.sidecar)+'.quality.json') + diagnostic_path.write_text(str(rejection));diagnostic_path.chmod(0o600) + raise rejection os.replace(accepted_path, args.output) cleanup_attempts(attempt_paths, keep=accepted_path)