This plugin integrates the Janus-Pro multi-modal model into ComfyUI, enabling advanced image understanding and text-to-image generation capabilities. It supports both image analysis and creative image generation workflows.
This plugin integrates the Janus-Pro multi-modal model into ComfyUI, enabling advanced image understanding and text-to-image generation capabilities. It supports both image analysis and creative image generation workflows.
Janus-Pro Model Homepage: https://github.com/deepseek-ai/Janus
custom_nodes
directorygit clone https://github.com/greengerong/ComfyUI-JanusPro-PL.git
pip install -r requirements.txt
The plugin supports the following Janus-Pro models:
deepseek-ai/Janus-Pro-1B
deepseek-ai/Janus-Pro-7B
Models will be automatically downloaded on first use. Alternatively, you can manually download them and place them in the models/Janus-Pro
directory.
models/Janus-Pro/
āāā Janus-Pro-7B/
ā āāā config.json
ā āāā pytorch_model.bin
ā āāā ...
āāā Janus-Pro-1B/
āāā ...
JanusProModelLoader
JanusProImageUnderstanding
JanusProImageGenerator
Below is an example workflow that combines image understanding and text-to-image generation:
Janus-Pro-1B
and Janus-Pro-7B
.BF16
, INT8
, or INT4
.models/Janus-Pro
).384
).For Low VRAM GPUs:
Janus-Pro-1B
model.INT4
quantization.parallel_size
.For Faster Generation:
BF16
precision.parallel_size
(e.g., 16-32).For High-Quality Output:
Janus-Pro-7B
with BF16
precision.temperature
between 0.6-0.8.CFG Scale
between 6.0-8.0.CUDA Out of Memory:
parallel_size
.Janus-Pro-1B
).INT8
or INT4
).Model Loading Failed:
models/janus_pro
.Low-Quality Output:
CFG Scale
.temperature
(lower values for more deterministic results).For questions or feedback, please open an issue on GitHub or contact the maintainers.