oracle/sd4j

Stable diffusion pipeline in Java using ONNX Runtime

51
/ 100
Established

Implements txt2img generation with negative prompt support and configurable diffusion schedulers, packaged as both a Swing GUI and embeddable Java library. Targets multiple model architectures (SD v1.5, v2, SDXL) with automatic version detection, and supports hardware acceleration via CUDA, CoreML, and DirectML backends through ONNX Runtime's execution providers. Built as a reference implementation demonstrating ONNX Runtime Java API best practices and performance optimization patterns.

176 stars.

No Package No Dependents
Maintenance 10 / 25
Adoption 10 / 25
Maturity 16 / 25
Community 15 / 25

How are scores calculated?

Stars

176

Forks

21

Language

Java

License

UPL-1.0

Last pushed

Jan 26, 2026

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/diffusion/oracle/sd4j"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.