Install and use Comfy UI to generate images
ComfyUI is an open-source web server application for AI image generation using diffusion-based models like SDXL, Flux and others. It has a browser-based UI that lets you create, edit and run image generation and editing workflows with multiple steps. Generation and editing steps (e.g. loading a model, adding text or sampling) are configurable in the UI as a node, and you connect nodes with wires to form a workflow.
ComfyUI uses the host's GPU for inference, so you can install it on your Spark and do all of your image generation and editing directly on device.
Workflows are saved as JSON files, so you can version them for future work, collaboration and reproducibility.
You'll install and configure ComfyUI on your NVIDIA DGX Spark device so you can use the unified memory to work with large models.
Hardware Requirements:
Software Requirements:
python3 --version
pip3 --version
nvcc --version
git --version
<SPARK_IP>:8188
portAll required assets can be found in the ComfyUI repository on GitHub
requirements.txt
- Python dependencies for ComfyUI installationmain.py
- Primary ComfyUI server application entry pointv1-5-pruned-emaonly-fp16.safetensors
- Stable Diffusion 1.5 checkpoint model