diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 0a6a353..ec00dc4 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -121,6 +121,8 @@ jobs: node --check webui/static/guide-translations-en.js node --check webui/docs/landing.js node --check webui/docs/hardware.js + node --check webui/docs/demo-drive.js + node --check webui/docs/demo-cases.js - name: Offline JavaScript regressions run: | node scripts/test_compute_r32_poll.cjs @@ -150,4 +152,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 tests/test_provider_console_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_demo_cases_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/.github/workflows/pages.yml b/.github/workflows/pages.yml index 1e89cf8..6846d2b 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -24,7 +24,7 @@ jobs: mkdir -p "$HOME/agent-work/tmp/pytest" docs_test_tmp="$(mktemp -d "$HOME/agent-work/tmp/pytest/docs-ci-XXXXXX")" trap 'rm -rf "$docs_test_tmp"' EXIT - python -m pytest -q --basetemp="$docs_test_tmp/bt" tests/test_docs_site.py tests/test_demo_publication.py scripts/test_demo_catalog.py + python -m pytest -q --basetemp="$docs_test_tmp/bt" tests/test_docs_site.py tests/test_demo_set.py tests/test_demo_publication.py scripts/test_demo_catalog.py python scripts/build_docs.py python scripts/check_public_release.py --root .site - uses: actions/configure-pages@v5 diff --git a/README.md b/README.md index 23d00bd..465d319 100644 --- a/README.md +++ b/README.md @@ -20,9 +20,9 @@ A local front end for your own ComfyUI: image and video forms, a searchable work The website root introduces the project and installation choices. Its **`./demo/` interactive demo is not a live generation service**: it uses the same interface and forms as the app, with 23 source-backed feature guides. Each tool has two help buttons: **查看流程與模型** explains its actual builder, models and defaults; **查看 ComfyUI 範本與節點** opens its node diagram. Diagrams distinguish actual ComfyUI graph structure from explanatory service-process diagrams. -Try the prefilled forms and use the existing **Generate** button to inspect a recorded example. All 23 tools have a result to explore: recorded workflow results and clearly labeled prepared interface examples. Results stay hidden until Generate is selected; instruction editing then shows a labeled before/after comparison (teal-and-white uniform → red jersey and navy shorts). Character creation shows simulated progress, closes the form and opens a session workspace with your name, description and reference photo. Return to the character list to reopen it or create another. Distinct outfit, portrait-candidate and video panels are labeled prerecorded Qingqing examples; your inputs do not modify them. Characters remain in memory until deletion, clearing or refresh; no database is written and no model is trained. Editing a prompt or choosing a file does not rerun the recorded example. Click or drop a supported local file to preview it in your browser without uploading it. The site does not queue work, run models, or call providers. +The demo is a closed loop: it never reads your files and never generates anything live. Each generation tool opens with a strip of prerecorded cases starring four fictional adult demo characters (two women and two men; two realistic, two anime), with three supporting fictional performers in the source material. Picking a case fills the form, and **Generate (demo)** reveals that case's result after labeled simulated progress. An upload slot opens a simulated demo disk of prepared photos, scenes, videos and voices; the library picker and the listed demo URLs offer the same materials, and dropped files are refused. Picking a different material switches to the case that uses it; a combination that was never run is explained instead of generated. Background replacement shows whole-scene changes: each of the four characters in three scenes, realistic characters with real scenes and anime characters with anime scenes. Character creation accepts only demo character photos and opens a session workspace with that character's cases and voice; characters remain in memory until deletion, clearing or refresh, no database is written and no model is trained. The site does not queue work, run models, upload files or call providers. -Recorded results require execution evidence tied to the correct workflow. Prepared examples identify the engine that actually produced their media and do not claim the displayed workflow was tested. Nine original synthetic voice clips cover five styles, three presentation slides and a synthetic-reference continuation; all were rendered locally with VoxCPM2 on CPU, with no private recordings. The library supports auditioning and selecting voices, and prepared speech forms retain the selected reference. The newly recorded video examples include lip sync, fictional face replacement and a first/last-frame variant; looping is a model-free media operation. [Demo provenance](webui/docs/examples/provenance.json) records the reviewed assets and execution evidence. Publication permits only explicitly pinned bytes and paths; personal/runtime media remains excluded. See [the site guide](docs/site.md). +Recorded cases are actual ComfyUI runs whose execution evidence is tied to the correct workflow. Prepared cases are labeled, name the engine or recorded run that actually produced their media, and do not claim the displayed workflow was tested. Twenty-five original synthetic voice tracks were rendered locally with VoxCPM2 on CPU, with no private recordings: Chinese greetings and cloned-voice continuations for the four demo characters, two English greetings with continuations, a male station announcement, three slides of a mountain-scenery presentation and the earlier set of nine female clips. The voice library lists the demo characters' voices for auditioning and selection. [Demo provenance](webui/docs/examples/provenance.json) records the reviewed assets and execution evidence. Publication permits only explicitly pinned bytes and paths; personal/runtime media remains excluded. See [the site guide](docs/site.md) and [the voice examples](docs/voice-examples.md). The working application runs on **your computer**, with a separately installed ComfyUI. Models, custom nodes, accounts, personal media and API credentials are not bundled. diff --git a/README.zh-TW.md b/README.zh-TW.md index bb81422..a537ae3 100644 --- a/README.zh-TW.md +++ b/README.zh-TW.md @@ -20,13 +20,13 @@ 網站首頁是專案介紹與安裝入口;**`./demo/` 是互動示範,不是實際生成服務**。示範使用與本機 WebUI 相同的介面、導覽與表單。每個工具有兩個說明按鈕:**查看流程與模型** 說明實際組圖程式、模型與預設值;**查看 ComfyUI 範本與節點** 開啟節點圖。圖中會區分可對照的 ComfyUI 圖結構與服務處理流程示意,不把流程示意當成可執行節點圖。 -23 項工具與建立角色都保留預填表單與操作說明。可修改文字,或點選/拖入自己的檔案,只在瀏覽器預覽;23 個工具都有可體驗的成果:實跑紀錄與預製介面範例分別標示,預製範例會註明真正的素材引擎,不冒充所選工作流已實測。成果在按下生成後才出現;指令改圖會並排顯示「青綠白隊服 → 紅上衣、深藍短褲」的修改前後對照。建立角色會顯示模擬進度、關閉表單,進入包含名字、描述與參考照片的暫存工作室;可從角色列表重新開啟或建立第二個角色。換裝、寫真候選與影片各自呈現不同的晴晴預製實測範例,自選照片不會套用到成果。角色只留在記憶體,刪除、清除或重新整理後移除,不寫入資料庫或訓練模型。修改輸入不會重新生成,也不會改變固定的實跑紀錄。網站不排入生成佇列、不執行 GPU 模型生成、不上傳素材、不呼叫供應商 API。 +示範是封閉的閉環:不讀取你的檔案,也不即時生成。每個生成工具的表單上方有一排預跑案例,主角是四位虛構成年示範角色(兩女兩男;兩位寫實、兩位動漫風格),素材中另有三位虛構配角。選擇案例會填好表單,按 **開始生成(示範)** 後,經過標明為模擬的進度顯示該案例的成果。上傳區會開啟模擬的示範硬碟,裡面已有照片、場景、影片與聲音;素材庫與列出的示範網址也只提供同一批素材,拖放的檔案一律不接受。改選其他素材會切換到使用該素材的案例;沒有跑過的組合只說明原因,不假裝生成。換背景是整個場景的大幅改變:四位角色各換三個場景,寫實角色配真實場景、動漫角色配動漫場景。建立角色只接受示範角色的照片,完成後進入列出該角色案例與聲音的暫存工作室;角色只留在記憶體,刪除、清除或重新整理後移除,不寫入資料庫或訓練模型。網站不排入生成佇列、不執行 GPU 模型生成、不上傳素材、不呼叫供應商 API。 -成果範例必須來自對應工作流的實際執行,並記錄輸入、不同的輸出、GPU 與執行證據。參考插圖只作為輸入,不充當生成成果;尚未實跑的影片、語音、訓練及其他功能不以替代媒體展示成果。[示範來源紀錄](webui/docs/examples/provenance.json) 保留公開素材與執行證據;發布只開放經審核的指定路徑與固定雜湊,個人與執行期媒體仍不納入。詳見 [文件站說明](docs/site.md)。 +實跑案例是真正的 ComfyUI 執行,執行證據對應正確的工作流,並記錄輸入、輸出、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)。RunningHub 的推薦碼是 `qqgzxufp`,連結為 `https://www.runninghub.ai?inviteCode=qqgzxufp`,揭露見 [RunningHub 推薦連結](docs/runninghub-referral.md)。 -女聲示範包含五種風格、三頁簡報旁白與合成聲音延續,共九段實際音檔;以本機 VoxCPM2 在 CPU 生成,沒有私人錄音或真人聲音參考。聲音庫可試聽、選聲音,再帶入語音示範。另補上實跑對嘴、虛構角色換臉、首尾幀影片及循環處理。詳見[女聲範例與重播方法](docs/voice-examples.md)。 +示範聲音共 25 段原創合成音檔,全部以本機 VoxCPM2 在 CPU 生成,沒有私人錄音或真人聲音參考:四位示範角色的中文問候與聲音延續、兩段英文問候與其延續、男聲車站廣播、三頁山景簡報旁白,以及先前的九段女聲。聲音庫列出示範角色的聲音,可試聽並帶入語音示範。詳見[聲音範例與重播方法](docs/voice-examples.md)。 ## 先準備兩套環境 diff --git a/docs/getting-started.md b/docs/getting-started.md index 291c2e2..dcf99af 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -17,9 +17,9 @@ You have two routes: Before installing models, explore the online **創作** page. Its two help buttons are **查看流程與模型**, for the feature guide, and **查看 ComfyUI 範本與節點**, for the node view. For example, **文生圖** explains the Z-Image Turbo Python builder, its Qwen text encoder, AE and optional DOPSD LoRA. Node views identify actual ComfyUI graph structure separately from service-process illustrations. -Each of the 23 tools, plus character creation, has a prefilled example. Edit the text or click/drop a supported local file to preview your own input in the browser. Press the existing **Generate** button to see a short simulated sequence followed by the fixed prepared result in the form. Nothing is uploaded, queued or sent to a provider. Changed inputs do not generate a different result. +The demo is a closed loop. Each of the 22 generation tools opens with a strip of prerecorded cases; picking a case fills the form and its upload slots, and the existing **Generate** button reveals that case's result after a short, labeled simulated progress. Upload slots open a simulated demo disk of prepared photos, scenes, videos and voices instead of your own files, and dropped files are refused. Picking another material switches to the case that uses it; a combination that was never run is explained instead of generated. Nothing is uploaded, queued or sent to a provider, and edited text or options do not generate a different result. The voice library is an interactive simulation of the same demo voices. -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. +Recorded cases require actual GPU execution evidence, including the workflow and input/output hashes. Prepared cases are labeled and name the engine or recorded run that actually produced their media; they are not evidence that the displayed workflow was tested. 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 RunningHub referral uses code `qqgzxufp` and `https://www.runninghub.ai?inviteCode=qqgzxufp`; see [docs/runninghub-referral.md](runninghub-referral.md). diff --git a/docs/site.md b/docs/site.md index 780e1cb..79f3dc2 100644 --- a/docs/site.md +++ b/docs/site.md @@ -8,21 +8,21 @@ ## 在原有表單體驗範例 -23 項工具與建立角色都保留預填表單與說明,每個工具都有可體驗的結果。已實跑的工具顯示對應紀錄;其餘顯示「預製介面範例 · 非此工作流實測」,清楚標記素材真正的來源引擎。預製範例不證明所選工作流已執行,也不代表其品質。修改提示詞或選項只用來熟悉介面,不會重新生成。 +示範是封閉的閉環:不讀取訪客的檔案,也不即時生成。每個生成工具的表單上方有一排預跑案例,主角是四位虛構成年示範角色(晴晴、志遠、星羽、辰翼;兩女兩男,兩位寫實、兩位動漫風格);動作影片的兩位表演者與換臉用的臉部參考是另外三位虛構配角。選擇案例會填好表單與上傳區,按下生成後顯示該案例的成果。實跑案例顯示真正的工作流紀錄;預製案例另外標示並註明素材真正的來源,不證明所選工作流已執行,也不代表其品質。聲音庫是同一批示範聲音的互動模擬。 -按下生成前只在上傳區顯示參考素材,結果區保持隱藏;重設或更換參考檔案會清除舊結果。指令改圖在生成後並排顯示青綠白原隊服與紅色上衣、深藍短褲的實測成品,清楚標示修改前後。工具選單的「AI 指令改圖」開啟 Qwen 2.1 表單,其預製範例沿用這組 Flux Kontext 實跑的前後圖片並註明來源;Flux Kontext 表單不在選單中,實跑紀錄可從直接路徑 `#/studio/img2img` 開啟。示範頁的「AI 跳舞影片」表單保留動作影片上傳欄,用來顯示實測使用的動作影片;安裝後的 WebUI 在同一位置改用舞蹈模板選擇器,其中「使用自己的影片」可上傳檔案。 +點上傳區會開啟模擬的示範硬碟,裡面已有照片、場景、影片與聲音;「從素材庫選擇」與網址欄也只提供同一批示範素材,拖放的檔案一律不接受。改選其他素材時,表單會切換到使用該素材的案例並顯示提示;沒有預跑過的組合會停用生成按鈕並說明原因,不假裝生成。修改提示詞或選項只用來熟悉介面,不會重新生成。工具選單的「AI 指令改圖」開啟 Qwen 2.1 表單;Flux Kontext 表單不在選單中,可從直接路徑 `#/studio/img2img` 開啟。安裝後的 WebUI 在「AI 跳舞影片」的同一位置改用舞蹈模板選擇器,其中「使用自己的影片」可上傳檔案。 -文生圖與其他已實跑的範例按下生成後,會先顯示約 2.4 秒的百分比進度,再開啟成果;進度明確標為模擬,不代表即時 GPU 狀態。系統設定減少動態效果時會快速完成。參考圖融合改用 SAM3 分割原人物,再合成夜間球場背景,保留人物原貌;[實際模型、節點與像素比對](subject-blend.md) 有獨立 GPU 紀錄。此合成不會自動補光或新增陰影。 +按下生成後會先顯示標明為模擬的百分比進度,再開啟成果;實跑案例的進度長度依實際 GPU 執行時間縮短換算(約 1.5–4 秒),系統設定減少動態效果時會立即完成。換背景的案例是整個場景的大幅改變:四位示範角色各換三個場景,寫實角色配真實場景、動漫角色配動漫場景。參考圖融合以 SAM3 分割原人物再合成到新場景,保留人物原貌,不會自動補光或新增陰影;[實際模型、節點與像素比對](subject-blend.md) 有獨立 GPU 紀錄。 -**建立角色** 是不需要 GPU 的流程模擬。範例資料標明「尚未建立」;填入名字、描述與照片後,模擬進度完成會關閉表單並進入暫存工作室。返回列表可重新開啟角色或建立另一個。工作室分開呈現本次輸入與晴晴的預製換裝、寫真候選及影片成果;自選照片不會套用到這些固定案例,也不保證寫真候選與原圖完全同臉。角色與獨立的本機照片 URL 只保留在頁面記憶體,離開表單不會清除;刪除、清除全部或重新整理後移除。不寫入帳戶或資料庫,不宣稱訓練過模型。 +**建立角色** 是不需要 GPU 的流程模擬。照片只能從示範硬碟選示範角色的照片,其他素材會標明不可用。模擬進度完成後進入暫存工作室,列出與所選照片同一位示範角色的預跑案例與聲音;沒有選照片時會提示先挑一張示範人物照片。返回列表可重新開啟角色或建立另一個。角色只保留在頁面記憶體;刪除、清除全部或重新整理後移除。不寫入帳戶或資料庫,不宣稱訓練過模型。 -點選或拖入支援的檔案,可在瀏覽器預覽自己的圖片、影片或音訊。預覽使用暫時的 blob URL,不上傳、不讀取其他本機檔案,也不寫入帳戶或素材庫。替換、清除或離開表單時會釋放預覽 URL。密碼欄位停用;文件模式的草稿與偏好只放在頁面記憶體。可操作的表單與模擬進度不表示依賴已安裝或 GPU 已完成生成。 +網站不讀取訪客的檔案:點上傳區開啟示範硬碟而不是系統檔案選擇器,拖放只顯示不接受的提示,也不建立 blob URL 或使用 FileReader。本次選過的示範素材與示範成果會列在本分頁的素材庫(`#/manage`),重新整理後清除。密碼欄位停用;文件模式的草稿與偏好只放在頁面記憶體。可操作的表單與模擬進度不表示依賴已安裝或 GPU 已完成生成。 參考素材與實跑成果分開呈現。實跑紀錄包含真正的工作流、輸入/輸出雜湊、時間與硬體;預製介面範例則另外標明,不能當作所選模型的實測證據。單次實跑只證明記錄中的設定成功,不是所有選項或硬體的效能保證。 -女聲使用本機 VoxCPM2 的九段真實合成音訊,包含迎賓、元氣主持、溫柔故事、成熟播報、英文迎賓、三段簡報與合成參考聲音延續。全部為 CPU 執行,未讀取私人錄音;訊號與自動逐字稿檢查有獨立紀錄,沒有宣稱代理已人工試聽。聲音庫可逐一播放、選擇後帶到語音或聲音參考表單;此頁只保留記憶體選擇,不會實際複製使用者音色。逐字稿是實際說出的內容,不因介面切換英文而更換音訊。 +示範聲音共 25 段,全部以本機 VoxCPM2 在 CPU 合成,未讀取私人錄音:四位示範角色的中文問候與聲音延續、兩段英文問候與其延續、男聲車站廣播、三頁山景簡報旁白,以及先前的九段女聲(迎賓、元氣主持、溫柔故事、成熟播報、英文迎賓、三段簡報與合成參考聲音延續)。訊號與自動逐字稿檢查有獨立紀錄,沒有宣稱代理已人工試聽。聲音庫列出示範角色的聲音,可試聽並帶到語音或聲音參考表單;此頁只保留記憶體選擇,不會實際複製使用者音色。逐字稿是實際說出的內容,不因介面切換英文而更換音訊。 -對嘴與虛構角色換臉有新 ComfyUI 執行紀錄;首尾幀採 Wan2.1 I2V 480p 變體,記錄明示它與表單原 SCAIL 預設的差異。循環影片由 VHS 處理,沒有擴散模型。H3、Qwen 與部分企劃入口展示具名替代引擎的預製案例,不冒稱 H3 或 Qwen 產出。 +對嘴、虛構角色換臉、首尾幀與循環影片都有實跑案例。首尾幀採 Wan2.1 I2V 480p 變體,紀錄明示它與表單原 SCAIL 預設的差異,並在工作流內只保留 81 格中的前 77 格,避開最後一段潛空間解出的發白跳格。循環影片由 VHS 處理,沒有擴散模型。Qwen 2.1 文生圖與指令改圖是實跑案例;H3 與部分企劃入口展示具名替代引擎的預製案例,不冒稱 H3 產出。 **工作庫** 則提供獨立的社群流程、參考來源與方法配方。目前公開目錄共 248 項,包含 46 份可下載 JSON(24 份精選社群流程、22 份基礎範例)。大部分創作表單使用 Python 直接組圖;不把名稱相近的社群 JSON 當作該表單的實際模板。 @@ -77,7 +77,7 @@ pytest-disktmp uv run --python 3.12 --with pytest --with Pillow --with playwrigh [來源紀錄](../webui/docs/examples/provenance.json) 包含工作流的 `runs` 與獨立語音引擎的 `audio_runs`。建置會從這兩個陣列產生 `execution-summary.json`,並放入 `app-guide.json` 的 `execution_summary`:分別列出紀錄數、成功執行數與實際裝置分類,避免把 CPU 語音算成 GPU 工作流,或把預製介面範例算成已驗證功能。可在建置目錄開啟該 JSON 查看本次發布的數字;本文件不再手動維護次數。實際模型與設定以各筆紀錄中的工作流為準;單次範例不代表全部功能已完成驗證。 -人物參考為原創生成的虛構成年女性。動作轉移使用的 `cheer-motion-source.mp4` 也是由 Wan 實際生成的側步/抬手應援動作影片,再輸入 SCAIL 工作流;它不是下載的真人表演素材或單張圖片的平移縮放動畫。影片海報由對應輸出影片擷取。素材的來源雜湊、發布版本雜湊與執行關聯都保留在來源紀錄中。 +人物參考為原創生成的七位虛構成年角色(四女三男;五位寫實、兩位動漫風格)。動作轉移使用的 `motion-energetic.mp4` 與 `motion-taichi.mp4` 也是由 Wan 實際生成的表演者動作影片(先以文生圖產生表演者,再以圖生影片產生動作),再輸入 SCAIL 工作流;它們不是下載的真人表演素材。影片海報由對應輸出影片擷取。素材的來源雜湊、發布版本雜湊與執行關聯都保留在來源紀錄中。 ## 在自己的 GPU 重跑公開紀錄 diff --git a/docs/subject-blend.md b/docs/subject-blend.md index 9d5a76d..cfc9bc4 100644 --- a/docs/subject-blend.md +++ b/docs/subject-blend.md @@ -77,6 +77,8 @@ quality. Public demo GPU evidence and hashes are recorded independently in `webui/docs/examples/provenance.json`; inspect that evidence for the validated inputs and actual result rather than treating a static graph as a GPU run. +The interactive demo now shows 12 recorded background-replacement cases: four fictional demo characters, each in three scenes (realistic characters with real scenes, anime characters with anime scenes). The measurement below belongs to the historical run `cheer-subject-blend-v4`, which stays published for this test. + The historical example `cheer-subject-blend-v4` ran on RTX 5090 at 1024 × 1536 (runtime-reported ComfyUI 0.37.0). The 2/255 measurement compares decoded RGB from **`cheer-subject-reference.webp` and `cheer-subject-blend.webp`**, restricted @@ -137,6 +139,8 @@ pytest-disktmp uv run --with pytest pytest -q tests/test_subject_blend_native.py 但仍需逐張檢查。選用羽化會混合邊緣與背景,不能補回缺失部位;預設為 0。 請先安裝上方連結中的 SAM3.1 模型並閱讀其授權。 +互動示範現在顯示 12 個實跑的換背景案例:四位虛構示範角色各換三個場景(寫實角色配真實場景、動漫角色配動漫場景)。下方的量測屬於保留發布、供此測試使用的歷史紀錄 `cheer-subject-blend-v4`。 + 公開範例已在 RTX 5090 實跑;人物遮罩內 315,611 個像素的 RGB 最大差異 為 2/255,臉部檢查區為 1/255;比較的是上方明列的兩張公開 WebP。 隔離實測在這台服務的 WebP 載入/儲存路徑就重現該差異,PNG 與 0–255 diff --git a/docs/voice-examples.md b/docs/voice-examples.md index 372844e..7b62c07 100644 --- a/docs/voice-examples.md +++ b/docs/voice-examples.md @@ -1,5 +1,6 @@ -# Original synthetic female voice examples +# Original synthetic voice examples +In the original set (`--set original`, the default), `scripts/generate_voice_examples.py` replays eight short voice-design clips and an optional synthetic-reference continuation. All use **one engine: VoxCPM2**. They are not examples of BreezyVoice, F5, or another backend. The descriptions @@ -14,6 +15,46 @@ consistent speaker. The optional clone instead uses the script's own generated transcript and a verified receipt hash. No real person's recordings, private presets, custom LoRA, API keys, or cloud services are used. +## Closed-loop demo voices (--set demo2) + +With `--set demo2`, `scripts/generate_voice_examples.py` replays 16 tracks (8 +voice-design clips and 8 synthetic-reference clones) using the same VoxCPM2 +engine and settings. The voice designs cover adult women and men for the +fictional demo subjects 晴晴, 志遠, 星羽 and 辰翼, two English greetings +(`qingqing-english` and `zhiyuan-english`), a male station announcement +(`male-announcement`), and the first mountain slide (`mountain-slide-one`). The +8 clones use the script's own generated voice-design clips, exact transcripts, +and receipt hashes as references: slide pages two and three +(`mountain-slide-two` and `mountain-slide-three`) clone page one +(`mountain-slide-one`) so one narrator reads the slide batch, while +`qingqing-clone`, `zhiyuan-clone`, `xingyu-clone`, `chenyi-clone`, +`qingqing-english-clone`, and `zhiyuan-english-clone` clone their corresponding +Mandarin or English greeting clips. + +For `--set demo2` only, each generated waveform passes through the deterministic +`demo2-silence-trim-v1` silence post-process before saving and measuring signal +metrics (`--set original` is untouched). It evaluates 10 ms frames (`frame_ms` +10) against a voiced threshold 40.0 dB below the loudest frame with a 0.0001 RMS +floor (`threshold_db_below_loudest_frame` 40.0, `floor_rms` 0.0001), keeps up to +120 ms of leading and trailing margin (`edge_keep_ms` 120), shortens internal +unvoiced pauses longer than 700 ms down to 700 ms (`max_pause_ms` 700), joins cut +segments with a 10 ms linear crossfade (`crossfade_ms` 10), and applies a 5 ms +fade ramp at both outer edges (`edge_fade_ms` 5), recording the post-process +summary in each sample's `postprocess` receipt field. + +```sh +HF_HUB_OFFLINE=1 TRANSFORMERS_OFFLINE=1 OMP_NUM_THREADS=8 MKL_NUM_THREADS=8 OPENBLAS_NUM_THREADS=8 \ +python scripts/generate_voice_examples.py \ + --model /explicit/path/to/base/VoxCPM2 --output /explicit/output/directory \ + --set demo2 --device cpu --threads 8 --clone +``` + +The `--set demo2` tracks have the same validation limits as the original set: +focused tests check CLI input boundaries and hashes without loading a model, +recorded outputs receive signal checks and automated transcription review, and +listening quality, naturalness, distinct voice identities, and Taiwanese accent +are not established by automated ASR or by a successful render. + ## Reproduction Install [OpenBMB/VoxCPM](https://github.com/OpenBMB/VoxCPM) in a separate Python @@ -57,8 +98,15 @@ or a Taiwanese accent. A successful render does not prove those qualities. ## 中文說明 -這組範例都是 VoxCPM2 原創成年女性合成聲音,不是多個不同引擎。 +原始組合(`--set original`)都是 VoxCPM2 原創成年女性合成聲音,不是多個不同引擎。 中文提示要求自然台灣華語,包含迎賓、遊戲主持、故事、播報與三頁簡報; 另有英文迎賓。三頁簡報使用相同描述與各自記錄的種子,但不保證聲音身分完全一致。 可選的聲音延續只使用本程式剛生成的迎賓音訊,不使用私人或真人錄音。 -請實際試聽確認口音與音質;自動轉錄只能協助檢查內容。 +閉環示範語音組合(`--set demo2`)共 16 段音軌(8 段聲音設計與 8 段合成參考克隆), +涵蓋晴晴、志遠、星羽與辰翼四位虛構示範角色的成年男女聲、兩段英文問候、男聲車站廣播與山景簡報第一頁; +8 段克隆音軌皆以本程式生成的聲音設計音檔、原始逐字稿與收據雜湊作為參考,其中山景簡報第二頁與第三頁克隆第一頁以維持同一旁白,其餘六段則分別克隆四位角色的中英文自我介紹。 +此外,僅針對 `--set demo2`,生成波形會在寫入前執行 `demo2-silence-trim-v1` 靜音修剪後處理(`--set original` 保持原樣不變): +以 10 毫秒音框(`frame_ms` 10)計算均方根音量,門檻設為最大音框以下 40.0 dB 且不低於 0.0001(`threshold_db_below_loudest_frame` 40.0、`floor_rms` 0.0001), +首尾各保留最多 120 毫秒邊界(`edge_keep_ms` 120),將中間超過 700 毫秒的靜音停頓裁減至 700 毫秒(`max_pause_ms` 700), +切點以 10 毫秒線性交叉淡化銜接(`crossfade_ms` 10),並在首尾兩端施加 5 毫秒漸入漸出(`edge_fade_ms` 5),同時將後處理紀錄寫入收據的 `postprocess` 欄位。 +兩組範例的驗證限制相同:請實際試聽確認口音與音質;自動轉錄只能協助檢查內容。 diff --git a/scripts/build_docs.py b/scripts/build_docs.py index 5fdea59..00e56df 100644 --- a/scripts/build_docs.py +++ b/scripts/build_docs.py @@ -41,6 +41,8 @@ '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/demo-drive.js': 'assets/demo-drive.js', + 'webui/docs/demo-cases.js': 'assets/demo-cases.js', 'webui/docs/explorers.js': 'assets/explorers.js', 'webui/docs/explorers.css': 'assets/explorers.css', 'webui/docs/character-session.js': 'assets/character-session.js', @@ -132,9 +134,9 @@ def site_html(root): # 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 \n \n \n \n \n \n \n - +