gbieler / change-background-and-relight

Change the background on an image and relight the scene.

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

Input

file
Preview
subject_image

Image with the subject

file
Preview
background_image

Image to use as a reference for the background (optional)

string
Shift + Return to add a new line

Description of the background (optional)

Default: ""

string
Shift + Return to add a new line

Description of the lighting (optional)

Default: ""

file
Preview
light_mask

Mask to use as a reference for the lighting (optional)

number
(minimum: 0.1, maximum: 1)

Background variation strength

Default: 0.7

Output

outputoutput
Generated in

This output was created using a different version of the model, gbieler/change-background-and-relight:adf668d3.

Run time and cost

This model costs approximately $0.22 to run on Replicate, or 4 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 4 minutes. The predict time for this model varies significantly based on the inputs.

Readme

This model doesn't have a readme.