ADVERTISEMENT
接下來我們動手在GIGABYTE AI TOP ATOM透過Comfy UI應用程式與網頁版操作介面,來進行AI圖像生成。
ComfyUI安裝說明
雖然GIGABYTE AI TOP Utility也提供圖像生成的功能,不過我們使用功能更具彈性的Comfy UI,搭配先前介紹過的Stable Diffusion系列基礎模型以及LoRA小模型,來生成更多元的風格圖片。
延伸閱讀:
Stable Diffusion AI算圖使用手冊(1-1):這是什麼黑魔術?
不可以瑟瑟!Stability AI將禁止使用Stable Diffusion生成色情圖片,7月底更新使用條款
Intel AI Playground動手玩:在本機套用第三方SDXL模型生成圖像、使用AI聊天機器人
我們參考NVIDIA在DGX Spark的教學網頁上提供Comfy UI教學進行操作示範,而筆者額外安裝Comfy UI Manager,以簡化後續安裝工作流程、節點的手續。
筆者將操作的圖文說明整理於下。



python3 --version
pip3 --version
nvcc --version

nvidia-smi

python3 -m venv comfyui-env
source comfyui-env/bin/activate

pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu130

git clone https://github.com/comfyanonymous/ComfyUI.git

▲輸入下列指令切換到「ComfyUI」資料夾,並參考「requirements.txt」檔案安裝所需的相依軟體。
cd ComfyUI/
pip install -r requirements.txt

cd custom_nodes /
git clone https://github.com/ltdrdata/ComfyUI-Manager comfyui-manager

source comfyui-env/bin/activate
cd ComfyUI/
python main.py --listen 0.0.0.0

127.0.0.1:8188
透過區域網路遠端存取
Comfy UI也提供透過區域網路存取網頁介面的功能,而DGX作業系統也能透過SSH在文字指令介面進行遠端操作。
筆者以Windows作業系統搭配Putty程式進行操作示範,請參考下方圖文教學。
Putty下載位置:
https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html






source comfyui-env/bin/activate
cd ComfyUI/
python main.py --listen 0.0.0.0


http:// 192.168.2.99:8188

sudo shutdown now

在完成安裝與前置工作後,我們在下篇文章中繼續看如何安裝Stable Diffusion模型,並實際進行圖像生成。
(回到系列全文目錄)
請注意!留言要自負法律責任,相關案例層出不窮,請慎重發文!