Demo: WasmSD-Edge: A Lightweight Edge Stable Diffusion Image Generation Framework Based on WebAssembly
Abstract
The growing demand for deploying Artificial Intelligence Generated Content (AIGC) models like Stable Diffusion on resource-constrained edge devices challenges balancing quality, lightweight implementation, and portability. The emergence of WebAssembly (WASM) offers a compactcross-platform, and isolated runtime environment, making it a promising solution for efficient edge AIGC inference. However, current WASM based AI inference solutions are restricted to text interactions, offering limited support for image generation. To solve the challenges, we propose WebAssembly-Rust based WasmSD-Edge, a lightweight, edge-oriented AI image generation framework for high performance on-device Stable Diffusion inference on various edge devices. WasmSD-Edge employs a plugin-based architecture by integrating stable-diffusion.cpp as a WASM backend plugin for the WasmEdge runtime. It exposes a set of WebAssembly System Interfaces (WASI) to support text-to-image, image-to-image, and model convertion. Additionally, a Rust Crate SDK further enables developers to parametrically control inference process and output generation. To evaluate usability and portability of WasmSD-Edge on heterogeneous devices, we deployed it on heterogeneous devices. It achieves high inference speed and image quality with low resource consumption, offering a practical and efficient solution for deploying edge AIGC workflow. The implementation has been merged into WasmEdge — one of the largest WASM community, and source…
Read the paper
Related studies
- Learning from First-Generation Qualitative Approaches in the IS Discipline: An Evolutionary View and Some Implications for Authors and Evaluators (PART 1/2)
- Commentary on the clinical and preclinical dosage limits of interstitially administered magnetic fluids for therapeutic hyperthermia based on current practice and efficacy models
- Prosthesis: New Technological Opportunities and Innovative Biomedical Devices
- The history and future of neural modeling for cochlear implants
- Ryanodine receptors: waking up from refractoriness
- Novel Transgenic Rabbit Model Sheds Light on the Puzzling Role of Matrix Metalloproteinase-12 in Atherosclerosis
Go deeper in Evidence Hub
Evidence Hub adds a study data sheet (design, sample size, evidence level, key numbers), an AI summary and a chat grounded in the paper's text.