Allow passing blend modes with arguments for scaling

This commit is contained in:
blepping
2025-09-11 02:59:12 -06:00
parent 425150b8db
commit 608eafed87
+2 -4
View File
@@ -1610,10 +1610,8 @@ def biderp(samples, width, height, mode="bislerp", mode_h=None): # noqa: PLR091
if mode_h is None:
mode_h = mode
derp_w, derp_h = (
BIDERP_MODES.get(mode, slerp_orig),
BIDERP_MODES.get(mode_h, slerp_orig),
)
derp_w = (BIDERP_MODES if ":" not in mode else BLENDING_MODES).get(mode, slerp_orig)
derp_h = (BIDERP_MODES if ":" not in mode_h else BLENDING_MODES).get(mode_h, slerp_orig)
def generate_bilinear_data(length_old, length_new, device):
coords_1 = torch.arange(length_old, dtype=torch.float32, device=device).reshape(