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.

Name the missing model downloads in one line and recheck them after a run

Bowen Xuef58ef2391c4f
diff --git a/web/request_assets.js b/web/request_assets.js
index 04eb682..17689f5 100644
--- a/web/request_assets.js
+++ b/web/request_assets.js
@@ -36,9 +36,17 @@ export function createRequestAssets({t, api, request, onError = () => {}}) {
const size = bytes => bytes >= 2 ** 30 ? (bytes / 2 ** 30).toFixed(1) + ' GB' : Math.max(1, Math.round(bytes / 2 ** 20)) + ' MB';
function lines(items) {
const rows = [];
- // Tables and the upscaler are one download to the user.
- const auto = items.filter(item => item.action === 'auto').reduce((sum, item) => sum + item.bytes, 0);
- if (auto) rows.push(t(`Downloads ${size(auto)} before generating`, `生成前会先下载 ${size(auto)}`));
+ // One line names what Generate will fetch first: the two-pass model, then the sampling data.
+ const names = {upscaler: t('two-pass model', '二次采样模型'), sampling: t('sampling data', '采样数据')};
+ const bytes = {};
+ for (const item of items) {
+ if (item.action !== 'auto') continue;
+ const kind = names[item.kind] ? item.kind : 'other';
+ bytes[kind] = (bytes[kind] || 0) + item.bytes;
+ }
+ const parts = [['upscaler', names.upscaler], ['sampling', names.sampling], ['other', t('other model files', '其他模型文件')]]
+ .filter(([kind]) => bytes[kind]).map(([kind, name]) => `${name} ${size(bytes[kind])}`);
+ if (parts.length) rows.push(t(`Downloads before generating: ${parts.join(', ')}`, `生成前会先下载:${parts.join('、')}`));
for (const item of items) {
if (item.kind === 'prompt-vlm') {
rows.push(t(`First prompt rewrite downloads ${size(item.bytes)}`, `首次改写提示词会先下载 ${size(item.bytes)}`));
diff --git a/web/studio.js b/web/studio.js
index 04d1549..8eed91f 100644
--- a/web/studio.js
+++ b/web/studio.js
@@ -1137,6 +1137,8 @@ export function openStudio(node, {extendFrom = null} = {}) {
failure.clear(); node.freevideoFailure = ''; node.freevideoFailureReport = null;
lastQueueError = null; status.textContent = ''; status.dataset.error = 'false';
}
+ // Parts download what they need while they run; the line above Generate is read again when they stop.
+ if (chainWasActive && !active) requestAssets?.refresh(true);
chainWasActive = active;
partList.update(chain, active);
busy = active || Boolean(queueState?.running || queueState?.pending.length); queued = chain?.state === 'queued';
@@ -1308,7 +1310,10 @@ export function openStudio(node, {extendFrom = null} = {}) {
if (chainController?.active) { queueActions.hidden = false; updateRunButton(); return; }
const active = state.running || state.pending[0];
activePrompt = active?.id || null;
+ const wasBusy = busy;
busy = Boolean(active) || progressLive(); queued = !state.running && Boolean(state.pending.length);
+ // A finished, failed or cancelled video may have downloaded what the line above Generate still lists.
+ if (wasBusy && !busy) requestAssets?.refresh(true);
const g = active?.inputs;
// The right-hand frame belongs to the submitted video. Draft edits on
// the left must never reshape a video currently being generated.