Commit f589d84
authored
Fix stale batch state when looping set_image with generate_masks_by_points_patch (#495)
Reset images_batch, sources_batch, batch_state, and batch_results to None
in set_image() so that generate_masks_by_points_patch() properly
re-initializes batch state for the new image. Previously, calling
set_image() in a loop left stale batch attributes from the prior
iteration, causing dimension mismatch errors.
Closes #4941 parent 4c230a2 commit f589d84
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
349 | 357 | | |
350 | 358 | | |
351 | 359 | | |
| |||
0 commit comments