Reduce step size (better respect mask)
This commit is contained in:
+2
-1
@@ -60,7 +60,8 @@ class SeamCarving:
|
|||||||
energy_mode="forward", # choose from {backward, forward}
|
energy_mode="forward", # choose from {backward, forward}
|
||||||
order="width-first", # choose from {width-first, height-first}
|
order="width-first", # choose from {width-first, height-first}
|
||||||
keep_mask=k_mask, # object mask to protect from removal
|
keep_mask=k_mask, # object mask to protect from removal
|
||||||
drop_mask=d_mask
|
drop_mask=d_mask,
|
||||||
|
step_ratio=0.1
|
||||||
)
|
)
|
||||||
results.append(torch.from_numpy(dst))
|
results.append(torch.from_numpy(dst))
|
||||||
return (torch.stack(results),)
|
return (torch.stack(results),)
|
||||||
|
|||||||
Reference in New Issue
Block a user