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.
Point failed starts to ./freevideo diagnose, show a sign of life in logs while starting, and...
Bowen Xueae4735e1ee22
diff --git a/freevideo_engine/comfy_service.py b/freevideo_engine/comfy_service.pyindex 1160264..5e9e48b 100644--- a/freevideo_engine/comfy_service.py+++ b/freevideo_engine/comfy_service.py@@ -29,6 +29,8 @@ from . import execution_pathsfrom .monitoring import savefrom . import engine_binding+DIAGNOSE = 'If it keeps failing, run ./freevideo diagnose and send the report.'+DEFAULT_PORT = 8188RECORD = 'comfyui-cli.json'STATE = 'service.json'@@ -151,10 +153,10 @@ def install(root, source, machine, port, out=say):out('Installing ComfyUI for FreeVideo. This happens once; the next start takes seconds.')if host_setup(root, source, machine, comfy, download=not (comfy / 'main.py').is_file()):raise RuntimeError('ComfyUI could not be installed. Run the same command again to continue; '- 'downloaded files are kept.')+ 'downloaded files are kept. ' + DIAGNOSE)python = managed_python(Path(root), comfy)if python is None:- raise RuntimeError('ComfyUI was installed, but its environment is incomplete. Run the same command again.')+ raise RuntimeError('ComfyUI was installed, but its environment is incomplete. Run the same command again. ' + DIAGNOSE)else:add_node_packages(root, source, machine, comfy, out)if switching:@@ -434,7 +436,7 @@ def wait_until_open(root, process, *, timeout=300, out=say):state_file = folder(root) / STATEdeadline = time.monotonic() + timeoutshown = time.monotonic()- interactive = sys.stdout.isatty()+ interval = 15 if sys.stdout.isatty() else 30 # A log file gets a sign of life too, less often than a terminal.out('Starting ComfyUI ...')while time.monotonic() < deadline:state = read_json(state_file) or {}@@ -445,12 +447,12 @@ def wait_until_open(root, process, *, timeout=300, out=say):raise RuntimeError(state.get('error') or 'ComfyUI could not start.')if process.poll() is not None:raise RuntimeError(state.get('error') if mine and state.get('error') else- 'The FreeVideo service stopped while starting. See %s.' % (folder(root) / 'service.log'))- if interactive and time.monotonic() - shown >= 15:+ 'The FreeVideo service stopped while starting. See %s. %s' % (folder(root) / 'service.log', DIAGNOSE))+ if time.monotonic() - shown >= interval:shown = time.monotonic()out(' still starting (%d s) ...' % (timeout - (deadline - time.monotonic())))time.sleep(.3)- raise RuntimeError('ComfyUI is still starting after %d s. See %s.' % (timeout, folder(root) / 'service.log'))+ raise RuntimeError('ComfyUI is still starting after %d s. See %s. %s' % (timeout, folder(root) / 'service.log', DIAGNOSE))def respawn(root, state, *, port=None):@@ -700,18 +702,22 @@ def open_command(root, *, port=None, browser=True, restart=False, out=say):def wait_for_running(root, timeout=300, absent=0., out=say):"""Wait while the service starts; `absent` allows for one that a service manager starts shortly."""- started = time.monotonic()+ started = shown = time.monotonic()+ interval = 15 if sys.stdout.isatty() else 30while time.monotonic() - started < timeout:state = running(root)if state is not None and state.get('status') == 'open':return state+ if state is not None and time.monotonic() - shown >= interval:+ shown = time.monotonic()+ out(' still starting (%d s) ...' % (shown - started))if state is None and time.monotonic() - started >= absent:previous = read_json(folder(root) / STATE) or {}if previous.get('status') == 'failed':raise RuntimeError(previous.get('error') or 'ComfyUI could not start.')return Nonetime.sleep(.3)- raise RuntimeError('ComfyUI is still starting. Check freevideo status.')+ raise RuntimeError('ComfyUI is still starting. Check freevideo status. ' + DIAGNOSE)def status_command(root, out=say):diff --git a/freevideo_engine/launcher_copy.py b/freevideo_engine/launcher_copy.pyindex cc581f3..50a9ebb 100644--- a/freevideo_engine/launcher_copy.py+++ b/freevideo_engine/launcher_copy.py@@ -43,7 +43,7 @@ ZH = dict([('Preparing installation', '准备安装'), ('Checking the environment', '正在检查运行环境'),('Testing download sources', '正在测试下载源'), ('Preparing download tools', '正在准备下载工具'),('GitHub mirror', 'GitHub 镜像'), ('attempt', '正在连接'),- ('fallback', '正在切换下载源'), ('route-retry', '正在切换连接'),+ ('fallback', '正在切换下载源'), ('switching', '正在切换下载源'), ('route-retry', '正在切换连接'),('verifying', '正在检查'), ('no-progress', '下载无进展'),('slow-transfer', '持续低速'), ('resume-refused', '当前下载源不支持续传'),('Download PyTorch + CUDA', '下载运行组件'),diff --git a/freevideo_engine/launcher_session.py b/freevideo_engine/launcher_session.pyindex db5e23a..ffe39b8 100644--- a/freevideo_engine/launcher_session.py+++ b/freevideo_engine/launcher_session.py@@ -227,7 +227,7 @@ class Session:except (OSError, ValueError) as error:# Only updates started from the web page are lost; the launcher still opens.self.bridge = None- print('Launcher bridge unavailable: %s' % (error if isinstance(error, ValueError) else type(error).__name__), file=sys.stderr)+ print('Launcher bridge unavailable: %s' % type(error).__name__, file=sys.stderr)if self.form['environment_method'] == 'manual' and self.form['offline_runtime'] and not controller:root = io_path(self.form['offline_runtime'])if (root / 'portable.json').is_file():diff --git a/freevideo_engine/model_transfer.py b/freevideo_engine/model_transfer.pyindex a818676..7feaee8 100644--- a/freevideo_engine/model_transfer.py+++ b/freevideo_engine/model_transfer.py@@ -709,6 +709,7 @@ def download(row, path, plan, progress_callback, headers_for, *, transfer_comple# run_sdk/curl have joined their workers before this point.# Reuse known byte ranges, including disjoint MS parts.from .transfer_handoff import migrate+ network.event(networking,category=network.model_family(row),source=selected,file=path.name,action='switching')# An explicit switch applies to this file even when the# old provider has no portable resume map. Preserve those# fragments on disk and report the restart separately.diff --git a/freevideo_engine/terminal_ui.py b/freevideo_engine/terminal_ui.pyindex 9204553..1b30752 100644--- a/freevideo_engine/terminal_ui.py+++ b/freevideo_engine/terminal_ui.py@@ -200,7 +200,7 @@ class TerminalUI:estimated_step_seconds=row.get('estimated_step_seconds'),step_elapsed_seconds=row.get('step_elapsed_seconds'))row['event_tick'] = now- if not self.live and time.monotonic() - row['heartbeat'] >= 30:+ if not self.live and time.monotonic() - row['heartbeat'] >= 10:self.write(' … %s · %s · %s%s\n' % (row['label'], duration(time.monotonic() - row['started']),row['detail'] + self.eta_text(row), ' · ' + self.resource if self.resource else ''))row['heartbeat'] = time.monotonic()@@ -539,6 +539,10 @@ class LogProgress:elif kind == 'network' and event.get('action') == 'backend':self.model_backend = {'hf-xet': 'HF Xet', 'modelscope-ranges': 'ModelScope parallel','http-ranges': 'Parallel HTTP', 'hf-http': 'HF HTTP'}.get(event.get('method'), '')+ elif kind == 'network' and event.get('action') == 'switching':+ self.model_backend=''+ update(done=0,total=0,rate=None,scope='switching',unit='bytes',+ detail='Switching current download to '+event.get('source','')+' · '+event.get('file',''))elif kind == 'network' and event.get('action') == 'manual-switch':self.model_source=event.get('source','')self.model_backend=''