bcmi /libcom
Image composition toolbox: everything you want to know about image composition/compositing or object/subject insertion/addition/compositing.
★ 1,006⑂ 121👁 56⑃ 9● 51▤ 0
+15
日增长
1,006
stars
121
forks
56
watchers
9
prs
51
issues
0
releases
README
libcom: everything about image composition !visitors --- Introduction _libcom_ (the library of image composition) is an image composition toolbox. The goal of image composition (object insertion) is inserting one foreground into a background image to get a realistic composite image, by addressing the inconsistencies (appearance, geometry, and semantic inconsistency) between foreground and background. Generally speaking, image composition could be used to combine the visual elements from different images. _libcom_ covers a diversity of related tasks in the field of image composition, including image blending, standard/painterly image harmonization, shadow generation, reflection generation, object placement, generative composition, quality evaluation, etc. For each task, we integrate one or two selected methods considering both efficiency and effectiveness. The selected methods will be continuously updated upon the emergence of better methods. The ultimate goal of this library is solving all the problems related to image composition with simple import libcom. Welcome to follow WeChat public account "Newly AIGCer" or Zhihu Column "Newly CVer" to get the latest information about image composition! Welcome to recommend your self-developed models or models you have tested by opening an issue. If a model delivers outstanding and stable performance, we will consider integrating it into libcom. If you specialize in model inference acceleration, we welcome both voluntary and paid collaborations. Please contact us at [email protected]. Main Functions - get_composite_image generates composite images using naive copy-and-paste followed by image blending (alpha blending or Poisson blending). - color_transfer adjusts the foreground color to match the background using traditional color transfer method. - ImageHarmonizationModel [[PCTNet]](https://github.com/rakutentech/PCT-Net-Image-Harmonization) [[LBM]](https://github.com/gojasper/LBM) adjusts the foreground illumination to be compatible the background given photorealistic background and photorealistic foreground. - PainterlyHarmonizationModel [[PHDNet]](https://github.com/bcmi/PHDNet-Painterly-Image-Harmonization) [[PHDiffusion]](https://github.com/bcmi/PHDiffusion-Painterly-Image-Harmonization) adjusts the foreground style to be compatible with the background given artistic background and photorealistic foreground. - InharmoniousLocalizationModel [[MadisNet]](https://github.com/bcmi/MadisNet-Inharmonious-Region-Localization) localizes the inharmonious region in a synthetic image. - HarmonyScoreModel [[BargainNet]](https://github.com/bcmi/BargainNet-Image-Harmonization) evaluates the harmony level between foreground and background in a composite image, that is, whether the illumination of foreground is harmonious with that of background. - FOSScoreModel [[DiscoFOS]](https://github.com/bcmi/Foreground-Object-Search-Dataset-FOSD) evalua