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.

Install page: the image model disk check uses the download's own margin and the model folder's disk

Bowen Xuef83c4974baf5
diff --git a/freevideo_engine/launcher_session.py b/freevideo_engine/launcher_session.py
index c25b712..a33471f 100644
--- a/freevideo_engine/launcher_session.py
+++ b/freevideo_engine/launcher_session.py
@@ -698,12 +698,26 @@ class Session:
return queue_busy(url)
def image_disk_fits(self, total):
- """Whether the chosen installation location has room for the image model."""
+ """Whether the disk the image model downloads to has room for it, by the margin that
+ download itself keeps and after the video models still waiting on the same disk."""
from .image_gen import image_pack
- folder = self.form['destination'] if self.form['new_comfy'] else self.form['comfy']
+ folder = Path(self.form['destination'] if self.form['new_comfy'] else self.form['comfy'])
+ if self.installation_engine():
+ # An existing installation downloads to its own model folder, which may be on another disk.
+ try:
+ folder = self._image_location()[0]
+ except (OSError, ValueError):
+ pass
try:
- return disk_space.free_bytes(Path(folder).expanduser()) >= total + image_pack.RESERVE
- except (OSError, ValueError):
+ folder = folder.expanduser()
+ free = disk_space.free_bytes(folder)
+ row = getattr(self.controller, 'state', None) or {}
+ if row.get('status') == 'review':
+ key = disk_space.disk_key(folder)
+ free -= sum(d.get('needed_bytes', 0) for d in row.get('disks', [])
+ if d.get('path') and disk_space.disk_key(d['path']) == key)
+ return free >= total + image_pack.BACKGROUND_RESERVE
+ except Exception: # A page reading the disk must never fail to draw.
return True
def image_pack_view(self):