移除 reportlab 硬相依,改為延遲載入: - photo_magazine_generator.py 頂層不再 import reportlab,避免缺套件時 整個 ListHelper 節點套件 import 失敗(nodes.py 的 import 鏈無 try/except) - 新增 ensure_reportlab():PhotoMagazineMaker 執行時才載入,缺少時才 以 sys.executable -m pip 自動安裝,安裝失敗回傳友善訊息而非拋例外 - create_full_bleed_image 的預設參數 210*mm/297*mm 改為 None sentinel (預設值在 import 時求值,會讓延遲載入失效) - requirements.txt / pyproject.toml 移除 reportlab;刪除未使用的 pdfutils ModelDownloader 簡化為單純節點: - 刪除 web/js/modelDownloader.js 的節點下方進度面板 - 移除 PromptServer WebSocket 推送、_send_progress、hidden unique_id 與兩個下載方法的 progress_callback 參數鏈 - 下載進度僅輸出到終端機(已知大小每 10%、未知每 10MB) - 修正未知檔案大小時的進度判斷:原本 downloaded % 10MB == 0 只在 chunk size 恰好整除時才會輸出,改為門檻遞增 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
3 lines
17 B
Plaintext
3 lines
17 B
Plaintext
regex
|
|
accelerate
|