IC-Light icon indicating copy to clipboard operation
IC-Light copied to clipboard

All images must be cutout before further processing. How can I skip the cutout step?

Open abpyu opened this issue 9 months ago • 1 comments

All images must be cutout before further processing. How can I skip the cutout step?

abpyu avatar May 13 '24 01:05 abpyu

You can just comment out the line that says input_fg, matting = run_rmbg(input_fg) in the process_relight function in gradio_demo.py, so the function looks like this:

@torch.inference_mode()
def process_relight(input_fg, prompt, image_width, image_height, num_samples, seed, steps, a_prompt, n_prompt, cfg, highres_scale, highres_denoise, lowres_denoise, bg_source):
    #input_fg, matting = run_rmbg(input_fg)
    results = process(input_fg, prompt, image_width, image_height, num_samples, seed, steps, a_prompt, n_prompt, cfg, highres_scale, highres_denoise, lowres_denoise, bg_source)
    return input_fg, results

V1sionVerse avatar May 26 '24 09:05 V1sionVerse