arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.06978cs.CV
收藏

Edge-SD-SR:基于双向条件机制,通过Stable Diffusion实现低延迟与参数高效的端侧超分辨率

Edge-SD-SR: Low Latency and Parameter Efficient On-device Super-Resolution with Stable Diffusion via Bidirectional Conditioning

Samsung AI Center, Cambridge(三星人工智能中心(剑桥));Queen Mary University of London(伦敦大学玛丽皇后学院)

Mehdi Noroozi, Isma Hadji, Victor Escorcia, Anestis Zaganidis, Brais Martinez, Georgios Tzimiropoulos

AI总结:

本文提出Edge-SD-SR,首个参数高效且低延迟的端侧图像超分辨率扩散模型,通过双向条件机制等训练策略在极低计算预算下保持高视觉质量,并在主流基准上超越现有方法。

摘要:

近期,基于Stable Diffusion的超分辨率(SD-SR)在视觉质量上取得了巨大进展。然而,由于模型体积大和延迟高,将大型扩散模型部署在手机等计算受限的设备上仍然不切实际。对于超分辨率(SR)而言,由于它通常在高分辨率(例如4Kx3K)下运行,这一问题更加复杂。在这项工作中,我们引入了Edge-SD-SR,这是首个用于图像超分辨率的参数高效且低延迟的扩散模型。Edge-SD-SR包含约169M参数(包括UNet、编码器和解码器),其复杂度仅为约142 GFLOPs。为了在如此低的计算预算下保持高视觉质量,我们引入了多种训练策略:(i) 一种针对低分辨率输入的新型条件机制,被称为双向条件机制,它为SR任务定制了SD模型。(ii) 联合训练UNet和编码器,同时解耦HR和LR图像的编码并使用专用的时间表。(iii) 使用UNet的输出微调解码器,直接使解码器适应在推理时获得的潜变量。Edge-SD-SR能在端侧高效运行,例如在Samsung S24 DSP上运行时,它能在38毫秒内将128x128的图像块放大至512x512,而在将512x512放大至2048x2048(需要25次模型评估)时仅需约1.1秒。此外,我们表明,Edge-SD-SR在最成熟的SR基准上匹配甚至超越了最先进的SR方法。

英文摘要:

There has been immense progress recently in the visual quality of Stable Diffusion-based Super Resolution (SD-SR). However, deploying large diffusion models on computationally restricted devices such as mobile phones remains impractical due to the large model size and high latency. This is compounded for SR as it often operates at high res (e.g. 4Kx3K). In this work, we introduce Edge-SD-SR, the first parameter efficient and low latency diffusion model for image super-resolution. Edge-SD-SR consists of ~169M parameters, including UNet, encoder and decoder, and has a complexity of only ~142 GFLOPs. To maintain a high visual quality on such low compute budget, we introduce a number of training strategies: (i) A novel conditioning mechanism on the low resolution input, coined bidirectional conditioning, which tailors the SD model for the SR task. (ii) Joint training of the UNet and encoder, while decoupling the encodings of the HR and LR images and using a dedicated schedule. (iii) Finetuning the decoder using the UNet's output to directly tailor the decoder to the latents obtained at inference time. Edge-SD-SR runs efficiently on device, e.g. it can upscale a 128x128 patch to 512x512 in 38 msec while running on a Samsung S24 DSP, and of a 512x512 to 2048x2048 (requiring 25 model evaluations) in just ~1.1 sec. Furthermore, we show that Edge-SD-SR matches or even outperforms state-of-the-art SR approaches on the most established SR benchmarks.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑