Skip to content

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.

Image worker exits after 45 s idle so its memory returns sooner

Bowen Xue95b91d1b41f0
diff --git a/freevideo_engine/image_gen/service.py b/freevideo_engine/image_gen/service.py
index ebdc69f..e5056d7 100644
--- a/freevideo_engine/image_gen/service.py
+++ b/freevideo_engine/image_gen/service.py
@@ -61,7 +61,7 @@ class Worker:
class Service:
- def __init__(self, installation, input_directory, *, video_busy=None, idle_seconds=180.):
+ def __init__(self, installation, input_directory, *, video_busy=None, idle_seconds=45.):
self.installation = installation
self.input_directory = input_directory
self.video_busy = video_busy or self._video_busy
diff --git a/freevideo_engine/image_gen/worker.py b/freevideo_engine/image_gen/worker.py
index 3fffbd7..c61d628 100644
--- a/freevideo_engine/image_gen/worker.py
+++ b/freevideo_engine/image_gen/worker.py
@@ -75,7 +75,7 @@ def load_runner(pack_dir, device, *, progress=None):
return ImageRunner(pack_dir, device=device, progress=progress)
-def serve(pack_dir, *, device='cuda', idle_seconds=180., stream=None, output=None, factory=None):
+def serve(pack_dir, *, device='cuda', idle_seconds=45., stream=None, output=None, factory=None):
stream = sys.stdin if stream is None else stream
output = sys.stdout if output is None else output
factory = factory or load_runner
@@ -147,7 +147,7 @@ def main():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument('pack_dir', type=Path)
parser.add_argument('--device', default='cuda')
- parser.add_argument('--idle-seconds', type=float, default=180.)
+ parser.add_argument('--idle-seconds', type=float, default=45.)
args = parser.parse_args()
if not 0 < args.idle_seconds < float('inf'):
parser.error('--idle-seconds must be positive and finite')