Create Your Imagination
AI-Powered Image Editing
No restrictions, just pure creativity. Browser-based and free!
2 min to read
This guide provides detailed instructions for installing and running the DeepSeek Janus-Pro 1 B model on Linux/Ubuntu system using ComfyUI. Follow these steps to ensure a successful setup.
Run DeepSeek Janus-Pro 7B on Linux/Ubuntu Using ComfyUI
Ensure your system meets the following:
sudo apt update && sudo apt upgrade -y
sudo apt install git python3 python3-pip -y
If your system uses an older Python version:
sudo apt install python3.10 python3.10-distutils
For NVIDIA GPU users:
pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu118
Note: Replace cu118
with cu121
for CUDA 12.1.
git clone https://github.com/comfyanonymous/ComfyUI.git
cd ComfyUI
pip install -r requirements.txt
model.safetensors
config.json
, tokenizer.json
, and other configuration files.Create this folder structure inside ComfyUI/models/
:
Janus-Pro/
└── Janus-Pro-1B/
├── config.json
├── model.safetensors
├── tokenizer.json
└── ... (other config files)
cd ComfyUI/custom_nodes
git clone https://github.com/CY-CHENYUE/ComfyUI-Janus-Pro.git
http://localhost:8188
in your browser.Launch ComfyUI:
python3 app.py
Janus-Pro-1B
from the dropdown menu.steps
, cfg scale
, and sampler
for quality/speed trade-offs.Example workflow for generating futuristic cityscape:
# Example node configuration (pseudo-code for illustration)
prompt = "a futuristic cityscape, neon lights, cyberpunk style"
sampler_config = {"steps": 30, "cfg": 7.5}
generate_image(prompt=prompt, num_images=4)
Issue | Solution |
---|---|
Model not appearing in ComfyUI | Ensure files are in ComfyUI/models/Janus-Pro-1B/ . |
CUDA errors | Reinstall PyTorch with the correct CUDA version. |
Missing dependencies | Run pip install --upgrade -r requirements.txt . |
nvidia-smi
during generation.