zsxkib / ic-light-background

๐Ÿ–ผ๏ธโœจBackground images + prompts to auto-magically relights your images (+normal maps๐Ÿ—บ๏ธ)

  • Public
  • 12.5K runs
  • GitHub
  • License
Iterate in playground

Run time and cost

This model costs approximately $0.0062 to run on Replicate, or 161 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.

This model runs on Nvidia L40S GPU hardware. Predictions typically complete within 7 seconds.

Readme

IC-Light Background: Illuminate Portraits with Stunning Backgrounds ๐ŸŒ„โœจ

Foreground (Subject) Image + Background Image + Prompt โ†’ Subject in Background w/ Correct Lighting

Overview ๐Ÿ–ผ๏ธ

IC-Light Background is a powerful AI-driven tool that takes portrait relighting to the next level by incorporating background images. As a companion to the IC-Light Text model, IC-Light Background allows you to relight your portraits using reference background images, ensuring a cohesive and visually stunning result. ๐ŸŽจ๐Ÿ’ก

Getting Started ๐Ÿš€

To begin relighting your portraits with IC-Light Background:

  1. Upload your portrait image
  2. Provide a reference background image with the desired lighting
  3. Watch as IC-Light Background seamlessly applies the background lighting to your portrait! โœจ

Background-Conditioned Relighting ๐Ÿ“ธ๐ŸŒ 

IC-Light Background harnesses the power of background images to guide the relighting process. By analyzing the lighting in your reference background, the model can intelligently apply the same illumination to your portrait, creating a harmonious and visually striking result. ๐ŸŒˆ

Normal Map Estimation ๐Ÿ—บ๏ธ

One of the standout features of IC-Light Background is its ability to estimate normal maps from the relit portraits. By relighting the image from four different directions (left, right, top, bottom), the model can compute a detailed normal map that captures the 3D-like shading of your portrait. This adds an extra layer of depth and realism to your relit images. ๐ŸŒ

Seamless Integration ๐Ÿงฉ

IC-Light Background is designed to work hand-in-hand with the IC-Light Text model. While the text-conditioned model focuses on relighting portraits based on textual descriptions, IC-Light Background takes it a step further by incorporating reference background images. Together, these models provide a comprehensive and versatile portrait relighting solution. ๐Ÿค

Customization Options ๐ŸŽš๏ธ

Just like its text-conditioned counterpart, IC-Light Background offers a wide range of customization options to fine-tune your relighting results. From adjusting the relighting strength to controlling the output resolution, you have the flexibility to create the perfect look for your portraits. ๐Ÿ”ง

Cutting-Edge Technology ๐Ÿง 

IC-Light Background is powered by state-of-the-art deep learning models, including Stable Diffusion v1.5 and the BriaRMBG model for foreground extraction. By leveraging advanced techniques such as variational autoencoders, U-Nets, and custom loss functions, IC-Light Background achieves unprecedented levels of relighting quality and consistency. ๐Ÿš€

Elevate Your Portraits ๐Ÿ“ˆ

With IC-Light Background, you can take your portrait photography to new heights. By harnessing the power of stunning background lighting, you can create portraits that truly stand out and captivate your audience. Get ready to unleash your creativity and explore a world of breathtaking portrait relighting possibilities! ๐ŸŒŸ

Responsible Use ๐Ÿ™

As with any powerful tool, please use IC-Light Background responsibly. Respect the privacy and rights of the individuals in your photos, and always obtain necessary permissions before sharing or publishing relit images. ๐Ÿ“œ

Discover the magic of background-conditioned portrait relighting with IC-Light Background! ๐ŸŽจโœจ


For text-conditioned portrait relighting, check out the IC-Light Text model. ๐Ÿ“๐Ÿ’ก