Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -324,6 +324,7 @@ def process(input_fg, input_bg, prompt, image_width, image_height, num_samples,
|
|
324 |
return pixels, [fg, bg]
|
325 |
|
326 |
|
|
|
327 |
@torch.inference_mode()
|
328 |
def process_relight(input_fg, input_bg, prompt, image_width, image_height, num_samples, seed, steps, a_prompt, n_prompt, cfg, highres_scale, highres_denoise, bg_source):
|
329 |
input_fg, matting = run_rmbg(input_fg)
|
@@ -332,6 +333,7 @@ def process_relight(input_fg, input_bg, prompt, image_width, image_height, num_s
|
|
332 |
return results + extra_images
|
333 |
|
334 |
|
|
|
335 |
@torch.inference_mode()
|
336 |
def process_normal(input_fg, input_bg, prompt, image_width, image_height, num_samples, seed, steps, a_prompt, n_prompt, cfg, highres_scale, highres_denoise, bg_source):
|
337 |
input_fg, matting = run_rmbg(input_fg, sigma=16)
|
|
|
324 |
return pixels, [fg, bg]
|
325 |
|
326 |
|
327 |
+
@spaces.GPU
|
328 |
@torch.inference_mode()
|
329 |
def process_relight(input_fg, input_bg, prompt, image_width, image_height, num_samples, seed, steps, a_prompt, n_prompt, cfg, highres_scale, highres_denoise, bg_source):
|
330 |
input_fg, matting = run_rmbg(input_fg)
|
|
|
333 |
return results + extra_images
|
334 |
|
335 |
|
336 |
+
@spaces.GPU
|
337 |
@torch.inference_mode()
|
338 |
def process_normal(input_fg, input_bg, prompt, image_width, image_height, num_samples, seed, steps, a_prompt, n_prompt, cfg, highres_scale, highres_denoise, bg_source):
|
339 |
input_fg, matting = run_rmbg(input_fg, sigma=16)
|