(input_image, do_remove_background)
| 122 | |
| 123 | |
| 124 | def preprocess(input_image, do_remove_background): |
| 125 | |
| 126 | rembg_session = rembg.new_session() if do_remove_background else None |
| 127 | if do_remove_background: |
| 128 | input_image = remove_background(input_image, rembg_session) |
| 129 | input_image = resize_foreground(input_image, 0.85) |
| 130 | |
| 131 | return input_image |
| 132 | |
| 133 | |
| 134 | def generate_mvs(input_image, sample_steps, sample_seed): |
nothing calls this directly
no test coverage detected