/ Модель

Характеристики

Лицензия
CreativeML OpenRAIL-M
Библиотека
diffusers
Опубликована
6 сен 2023

ldm3d-sr

Генерация изображенийТекст → изображение3 профессии

LDM3D-SR от Intel повышает разрешение изображений и соответствующих карт глубины для создания высокоразрешённых RGBD-материалов, в том числе для VR.

43скачиваний за 30 дней11лайковвеса обновлены25 апр 2024

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

LDM3D-SR — модель повышения разрешения от Intel из семейства LDM3D-VR, описанного в исследовательской работе, принятой на семинар NeurIPS 2023 по диффузионным моделям. Она увеличивает разрешение изображений и связанных с ними карт глубины, восстанавливая RGBD-результат из низкоразрешённого входа. Модель построена на латентной диффузии: использует адаптированный U-Net с 8-канальным входом, латентное представление автоэнкодера LDM3D-4c и текстовый энкодер CLIP для текстового условия.

LDM3D-SR предназначена для подготовки высокоразрешённых RGBD-материалов, в частности для разработки VR-сцен. В описанной оценке модель повышала разрешение с 128×128 до 512×512. Для обучения использовались пары изображений высокого и низкого разрешения, подписи и карты глубины; данные происходят из подмножеств LAION Aesthetics 6+ и LAION-400M. Карточка указывает лицензию CreativeML OpenRAIL-M.

К модели применимы ограничения и смещения Stable Diffusion при генерации изображений. Карты глубины основаны на разметке, полученной с помощью DPT, поэтому на них распространяются ограничения и смещения DPT. Модель не гарантирует точность глубины для произвольных сцен.

Сценарии применения

  • увеличение разрешения RGB-изображения с 128×128 до 512×512
  • повышение разрешения карты глубины вместе с изображением
  • подготовка RGBD-материалов для VR-сцен
  • восстановление высокоразрешённых изображений из низкоразрешённых входов

Ограничения

Для изображений действуют ограничения и смещения Stable Diffusion. Карты глубины зависят от разметки DPT и наследуют её ограничения и смещения.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

LDM3D-SR model

The LDM3D-VR model suite was proposed in the paper LDM3D-VR: Latent Diffusion Model for 3D, authored by Gabriela Ben Melech Stan, Diana Wofk, Estelle Aflalo, Shao-Yen Tseng, Zhipeng Cai, Michael Paulitsch, and Vasudev Lal.

LDM3D-VR was accepted to the NeurIPS 2023 Workshop on Diffusion Models.

This new checkpoint is related to the upscaler called LDM3D-SR.

Model details

Latent diffusion models have proven to be state-of-the-art in the creation and manipulation of visual outputs. However, as far as we know, the generation of depth maps jointly with RGB is still limited. We introduce LDM3D-VR, a suite of diffusion models targeting virtual reality development that includes LDM3D-pano and LDM3D-SR. These models enable the generation of panoramic RGBD based on textual prompts and the upscaling of low-resolution inputs to high-resolution RGBD, respectively. Our models are fine-tuned from existing pretrained models on datasets containing panoramic/high-resolution RGB images, depth maps and captions. Both models are evaluated in comparison to existing related methods.

LDM3D-SR overview LDM3D-SR overview

Usage

Using the 🤗's Diffusers library in a simple and efficient manner.

from PIL import Image
import os
import torch
from diffusers import StableDiffusionLDM3DPipeline, DiffusionPipeline

#Generate a rgb/depth output from LDM3D
pipe_ldm3d = StableDiffusionLDM3DPipeline.from_pretrained("Intel/ldm3d-4c")
pipe_ldm3d.to("cuda")

prompt =f"A picture of some lemons on a table"
output = pipe_ldm3d(prompt)
rgb_image, depth_image = output.rgb, output.depth
rgb_image[0].save(f"lemons_ldm3d_rgb.jpg")
depth_image[0].save(f"lemons_ldm3d_depth.png")


#Upscale the previous output to a resolution of (1024, 1024)
pipe_ldm3d_upscale = DiffusionPipeline.from_pretrained("Intel/ldm3d-sr", custom_pipeline="pipeline_stable_diffusion_upscale_ldm3d")

pipe_ldm3d_upscale.to("cuda")

low_res_img = Image.open(f"lemons_ldm3d_rgb.jpg").convert("RGB")
low_res_depth = Image.open(f"lemons_ldm3d_depth.png")
outputs = pipe_ldm3d_upscale(prompt="high quality high resolution uhd 4k image", rgb=low_res_img, depth=low_res_depth, num_inference_steps=50, target_res=[1024, 1024])

upscaled_rgb, upscaled_depth =outputs.rgb[0], outputs.depth[0]
upscaled_rgb.save(f"upscaled_lemons_rgb.png")
upscaled_depth.save(f"upscaled_lemons_depth.png")

This is the result:

Output of ldm3d-4cUpscaled output
ldm3d_rgb_resultsldm3d_sr_rgb_results
ldm3d_depth_resultsldm3d_sr_depth_results

Training data

The LDM3D model was finetuned on a dataset constructed from a subset of the LAION-400M dataset, a large-scale image-caption dataset that contains over 400 million image-caption pairs. In the finetuning process of the LDM3D-SR, the training data consists of additional high-resolution (HR) and low-resolution (LR) sets with 261,045 samples each. For HR samples, a subset of LAION Aesthetics 6+ with tuples (captions, 512x512-sized images, and depth maps from DPT-BEiT-L-512) is used. LR images are generated using a lightweight BSR-image-degradation method, introduced in applied to the HR image.

Finetuning

The fine-tuning process comprises two stages. In the first stage, we train an autoencoder to generate a lower-dimensional, perceptually equivalent data representation. Subsequently, we fine-tune the diffusion model using the frozen autoencoder.

LDM3D-SR utilizes the autoencoder previously developed for LDM3D-4c to now encode low-resolution (LR) images into a 64x64x4 dimensional latent space. The diffusion model used here is an adapted version of the U-Net, now modified to have an 8-channel input. This change enables conditioning on LR latent via concatenation to the high-resolution (HR) latent during training, and to noise during inference. Text conditioning is also facilitated using cross attention with a CLIP text encoder.

Evaluation results

The table below shows the quantitative results of upscaling from 128 x 128 to 512 x 512, evaluated on 2,243 samples from ImageNet-Val. We explore three methods for generating LR depth maps: performing depth estimation on the LR depth maps (LDM3D-SR-D), utilizing the original HR depth map for LR conditioning (LDM3D-SR-O), and applying bicubic degradation to the depth map (LDM3D-SR-B).

MethodFID ↓IS ↑PSNR ↑SSIM ↑Depth MARE ↓
Regression, bicubic24.68660.135±4.1626.424±3.980.716±0.130.0153±0.0189
SDx4[29]15.86561.103±3.4824.528±3.630.631±0.15N/A
LDMx4[30]15.24560.060±3.8825.511±3.940.686±0.16N/A
SD-superres[2]15.25459.789±3.5323.878±3.280.642±0.15N/A
LDM3D-SR-D15.52259.736±3.3724.113±3.540.659±0.160.0753±0.0734
LDM3D-SR-O14.79360.260±3.5324.498±3.590.665±0.160.0530±0.0496
LDM3D-SR-B14.70560.371±3.5624.479±3.580.665±0.480.0537±0.0506

The results shown above can be referenced in Table 3 of the LDM3D-VR paper.

Ethical Considerations and Limitations

For image generation, the Stable Diffusion limitations and biases apply. For depth map generation, a first limitiation is that we are using DPT-large to produce the ground truth, hence, other limitations and biases from DPT are applicable.

Caveats and Recommendations

Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.

Here are a couple of useful links to learn more about Intel's AI software:

Disclaimer

The license on this model does not constitute legal advice. We are not responsible for the actions of third parties who use this model. Please consult an attorney before using this model for commercial purposes.

BibTeX entry and citation info

@misc{stan2023ldm3dvr,
      title={LDM3D-VR: Latent Diffusion Model for 3D VR}, 
      author={Gabriela Ben Melech Stan and Diana Wofk and Estelle Aflalo and Shao-Yen Tseng and Zhipeng Cai and Michael Paulitsch and Vasudev Lal},
      year={2023},
      eprint={2311.03226},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · diffusers

Нельзя запустить

Пайплайн StableDiffusionUpscaleLDM3DPipeline не входит в diffusers 0.41.0.dev0: нужен custom_pipeline.

Ревизия весов
6e208e7

0 моделей