/ Модель

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

Лицензия
CC BY-NC-SA 4.0
Опубликована
29 фев 2024

CommonCanvas-XL-NC

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

Латентная диффузионная модель на базе Stable Diffusion XL для генерации изображений по текстовым описаниям, обученная на данных CommonCatalog.

183скачиваний за 30 дней9лайковвеса обновлены16 мая 2024

Бенчмарки

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

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Изображения» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели сгенерируют результат по каждой задаче. Опубликованный тест появится на этой странице.

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

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

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

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

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

CommonCanvas-XL-NC — модель генерации изображений по тексту от команды CommonCanvas. Это версия семейства CommonCanvas на архитектуре латентной диффузии Stable Diffusion XL, обученная на подмножестве CommonCatalog — набора изображений с лицензиями Creative Commons и синтетическими описаниями, созданными BLIP-2. Модель принимает текстовые запросы и генерирует изображения; в первую очередь она рассчитана на англоязычные подсказки.

Модель подходит для художественных и дизайнерских задач, творческих и образовательных инструментов, а также исследований генеративных моделей, их ограничений и смещений. Она может уступать SDXL в генерации лиц, фотографий и картин, хуже справляться со сложной композицией и точным изображением известных людей, произведений искусства и мест. Обучающие данные основаны на устаревших материалах Flickr100M и слабо представляют некоторые регионы; текст на изображениях обычно трудно читать, а автоэнкодер приводит к потере части информации. Модель может генерировать нежелательный контент. Лицензия CC BY-NC-SA 4.0 запрещает коммерческое использование и требует соблюдения условий атрибуции и распространения производных материалов.

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

  • создание художественных изображений по англоязычному запросу
  • подготовка иллюстраций и дизайн-концепций
  • генерация изображений для творческих и образовательных инструментов
  • исследование ограничений и смещений моделей генерации изображений

Ограничения

Модель хуже справляется с лицами, фотографиями, живописью и сложной композицией; текст на изображениях обычно трудно читать. Она обучена на устаревших данных с ограниченным географическим охватом, слабо работает с некоторыми именами и запросами не на английском языке и может создавать нежелательный контент.

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

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

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

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

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

Открыть на Hugging Face

CommonCanvas-XL-NC

Summary

CommonCanvas is a family of latent diffusion models capable of generating images from a given text prompt. The architecture is based off of Stable Diffusion XL. Different CommonCanvas models are trained exclusively on subsets of the CommonCatalog Dataset (See Data Card), a large dataset of Creative Commons licensed images with synthetic captions produced using a pre-trained BLIP-2 captioning model.

Input: CommonCatalog Text Captions
Output: CommonCatalog Images
Architecture: Stable Diffusion XL
Version Number: 0.1

The goal of this purpose is to produce a model that is competitive with Stable Diffusion XL, but to do so using an easily accessible dataset of known provenance. Doing so makes replicating the model significantly easier and provides proper attribution to all the creative commons work used to train the model. The exact training recipe of the model can be found in the paper hosted at this link. https://arxiv.org/abs/2310.16825

Performance Limitations

CommonCanvas under-performs in several categories, including faces, general photography, and paintings (see paper, Figure 8). These datasets all originated from the Conceptual Captions dataset, which relies on web-scraped data. These web-sourced captions, while abundant, may not always align with human-generated language nuances. Transitioning to synthetic captions introduces certain performance challenges, however, the drop in performance is not as dramatic as one might assume.

Training Dataset Limitations

The model is trained on 10 year old YFCC data and may not have modern concepts or recent events in its training corpus. Performance on this model will be worse on certain proper nouns or specific celebrities, but this is a feature not a bug. The model may not generate known artwork, individual celebrities, or specific locations due to the autogenerated nature of the caption data.

Note: The non-commercial variants of this model are explicitly not intended to be use

  • It is trained on data derived from the Flickr100M dataset. The information is dated and known to have a bias towards internet connected Western countries. Some areas such as the global south lack representation.

Associated Risks

  • Text in images produced by the model will likely be difficult to read.
  • The model struggles with more complex tasks that require compositional understanding
  • It may not accurately generate faces or representations of specific people.
  • The model primarily learned from English descriptions and may not perform as effectively in other languages.
  • The autoencoder aspect of the model introduces some information loss.
  • It may be possible to guide the model to generate objectionable content, i.e. nudity or other NSFW material.

Intended Uses

  • Using the model for generative AI research
  • Safe deployment of models which have the potential to generate harmful content.
  • Probing and understanding the limitations and biases of generative models.
  • Generation of artworks and use in design and other artistic processes.
  • Applications in educational or creative tools.
  • Research on generative models.

Unintended Uses

  • Commercial Uses

Usage

We recommend using the MosaicML Diffusion Repo to finetune / train the model: https://github.com/mosaicml/diffusion. Example finetuning code coming soon.

Spaces demo

Try the model demo on Hugging Face Spaces

Inference with 🧨 diffusers

from diffusers import StableDiffusionXLPipeline
pipe = StableDiffusionXLPipeline.from_pretrained(
    "common-canvas/CommonCanvas-XL-NC", 
    custom_pipeline="multimodalart/sdxl_perturbed_attention_guidance", #read more at https://huggingface.co/multimodalart/sdxl_perturbed_attention_guidance
    torch_dtype=torch.float16
).to(device)

prompt = "a cat sitting in a car seat"
image = pipe(prompt, num_inference_steps=25).images[0]    

Inference with ComfyUI / AUTOMATIC1111

Download safetensors ⬇️

Evaluation/Validation

We validated the model against Stability AI’s SD2 model and compared human user study

Acknowledgements

We thank @multimodalart, @Wauplin, and @lhoestq at Hugging Face for helping us host the dataset, and model weights.

Citation

@article{gokaslan2023commoncanvas,
  title={CommonCanvas: An Open Diffusion Model Trained with Creative-Commons Images},
  author={Gokaslan, Aaron and Cooper, A Feder and Collins, Jasmine and Seguin, Landan and Jacobson, Austin and Patel, Mihir and Frankle, Jonathan and Stephenson, Cory and Kuleshov, Volodymyr},
  journal={arXiv preprint arXiv:2310.16825},
  year={2023}
}

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

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

GPU в ailist

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

Можно запустить

Подбираем GPU…

Ревизия весов
0ece823

0 моделей