├── LICENSE ├── README.md └── assets ├── color_interpolations.jpg ├── editable_region.jpg ├── embedding+palette.jpg ├── intensity+palette.jpg ├── interpolations.jpg ├── masking+text.jpg ├── pose_transfer.jpg ├── reconfigurations.jpg ├── sketch,depth+embedding_1.jpg ├── sketch,depth+embedding_2.jpg ├── style_transfer.jpg ├── teaser.jpg ├── text+depth.jpg ├── text+palette.jpg ├── translation.jpg ├── variations.jpg └── virtual_try_on.jpg /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 damo-vilab 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Composer 2 | 3 | Official repo for [Composer: Creative and Controllable Image Synthesis with Composable Conditions](https://arxiv.org/abs/2302.09778). 4 | 5 | See [Project Page](https://ali-vilab.github.io/composer-page/) for more examples. 6 | 7 | ![Concept of Composer](assets/teaser.jpg "Concept of Composer") 8 | 9 | 10 | Composer is a large (5 billion parameters) controllable diffusion model trained on billions of (text, image) pairs. It can exponentially expand the control space through composition, leading to an enormous number of ways to generate and manipulate images, i.e., making *the infinite use of finite means*. 11 | 12 | 13 | ## TODO 14 | 15 | - [ ] Release training and inference code. 16 | - [ ] Release pretrained models. 17 | - [ ] Release Gradio UI. 18 | - [ ] A light-weighted Latent-Composer built upon Stable Diffusion 2.1. 19 | 20 | 21 | ## Composition Results 22 | 23 | ### Composition of **text** and **depth**. 24 | 25 | ![Text+Depth](assets/text+depth.jpg "Text+Depth") 26 | 27 | ### Composition of **masked image** and **text**. 28 | 29 | ![Masking+Text](assets/masking+text.jpg "Masking+Text") 30 | 31 | ### Composition of **sketch, depth** and **embedding** (1). 32 | 33 | ![Sketch,Depth+Embedding](assets/sketch,depth+embedding_1.jpg "Sketch,Depth+Embedding") 34 | 35 | ### Composition of **sketch, depth** and **embedding** (2). 36 | 37 | ![Sketch,Depth+Embedding](assets/sketch,depth+embedding_2.jpg "Sketch,Depth+Embedding") 38 | 39 | ### Composition of **text** and **palette**. 40 | 41 | ![Text+Palette](assets/text+palette.jpg "Text+Palette") 42 | 43 | ### Composition of **embedding** and **palette**. 44 | 45 | ![Embedding+Palette](assets/embedding+palette.jpg "Embedding+Palette") 46 | 47 | ### Composition of **intensity** and **palette**. 48 | 49 | ![Intensity+Palette](assets/intensity+palette.jpg "Intensity+Palette") 50 | 51 | 52 | ## Manipulation Results 53 | 54 | ### **Image variations** when fixing **sketch, depth, palette** and/or **embedding**. 55 | 56 | ![Image Variations](assets/variations.jpg "Image Variations") 57 | 58 | ### **Image interpolations** when fixing **sketch, depth, segmentation map** and/or **palette**. 59 | 60 | ![Image Interpolations](assets/interpolations.jpg "Image Interpolations") 61 | 62 | ### **Image reconfigurations** (manipulating an image by directly modifying its elements). 63 | 64 | ![Image Reconfigurations](assets/reconfigurations.jpg "Image Reconfigurations") 65 | 66 | ### **Color interpolations.** 67 | 68 | ![Color Interpolations](assets/color_interpolations.jpg "Color Interpolations") 69 | 70 | ### **Region-specific image editing.** 71 | 72 | ![Region-specific image editing](assets/editable_region.jpg "Region-specific image editing") 73 | 74 | 75 | ## Reformulation of Classical Tasks 76 | 77 | ### **Image translation.** 78 | 79 | ![Image Translation](assets/translation.jpg "Image Translation") 80 | 81 | ### **Style transfer.** 82 | 83 | ![Style Transfer](assets/style_transfer.jpg "Style Transfer") 84 | 85 | ### **Pose transfer.** 86 | 87 | ![Pose Transfer](assets/pose_transfer.jpg "Pose Transfer") 88 | 89 | ### **Virtual try-on.** 90 | 91 | ![Virtual Try-on](assets/virtual_try_on.jpg "Virtual Try-on") 92 | 93 | 94 | ## BibTeX 95 | 96 | ```bibtex 97 | @article{lhhuang2023composer, 98 | title={Composer: Creative and Controllable Image Synthesis with Composable Conditions}, 99 | author={Huang, Lianghua and Chen, Di and Liu, Yu and Yujun, Shen and Zhao, Deli and Jingren, Zhou}, 100 | booktitle={arXiv preprint arxiv:2302.09778}, 101 | year={2023} 102 | } 103 | ``` 104 | -------------------------------------------------------------------------------- /assets/color_interpolations.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ali-vilab/composer/f22302c3b43f5e390509e12b2aae5fda6e97412b/assets/color_interpolations.jpg -------------------------------------------------------------------------------- /assets/editable_region.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ali-vilab/composer/f22302c3b43f5e390509e12b2aae5fda6e97412b/assets/editable_region.jpg -------------------------------------------------------------------------------- /assets/embedding+palette.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ali-vilab/composer/f22302c3b43f5e390509e12b2aae5fda6e97412b/assets/embedding+palette.jpg -------------------------------------------------------------------------------- /assets/intensity+palette.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ali-vilab/composer/f22302c3b43f5e390509e12b2aae5fda6e97412b/assets/intensity+palette.jpg -------------------------------------------------------------------------------- /assets/interpolations.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ali-vilab/composer/f22302c3b43f5e390509e12b2aae5fda6e97412b/assets/interpolations.jpg -------------------------------------------------------------------------------- /assets/masking+text.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ali-vilab/composer/f22302c3b43f5e390509e12b2aae5fda6e97412b/assets/masking+text.jpg -------------------------------------------------------------------------------- /assets/pose_transfer.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ali-vilab/composer/f22302c3b43f5e390509e12b2aae5fda6e97412b/assets/pose_transfer.jpg -------------------------------------------------------------------------------- /assets/reconfigurations.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ali-vilab/composer/f22302c3b43f5e390509e12b2aae5fda6e97412b/assets/reconfigurations.jpg -------------------------------------------------------------------------------- /assets/sketch,depth+embedding_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ali-vilab/composer/f22302c3b43f5e390509e12b2aae5fda6e97412b/assets/sketch,depth+embedding_1.jpg -------------------------------------------------------------------------------- /assets/sketch,depth+embedding_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ali-vilab/composer/f22302c3b43f5e390509e12b2aae5fda6e97412b/assets/sketch,depth+embedding_2.jpg -------------------------------------------------------------------------------- /assets/style_transfer.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ali-vilab/composer/f22302c3b43f5e390509e12b2aae5fda6e97412b/assets/style_transfer.jpg -------------------------------------------------------------------------------- /assets/teaser.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ali-vilab/composer/f22302c3b43f5e390509e12b2aae5fda6e97412b/assets/teaser.jpg -------------------------------------------------------------------------------- /assets/text+depth.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ali-vilab/composer/f22302c3b43f5e390509e12b2aae5fda6e97412b/assets/text+depth.jpg -------------------------------------------------------------------------------- /assets/text+palette.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ali-vilab/composer/f22302c3b43f5e390509e12b2aae5fda6e97412b/assets/text+palette.jpg -------------------------------------------------------------------------------- /assets/translation.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ali-vilab/composer/f22302c3b43f5e390509e12b2aae5fda6e97412b/assets/translation.jpg -------------------------------------------------------------------------------- /assets/variations.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ali-vilab/composer/f22302c3b43f5e390509e12b2aae5fda6e97412b/assets/variations.jpg -------------------------------------------------------------------------------- /assets/virtual_try_on.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ali-vilab/composer/f22302c3b43f5e390509e12b2aae5fda6e97412b/assets/virtual_try_on.jpg --------------------------------------------------------------------------------