MacOS 生成影片時出現 [ Conv3D is not supported on MPS ]

在 MacOS 運行 ComfyUI 生成 Video 時,總會出現 Conv3D is not supported on MPS 這個訊息,這是因為在生成過程中使用了 FreeU 這個功能。 而使用 FreeU 時需要使用 Pytorch 的 Conv3D,但 MacOS 的 MPS (MacOS 專用的 GPU Metal programming framework)並不支援 Conv3D。

MacOS 生成影片時出現 [ Conv3D is not supported on MPS ]
MacOS 生成影片時出現 [ Conv3D is not supported on MPS ]

在 MacOS 運行 ComfyUI 生成 Video 時,總會出現 Conv3D is not supported on MPS 這個訊息,這是因為在生成過程中使用了 FreeU 這個功能。

而使用 FreeU 時需要使用 Pytorch 的 Conv3D,但 MacOS 的 MPS (MacOS 專用的 GPU Metal programming framework)並不支援 Conv3D。

由於推出 Stable Video Diffusion 後生成影片的需求大增,令很多 MacOS 用家向不同平台的 Stable Diffusion 開發者求助。

Conv3D is not supported on MPS · Issue #2044 · comfyanonymous/ComfyUI
failed to run SVD(stable video diffusion) on macOS anyone can help? Conv3D support on macOS Error occurred when executing KSampler: Conv3D is not supported on MPS File ”/Users/ryanaltair/github/ai/…

其中一個向 ComfyUI 開發者 Github 的求助

最後引起 Pytorch 開發者們的注意,決定要新增 Conv3D 在 MPS 的支援!!

[MPS] Add Conv3D support for MPS by LucasSte · Pull Request #114183 · pytorch/pytorch
Fixes #77818 I saw that PR #99246 was approved, but no one fixed the rebase conflicts, so I am bringing this up again to be merged. I am leveraging @mattiaspaul work. Quoting the description here:…

雖然還沒有完美解決所有問題,但已經足以成功在 MacOS 上運行!

用家只需在 ComfyUI 根目錄運行 pip install --force-reinstall --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu

將 pytorch 更新到最新版本,就會包含了支援 Conv3D 的更新,然後成功生成影片!

Read more

Unity AI Assistant 2.7.0 將不再支援 MCP 連接

Unity AI Assistant 2.7.0 將不再支援 MCP 連接

相信有不少人用 Unity AI MCP 來連接 Claude Code / Codex 等 AI 工具進行開發,近日隨著 Unity AI 進入公測,Unity 官方 Package com.unity.ai.assistant 亦升級到 v2.7.0-pre.2 。這個新版本的 Unity AI Assistant 在 Unity MCP Server 上加上了限制,Connected Clients limit 在 0 個 direct connection(以前是 Unlimited),就是不讓開發者使用其他 AI 工具來支援開發。 官方也有說明可以怎樣做,

Game Engine 的選擇

Game Engine 的選擇

在前陣子在決定寫 game 的期間,我試用了三大主流 Game Engine 來實作 demo,現在比較一下 Unreal,Unity 及 Godot 適合什麼開發者。 自我定位 在開始選擇前,我首先要確定自己是什麼開發者,以什麼角度去選擇 Game Engine。 * 首先我是獨立開發者,就是一個人會負責所有東西,繪圖設計,故事劇情,程式開發,宣傳銷售,後續經營,所以簡單很重要。 * 我使用 Macbook Pro M1 來開發,由於我沒有 desktop,單靠效能有限的主機來開發,所以效能夠不夠對我來說也是很重要。 * 遊戲平台,我的初期目標是 Steam/Andriod/iOS,如果有成果才會推向各大主機,雖然三大 Game Engine 都支持多平台輸出,但實際上調查後發現還是有一些限制,我會在下面解釋。 * 遊戲類型,