Make videos on the computer you already own. FreeVideo runs MiniMax H3 in as little as 8 GB of VRAM and 16 GB of RAM, and adapts its acceleration path to your hardware.
# Adapted from Bandit (https://github.com/kwatcharasupat/source-separation), Copyright (c) the Bandit authors,
# Apache-2.0 (freevideo_engine/licenses/Bandit-Apache-2.0.txt). Modified: reduced to the inference subset.
from abc import ABC
from typing import Iterable, Mapping, Union
from torch import nn
class BandsplitCoreBase(nn.Module, ABC):
band_split: nn.Module
tf_model: nn.Module
mask_estim: Union[nn.Module, Mapping[str, nn.Module], Iterable[nn.Module]]
def __init__(self) -> None:
super().__init__()
@staticmethod
def mask(x, m):
return x * m