diff --git a/NOTICE.md b/NOTICE.md index e3ec5b5..e40d85f 100644 --- a/NOTICE.md +++ b/NOTICE.md @@ -20,6 +20,16 @@ OpenMagia would not exist without them. - Role: the generation engine. Prompt-to-video/audio, first/last-frame conditioning, and ordered reference (Ref2VA) inference on Metal. +### FastVideo — optional distilled video backend +- Upstream: +- Code license: Apache License 2.0 — Hao AI Lab and contributors. +- Role: optional native Apple Silicon MLX inference. Uses FastH3 Trim for + text-to-video and FastH3 Omni for image-reference video, with a separate + managed runtime and checkpoints under `addons/fastvideo/`. +- FastH3 weights retain the MiniMax H3 Community License; LightVAE is + Apache-2.0. Model weights and upstream source are downloaded separately, + not distributed in this repository. See `docs/FASTVIDEO_INTEGRATION.md`. + ### llama.cpp — local prompt-formatting runtime - Upstream: - License: MIT License — Copyright (c) 2023–2026 The ggml authors diff --git a/README.md b/README.md index 0d9e702..58c71c9 100644 --- a/README.md +++ b/README.md @@ -96,6 +96,10 @@ The editor launches on macOS, Linux, and Windows, but OpenMagia only advertises Apple Silicon systems can install [H3MLX](https://github.com/robzombai/h3mlx) from **Settings → Models → Add-ons** or with `./install.sh --with-h3mlx`. OpenMagia builds it in the ignored `addons/h3mlx` directory, reuses the existing MiniMax H3 weights, applies its tested video-decoder compatibility fix automatically, and validates the repaired pipeline before completing installation. No manual source editing is required. H3MLX-specific generation presets, progress parsing, queue recovery, backend selection, updates, and complete removal are handled by OpenMagia. +### FastVideo video engine (optional) + +Install FastVideo from **Settings → Models → Available**, then select **Use for video**. It uses FastH3 Trim for text and FastH3 Omni for image references in a separate MLX runtime. Apple Silicon, at least 36 GB memory, and approximately 170 GB disk space are required. Opening-frame anchors and clips under five seconds show a direct action to switch to H3. [Setup, safety review and benchmark method](docs/FASTVIDEO_INTEGRATION.md). [Measured five-second comparisons and sample videos](benchmarks/2026-10-26-fastvideo/README.md). + ### Music generation (optional) Songs come from [YuE 2](https://github.com/multimodal-art-projection/YuE) (m-a-p/YuE2-3B). Install it with `./install.sh --with-yue` or from **Settings → Music**. @@ -142,10 +146,24 @@ Read [CONTRIBUTING.md](CONTRIBUTING.md), follow the [Code of Conduct](CODE_OF_CO ## Built with -[MiniMax H3](https://huggingface.co/MiniMaxAI/MiniMax-H3) · [YuE 2](https://github.com/multimodal-art-projection/YuE) by m-a-p · [h3.c](https://github.com/antirez/h3.c) by Salvatore Sanfilippo · [FFmpeg](https://ffmpeg.org/) · [llama.cpp](https://github.com/ggml-org/llama.cpp) · [Qwen2.5 7B Instruct](https://huggingface.co/Qwen/Qwen2.5-7B-Instruct-GGUF) +[MiniMax H3](https://huggingface.co/MiniMaxAI/MiniMax-H3) · [YuE 2](https://github.com/multimodal-art-projection/YuE) by m-a-p · [h3.c](https://github.com/antirez/h3.c) by Salvatore Sanfilippo · [FastVideo](https://github.com/hao-ai-lab/FastVideo) by Hao AI Lab · [FFmpeg](https://ffmpeg.org/) · [llama.cpp](https://github.com/ggml-org/llama.cpp) · [Qwen2.5 7B Instruct](https://huggingface.co/Qwen/Qwen2.5-7B-Instruct-GGUF) The Character Creator approach was inspired by [PoopMan333's H3 Character Sheet Generator](https://huggingface.co/PoopMan333/H3_Character_Sheet_Generator). OpenMagia is independent and is not affiliated with or endorsed by MiniMax or the projects above. Full attribution and component licenses are in [NOTICE.md](NOTICE.md). ## License Copyright © 2026 David Vera. OpenMagia is released under the [GNU Affero General Public License v3.0 only](LICENSE). Modified network-accessible versions must make their corresponding source available under the same license. Third-party components retain their own licenses. + +### MiniMax H3 Image (Apple Silicon) + +Install **MiniMax H3 Images** under **Settings → Models → Available** after +reviewing the [model license](https://huggingface.co/MiniMaxAI/MiniMax-H3-Image/blob/main/LICENSE). +Allow roughly 52 GB of disk space. The module uses the [H3 Image MLX runtime](https://github.com/Anionex/h3-image-mlx) +and its documented INT8 model pack in `addons/h3-image`. + +Choose **Use for images** after installation, or switch models in **Generate → +Image**. The selection is saved independently of the video engine. H3 Image +supports fixed six-step text generation and image editing with up to nine +ordered still-image references in OpenMagia. Refer to them as ``, +``, and so on. Choose an aspect ratio, seed and output preset +from 512 px preview through 4096 px on the longest edge. diff --git a/app.js b/app.js index 269d59d..49a3b93 100644 --- a/app.js +++ b/app.js @@ -1286,9 +1286,9 @@ function renderMedia() { grid.appendChild(fd); } if (!items.length && !folders.length) { - const e = div('empty'); - e.textContent = q ? 'No media matches your search.' : (mediaFolder ? '' : 'No media yet \u2014 import a clip or generate one.'); - if (!q && mediaFolder) return; + const e = div('mediaEmpty'); + if(q)e.textContent='No media matches your search.'; + else e.innerHTML=''+(mediaFolder?'This folder is empty':'Start with some media')+'

'+(mediaFolder?'Drop media here to keep it together.':'Import or generate an image, video, or song.')+'

'; grid.appendChild(e); return; } for (const m of items) { @@ -2047,6 +2047,7 @@ function bindInfoTooltips() { } function updateSecsHint() { const f = $('#genFrames'); const hint = $('#genSecsHint'); + renderModelCapability(); if (f && hint) { const v = parseFloat(f.value); const seconds = isFinite(v) ? (v / 24).toFixed(1) : '0'; hint.textContent = '≈ ' + seconds + 's'; if ($('#composerDuration')) $('#composerDuration').textContent = seconds + 's'; } } let selChars = new Set(); @@ -2135,8 +2136,8 @@ function closeComposerPicker() { function applyProjectStyle(t) { selectedTemplate = t; const profile = { name: t.name, prompt: t.style, skill_id: t.id, source: 'OpenMagia H3 style' }; - api('/api/project', { method: 'POST', body: { style_profile: profile, style_enabled:true } }).then(() => { - state.style_profile = profile; state.style_enabled=true; renderGenerate(); closeComposerPicker(); toast('Project style applied', 'ok'); + api('/api/project', { method: 'POST', body: { style_profile: profile, style_enabled:state.style_enabled!==false } }).then(() => { + state.style_profile = profile; renderGenerate(); closeComposerPicker(); toast('Project style applied', 'ok'); }).catch(e => toast(e.message, 'err')); } function renderComposerPicker() { @@ -2146,10 +2147,13 @@ function renderComposerPicker() { const q = ($('#composerPickerSearch').value || '').toLowerCase(); if (composerPickerMode === 'models') { $('#composerPickerTitle').textContent = 'Models'; - $('#composerPickerSubtitle').textContent = 'Choose the generator for this composer.'; $('#composerPickerSubtitle').style.display = ''; - for (const model of MODEL_CATALOG.filter(m => (m.name + ' ' + m.type + ' ' + m.detail).toLowerCase().includes(q))) { - const b = document.createElement('button'); b.className = 'pickerRow' + (selectedModel === model.id ? ' on' : ''); b.disabled = !model.available; - b.innerHTML = '' + (model.type === 'Video' ? '▶' : '♫') + '' + esc(model.name) + '' + esc(model.type + ' · ' + model.detail) + '' + (selectedModel === model.id ? 'Selected' : (model.available ? 'Select' : 'Soon')) + ''; + syncVideoModelCards(); + $('#composerPickerSubtitle').style.display = 'none'; + const models=$('#genType').value==='image'?imageModelCards():MODEL_CATALOG.filter(m=>m.type==='Video'); + const active=$('#genType').value==='image'?currentImageModel():selectedModel; + for (const model of models.filter(m => (m.name + ' ' + m.type + ' ' + m.detail).toLowerCase().includes(q))) { + const b = document.createElement('button'); b.className = 'pickerRow' + (active === model.id && model.available ? ' on' : ''); b.disabled = !model.available; + b.innerHTML = '' + (model.type === 'Video' ? '▶' : '▣') + '' + esc(model.name) + '' + esc(model.type + ' · ' + model.detail) + '' + (!model.available ? 'Install in settings' : active === model.id ? 'Selected' : 'Select') + ''; b.addEventListener('click', () => { selectedPickerItem = model; renderPickerDetail(); }); wrap.appendChild(b); } return; @@ -2239,14 +2243,15 @@ function renderPickerDetail() { $('#pickerApply').addEventListener('click',()=>{if(selRefs.has(item.id))selRefs.delete(item.id);else{const next=[...selRefs,item.id],error=referenceSelectionError(next);if(error&&!error.startsWith('Add at least one image')){toast(error,'err');return;}selRefs.add(item.id);}normalizeCharacterReferenceSelection();renderGenerate();closeComposerPicker();}); $('#composerPicker').classList.add('detail-open');return; } - const body = castMode ? 'Include this character’s ordered identity references in the next generation.' : sourceMode ? (item.kind === 'image' ? 'This still image will become the opening visual reference for the generated scene.' : 'Choose whether the first or last frame of this media should become the opening visual reference.') : modelMode ? (item.id === 'h3' ? 'Creates synchronized video and audio locally through h3.c. Accepts 4–15 seconds at 24fps, up to nine ordered images, and up to three audio references totaling 15 seconds.' : 'Composes a finished song from a style description and lyrics. It takes no length, tempo, key, reference audio, or negative prompt - YuE 2 has no such argument, so OpenMagia offers none.') + const body = castMode ? 'Include this character’s ordered identity references in the next generation.' : sourceMode ? (item.kind === 'image' ? 'This still image will become the opening visual reference for the generated scene.' : 'Choose whether the first or last frame of this media should become the opening visual reference.') : modelMode ? (item.type === 'Video' ? item.detail : 'Composes a finished song from a style description and lyrics. It takes no length, tempo, key, reference audio, or negative prompt - YuE 2 has no such argument, so OpenMagia offers none.') : styleMode ? item.style : promptSkillInstruction(item); const steps = item.steps || (item.defaults ? Object.entries(item.defaults).map(([k,v]) => k + ': ' + v) : []); const sourceGenerating = sourceMode && ['queued','running'].includes(item.status); const sourcePreview = sourceMode ? '
' + (sourceGenerating ? 'Generating mediaThe last frame will be used when it is ready' : item.kind === 'image' ? '' : '') + '
' : ''; box.innerHTML = sourcePreview + '' + (castMode ? 'SCENE CAST' : sourceMode ? 'OPENING REFERENCE' : modelMode ? 'MODEL DETAILS' : styleMode ? 'PERSISTENT PROJECT STYLE' : 'SCENE PROMPT SKILL') + '

' + esc(title) + '

' + esc(sourceGenerating ? 'Continue directly from this generation. OpenMagia will take its last frame when ready and locally refine the next prompt for visual continuity.' : summary) + '

' + esc(body) + '
' + (sourceMode && item.kind !== 'image' && !sourceGenerating ? '
' : '') + (steps.length ? '
    ' + steps.map(s => '
  • ' + esc(s) + '
  • ').join('') + '
' : '') + '
'; + if(modelMode)box.innerHTML='

'+esc(item.name)+'

'+esc(item.detail)+'

'; $$('.frameChoice button', box).forEach(b => b.addEventListener('click', () => { pendingSourceFrame = b.dataset.frame; $$('.frameChoice button', box).forEach(x => x.classList.toggle('on', x === b)); })); - $('#pickerApply').addEventListener('click', () => { + $('#pickerApply').addEventListener('click', async() => { if (castMode) { if (selChars.has(item.id)) selChars.delete(item.id); else { @@ -2256,7 +2261,7 @@ function renderPickerDetail() { renderGenerate(); closeComposerPicker(); } else if (sourceMode) { sourceSelection = { mediaId:item.id, frame:pendingSourceFrame, name:item.name }; renderSourceContext(); closeComposerPicker(); } - else if (modelMode) { selectedModel = item.id; $('#modelPickerBtn').textContent = '▣ Models · H3'; closeComposerPicker(); } + else if (modelMode) { try{if(item.type==='Image')await selectImageBackend(item.id);else if(item.backend)await api('/api/models/select',{method:'POST',body:{kind:'h3_backend',model_id:item.backend,role:'video_generation'}});else if(item.id==='music')$('#genType').value='music';await refresh();applyGenerationType();closeComposerPicker();}catch(error){toast(error.message,'err');} } else if (styleMode) applyProjectStyle(item); else if(composerPickerMode==='music-skills'){if(musicSkillId!==item.id)musicSkillCustomization='';musicSkillId=item.id;renderMusicSkills();compileMusicPreview(true);closeComposerPicker();$('#musicPrompt').focus();} else { activePromptSkill = item; renderActivePromptSkill(); closeComposerPicker(); $('#genPrompt').focus(); } @@ -2449,7 +2454,11 @@ function captureStoryboardFields(){ function scheduleStoryboardSave(){captureStoryboardFields();clearTimeout(storyboardSaveTimer);const slug=storyboardProjectSlug,draft=JSON.parse(JSON.stringify(storyboardDraft));if(!slug||!draft)return;storyboardSaveTimer=setTimeout(()=>api('/api/projects/'+encodeURIComponent(slug)+'/storyboard',{method:'POST',body:{project_slug:slug,storyboard_draft:draft}}).catch(()=>{}),300);} function renderStoryboard(){ const draft=ensureStoryboardDraft(),style=draft.style_profile||{}; - draft.use_project_style=true;$('#storyboardStyle').value=style.prompt||''; + const fastvideo=engine&&engine.h3_backend==='fastvideo'; + ['storyboardQuality','storyboardSteps'].forEach(id=>{$('#'+id).closest('label').hidden=fastvideo;}); + if(fastvideo)draft.output.steps=8; + renderStoryboardModelCapability(draft); + $('#storyboardStyle').value=style.prompt||'';$('#storyboardStyleEnabled').checked=draft.use_project_style!==false; draft.optimize_scenes=false;const out=draft.output||{};$('#storyboardAspect').value=out.aspect||canvasAspect(state.canvas);$('#storyboardResolution').value=out.resolution||'native';$('#storyboardQuality').value=out.quality||'high';$('#storyboardSteps').value=out.steps||30;$('#storyboardSeed').value=out.seed??42;$('#storyboardAudioMode').value=out.audio_mode||'effects';$('#storyboardAudioNotes').value=out.audio_notes||''; const wrap=$('#storyboardScenes');wrap.innerHTML=''; draft.scenes.forEach((card,index)=>{ @@ -2466,7 +2475,7 @@ function renderStoryboard(){ });updateStoryboardSummary(); } function updateStoryboardSummary(){if(!storyboardDraft)return;const label=$('#storyboardGenerate span');if(label)label.textContent='Generate '+storyboardDraft.scenes.length+' scene'+(storyboardDraft.scenes.length===1?'':'s');} -function openStoryboard(){ensureStoryboardDraft();renderStoryboard();$('#storyboardWorkspace').classList.add('on');$('#storyboardWorkspace').setAttribute('aria-hidden','false');document.body.classList.add('storyboardOpen');$('.storyboardBody').scrollTop=0;$('#storyboardClose').focus({preventScroll:true});} +function openStoryboard(){ensureStoryboardDraft();renderStoryboard();renderStoryboardModelCapability(ensureStoryboardDraft());$('#storyboardWorkspace').classList.add('on');$('#storyboardWorkspace').setAttribute('aria-hidden','false');document.body.classList.add('storyboardOpen');$('.storyboardBody').scrollTop=0;$('#storyboardClose').focus({preventScroll:true});} function closeStoryboard(){scheduleStoryboardSave();$('#storyboardWorkspace').classList.remove('on');$('#storyboardWorkspace').setAttribute('aria-hidden','true');document.body.classList.remove('storyboardOpen');} function renderMagiaContext(){if(!magiaCard)return;const wrap=$('#magiaContext'),skill=storyboardPromptSkill(magiaCard),parts=[];for(const id of magiaCard.character_ids||[]){const character=state.characters.find(item=>item.id===id);if(character)parts.push(''+esc(character.name)+'');}for(const id of magiaCard.reference_media_ids||[]){const media=mediaById(id);if(media)parts.push(''+esc(media.name)+'');}if(skill)parts.push('✦ '+esc(skill.name)+'');wrap.innerHTML=parts.join('')||'No context added';updateMagiaPlan();} function updateMagiaPlan(){const seconds=Math.max(1,parseFloat($('#magiaDuration')&&$('#magiaDuration').value)||30),block=$('#magiaOptimize')&&$('#magiaOptimize').checked?5:15,count=Math.ceil(seconds/block),plan=$('#magiaPlan');if(plan)plan.textContent=count<2?'Increase duration to create at least 2 scenes':count>24?'Maximum 24 scenes':count+' scenes · '+block+' seconds each'+(seconds%block?' · shorter final scene':'')+' · up to 24';} @@ -2577,12 +2586,23 @@ async function confirmContinuityReview(){ button.textContent='Apply enabled changes'; }catch(error){toast(error.message,'err');button.textContent='Preview selected fixes';}finally{button.disabled=false;} } +function renderStoryboardModelCapability(draft){ + const box=$('#storyboardModelCapability');if(!box)return false; + const fastvideo=engine&&engine.h3_backend==='fastvideo'; + const short=fastvideo&&draft.scenes.some(card=>+(card.params||{}).frames<120||(!(card.params||{}).frames&&+(draft.output||{}).frames<120)); + const anchored=fastvideo&&draft.scenes.some((card,index)=>(card.source_media_id||(index>0&&card.continue_previous!==false))&&card.continuity_mode!=='reference'); + box.hidden=!(short||anchored);if(box.hidden){box.replaceChildren();return false;} + const message=document.createElement('div');message.textContent=anchored?'FastVideo can’t use opening frames.':'FastVideo needs at least 5 seconds per scene.';box.replaceChildren(message); + const button=document.createElement('button');button.className='actionLink';button.textContent='Switch to H3';box.appendChild(button); + button.onclick=async()=>{button.disabled=true;try{const management=await api('/api/models/manage'),replacement=(management.installations||[]).find(item=>item.available&&['h3-metal','h3mlx'].includes(item.backend_id));if(!replacement){message.textContent='Install H3 to use this option.';button.textContent='Open settings';button.onclick=()=>{closeStoryboard();setHubView('settings');};button.disabled=false;return;}await api('/api/models/select',{method:'POST',body:{kind:'h3_backend',model_id:replacement.backend_id,role:'video_generation'}});await refresh();renderStoryboard();}catch(error){message.textContent=error.message;button.disabled=false;}}; + return true; +} async function generateStoryboard(){ - if(storyboardSubmitting||continuityAuditPending)return;captureStoryboardFields();const draft=ensureStoryboardDraft(),empty=draft.scenes.findIndex(s=>!String(s.prompt||'').trim());if(empty>=0){toast('Scene '+(empty+1)+' needs a prompt','err');return;}const fingerprint=continuityReviewFingerprint(draft);if(!draft.continuity_review||draft.continuity_review.fingerprint!==fingerprint){await requestContinuityReview(draft);return;}const out=draft.output||{},aspect=out.aspect||'1:1',native=out.resolution==='native',landscape=aspect==='16:9',portrait=aspect==='9:16',dims=native?(landscape?[1344,768]:portrait?[768,1344]:[768,768]):(landscape?[896,512]:portrait?[512,896]:[512,512]),h3mlx=engine&&engine.h3_backend==='h3mlx',quality=h3mlx?{layers:35,reuse:out.quality==='balanced'?2:1}:({balanced:{layers:45,reuse:2},high:{layers:50,reuse:1},reference:{layers:50,reuse:1}}[out.quality]||{layers:45,reuse:2}); + if(storyboardSubmitting||continuityAuditPending)return;captureStoryboardFields();const draft=ensureStoryboardDraft();if(renderStoryboardModelCapability(draft)){$('#storyboardModelCapability').scrollIntoView({block:'nearest'});return;}const empty=draft.scenes.findIndex(s=>!String(s.prompt||'').trim());if(empty>=0){toast('Scene '+(empty+1)+' needs a prompt','err');return;}const fingerprint=continuityReviewFingerprint(draft);if(!draft.continuity_review||draft.continuity_review.fingerprint!==fingerprint){await requestContinuityReview(draft);return;}const out=draft.output||{},aspect=out.aspect||'1:1',native=out.resolution==='native',landscape=aspect==='16:9',portrait=aspect==='9:16',dims=native?(landscape?[1344,768]:portrait?[768,1344]:[768,768]):(landscape?[896,512]:portrait?[512,896]:[512,512]),h3mlx=engine&&engine.h3_backend==='h3mlx',quality=h3mlx?{layers:35,reuse:out.quality==='balanced'?2:1}:({balanced:{layers:45,reuse:2},high:{layers:50,reuse:1},reference:{layers:50,reuse:1}}[out.quality]||{layers:45,reuse:2}); if(native&&(+out.frames||56)>=240&&(out.quality==='high'||out.quality==='reference'))toast('Attempting the selected full '+(out.quality==='reference'?'Reference':'High')+' schedule. Long native renders may take substantially longer; OpenMagia will use one clearly reported stable retry only if the process stalls.','ok'); storyboardSubmitting=true;$('#storyboardWorkspace').classList.add('storyboardSubmitting');const button=$('#storyboardGenerate');button.querySelector('span').textContent='Queuing storyboard…'; try{for(let index=0;index t.id === profile.skill_id) || null; if (styleEl && document.activeElement !== styleEl) styleEl.value = profile.prompt || ''; - const hasStyle=!!String(profile.prompt||'').trim(); - // Shared style has one simple state: present means applied. Normalize older - // projects that saved text while the former on/off switch was disabled. - if(hasStyle&&state.style_enabled===false){state.style_enabled=true;api('/api/project',{method:'POST',body:{style_enabled:true}}).catch(()=>{});} + $('#sharedStyleEnabled').checked=state.style_enabled!==false; // Cast is opt-in per scene; selected members appear as removable context. if (!selCharsInitialized) selCharsInitialized = true; @@ -2632,24 +2649,74 @@ function renderGenerate() { const aspect=$('#genAspect');if(aspect)aspect.value=canvasAspect(state.canvas); } +function currentImageModel(){return engine?.image_model||'h3';} +function imageModelCards(){ + return [ + {id:'h3',name:'Default',type:'Image',detail:'Still images using the native H3 engine',available:!!engine?.video_backends?.find(item=>item.id==='h3-metal')?.ready}, + {id:'h3-image',name:'MiniMax H3 Images',type:'Image',detail:'Text to image and image editing · up to 4K',available:!!engine?.h3_image?.ready}, + {id:'qwen-image',name:'Qwen-Image-2.1-Turbo',type:'Image',detail:'Text to image and image editing',available:!!engine?.qwen_image?.ready} + ]; +} + +function syncVideoModelCards(){ + const entries=[ + {id:'h3',backend:'h3-metal',name:'Default',type:'Video',detail:'h3.c · Text, image references and opening frames'}, + {id:'h3mlx',backend:'h3mlx',name:'H3MLX',type:'Video',detail:'Text, image references and opening frames'}, + {id:'fastvideo',backend:'fastvideo',name:'FastVideo',type:'Video',detail:'Text and image references · 8 passes · 5–15 seconds'} + ]; + for(const entry of entries){const ready=(engine&&engine.video_backends||[]).find(item=>item.id===entry.backend);entry.available=ready?!!ready.ready:!!(engine&&engine.h3_bin_ok&&(entry.id==='h3'||entry.backend===engine.h3_backend));const current=MODEL_CATALOG.find(item=>item.id===entry.id);if(current)Object.assign(current,entry);else MODEL_CATALOG.push(entry);} + selectedModel=(engine&&engine.h3_backend)==='h3-metal'?'h3':engine&&engine.h3_backend||'h3'; + const active=MODEL_CATALOG.find(item=>item.id===selectedModel); + const model=$('#genType').value==='image'?imageModelCards().find(item=>item.id===currentImageModel()):active; + $('#modelPickerBtn').textContent='▣ Models · '+(model?.name||'Default'); +} function syncMusicModelCard(){const runtime=musicRuntime(),entry=(typeof MODEL_CATALOG!=='undefined'?MODEL_CATALOG:[]).find(item=>item.id==='music');if(!entry)return; entry.available=musicReady(); entry.detail=runtime?(runtime.ready?('Song composer · '+(runtime.device||'local runtime')+' · description, lyrics, plan, score, seed'):('Not ready · '+(((runtime.missing||[]).join(' · '))||'no runtime selected'))):'Music generation · runtime not detected'; entry.note=runtime&&!runtime.ready?'Install YuE 2 in Models':'';} +function fastVideoConflict(){ + if(!engine||engine.h3_backend!=='fastvideo'||$('#genType').value!=='video')return ''; + if(sourceSelection)return 'FastVideo can’t use an opening frame.'; + if(+$('#genFrames').value<120)return 'FastVideo needs at least 5 seconds.'; + return ''; +} +function renderModelCapability(){ + const box=$('#modelCapabilityNotice');if(!box)return; + const message=fastVideoConflict();box.hidden=!message; + if(!message){box.replaceChildren();return;} + const text=document.createElement('div');text.textContent=message;box.replaceChildren(text); + if(!sourceSelection){const duration=document.createElement('button');duration.className='actionLink';duration.textContent='Use 5 seconds';duration.onclick=()=>{$('#genFrames').value=120;updateSecsHint();renderModelCapability();};box.appendChild(duration);} + const change=document.createElement('button');change.className='actionLink';change.textContent='Switch to H3'; + change.onclick=async()=>{change.disabled=true;try{const management=await api('/api/models/manage');const replacement=(management.installations||[]).find(item=>item.available&&['h3-metal','h3mlx'].includes(item.backend_id));if(!replacement){text.textContent='Install H3 to use this option.';change.textContent='Open settings';change.onclick=()=>setHubView('settings');change.disabled=false;return;}await api('/api/models/select',{method:'POST',body:{kind:'h3_backend',model_id:replacement.backend_id,role:'video_generation'}});await refresh();applyGenerationType();renderModelCapability();}catch(error){text.textContent=error.message;change.disabled=false;}}; + box.appendChild(change); +} + +async function selectImageBackend(modelId){ + await api('/api/models/select',{method:'POST',body:{kind:'image_backend',model_id:modelId,role:'image_generation'}}); + if(engine)engine.image_model=modelId; + applyGenerationType(); + await refresh(true); +} + function applyGenerationType() { + syncVideoModelCards(); syncMusicModelCard(); const select=$('#genType'),controls=$('#videoGenerationControls'),notice=$('#generationTypeNotice'),button=$('#genBtn'); if(!select||!controls||!notice||!button)return; const type=select.value||'video'; + button.closest('.generateFooter').hidden=type==='storyboard'; if(!select.value)select.value='video'; const isVideo=type==='video',isImage=type==='image',isStoryboard=type==='storyboard',isMusic=type==='music'; - $('#imageModelRow').hidden=!isImage; - const qwenImage=isImage&&$('#imageModel').value==='qwen-image'; - ['genQuality','genSteps'].forEach(id=>{$('#'+id).closest('.field').hidden=qwenImage;}); - $('#modelPickerBtn').hidden=qwenImage; + const dedicatedImage=isImage&¤tImageModel()!=='h3'; + const h3Image=isImage&¤tImageModel()==='h3-image'; + const fastvideo=isVideo&&engine&&engine.h3_backend==='fastvideo'; + ['genQuality','genSteps'].forEach(id=>{$('#'+id).closest('.field').hidden=dedicatedImage||fastvideo;}); + $('#genFrames').min=fastvideo?'120':'8'; + if(fastvideo)$('#genSteps').value=8; + renderModelCapability(); const keepResolution=$('#genResolution').value; - $('#genResolution').innerHTML=qwenImage?'':''; - if(keepResolution)$('#genResolution').value=keepResolution; + $('#genResolution').innerHTML=h3Image?'':dedicatedImage?'':''; + if([...$('#genResolution').options].some(option=>option.value===keepResolution))$('#genResolution').value=keepResolution; const musicBox=$('#musicGenerationControls');const musicOk=isMusic&&musicReady(); controls.hidden=!(isVideo||isImage);if(musicBox)musicBox.hidden=!isMusic; @@ -2658,7 +2725,7 @@ function applyGenerationType() { button.querySelector('span').textContent=generationSubmitting?'Generating…':(isMusic?'Generate song':isImage?'Generate image':isVideo?'Generate scene':'Generation unavailable'); $('#genPrompt').placeholder=isImage?'Describe one finished image: subject, composition, environment, lighting, materials, and exact text…':'Describe the scene, action, camera, dialogue or visible text…'; if(isImage){notice.innerHTML='';sourceSelection=null;renderSourceContext();} - else if(isStoryboard){notice.innerHTML='Build a continuous multi-scene sequenceUse one project style and output setup across horizontally arranged scene prompts. Previous-frame continuity is enabled by default.';$('#openStoryboardBtn').addEventListener('click',openStoryboard);} + else if(isStoryboard){notice.innerHTML='';$('#openStoryboardBtn').addEventListener('click',openStoryboard);} else if(isMusic){notice.innerHTML=musicNoticeMarkup();const jump=$('#musicGoSettings');if(jump)jump.addEventListener('click',()=>setHubView('settings'));bindMusicComposer();compileMusicPreview(true);} } @@ -2762,7 +2829,12 @@ function applyDurationSeconds(seconds) { updateSecsHint(); renderGenerate(); } function renderSourceContext() { + renderModelCapability(); const b = $('#sourcePickerBtn'); if (!b) return; + if($('#genType').value==='image'&¤tImageModel()!=='h3'){ + $('#composerMode').textContent=selectedReferenceCount()?'Image edit':'Text to image'; + return; + } if (!sourceSelection) { b.textContent = '+ Continue frame from media'; b.classList.remove('on'); $('#sourceClearBtn').classList.remove('on'); b.title = 'Choose a frame from a scene, video, or image'; const refs = selectedReferenceCount(); $('#composerMode').textContent = refs && engine && engine.ref2va ? 'Ref2VA' : 'T2VA'; return; } b.textContent = sourceSelection.name + ' · ' + (sourceSelection.frame === 'first' ? 'First frame' : sourceSelection.frame === 'last' ? 'Last frame' : 'Image'); b.classList.add('on'); $('#sourceClearBtn').classList.add('on'); b.title = 'Change opening reference'; @@ -2793,6 +2865,7 @@ async function generate() { const generationType=$('#genType').value==='image'?'image':'video'; const prompt = $('#genPrompt').value.trim(); if (!prompt) { toast('Write a prompt first', 'err'); return; } + if(fastVideoConflict()){renderModelCapability();$('#modelCapabilityNotice').scrollIntoView({block:'nearest'});return;} recoverStructuredPromptCast(prompt); generationSubmitting = true; const genButton = $('#genBtn'); @@ -2805,12 +2878,18 @@ async function generate() { const dimensions = native ? (landscape ? [1344, 768] : portrait ? [768, 1344] : [768, 768]) : (landscape ? [896, 512] : portrait ? [512, 896] : [512, 512]); - if(generationType==='image'&&$('#imageModel').value==='qwen-image'){ + if(generationType==='image'&¤tImageModel()==='h3-image'){ + const edge=({preview:512,native:1024,'2k':2048,'4k':4096})[$('#genResolution').value]||1024; + const short=Math.round(edge*9/16/32)*32; + dimensions[0]=portrait?short:edge; + dimensions[1]=landscape?short:edge; + } + if(generationType==='image'&¤tImageModel()==='qwen-image'){ const side=native?1024:512; dimensions[0]=landscape?Math.round(side*16/9/32)*32:side; dimensions[1]=portrait?Math.round(side*16/9/32)*32:side; } - const h3mlx=engine&&engine.h3_backend==='h3mlx'; + const fastvideo=engine&&engine.h3_backend==='fastvideo',h3mlx=engine&&engine.h3_backend==='h3mlx'; const quality = h3mlx?{ balanced: { steps: 20, layers: 35, reuse: 2 }, high: { steps: 30, layers: 35, reuse: 1 }, @@ -2821,7 +2900,7 @@ async function generate() { reference: { steps: 50, layers: 50, reuse: 1 } }[$('#genQuality').value] || { steps: 30, layers: 50, reuse: 1 }; const params = { width: dimensions[0], height: dimensions[1], - frames: generationType==='image'?5:+$('#genFrames').value, steps: clamp(+$('#genSteps').value || quality.steps, 1, h3mlx?30:60), layers: quality.layers, + frames: generationType==='image'?22:+$('#genFrames').value, steps: fastvideo&&generationType==='video'?8:clamp(+$('#genSteps').value || quality.steps, 1, h3mlx?30:60), layers: quality.layers, reuse: quality.reuse, seed: +$('#genSeed').value || 42, quality: $('#genQuality').value, audio_mode: $('#genAudioMode').value }; // persist the style, then create + run the scene. character_ids is sent @@ -2847,7 +2926,7 @@ async function generate() { if(generationType==='image'&&selectedReferenceKinds().audio.length)throw new Error('Audio references are supported for H3 video generation only. Remove the audio reference or switch to Video.'); let generationPrompt = prompt; let refinementResult = null; - if ((generationType!=='image' || $('#imageModel').value!=='qwen-image') && (generationType==='image' || sourceSelection || activePromptSkill)) { + if ((generationType!=='image' || currentImageModel()==='h3') && (generationType==='image' || sourceSelection || activePromptSkill)) { const formatContext=singleSceneFormatContext(); toast(generationType==='image'?'Composing the still-image prompt locally…':sourceSelection ? 'Refining frame continuity locally…' : 'Adapting the OpenMagia skill for H3 locally…', 'ok'); const refined = await api('/api/prompt/format', { method:'POST', body:{ idea:prompt, style:activeStylePrompt, frames:params.frames, @@ -2858,7 +2937,7 @@ async function generate() { refinementResult = refined; } await api('/api/project', { method: 'POST', body: { style_profile: styleProfile, canvas: { width: dimensions[0], height: dimensions[1] } } }); - const s = await api('/api/scenes', { method: 'POST', body: { prompt:generationPrompt, original_prompt:prompt, refined_prompt:refinementResult?refinementResult.expanded_idea:prompt, skill_compilation:refinementResult&&refinementResult.skill_compilation, generation_type:generationType, image_model:$('#imageModel').value, use_project_style:useProjectStyle, character_ids: Array.from(selChars), character_reference_ids:characterReferencePayload(), reference_media_ids:Array.from(selRefs), params, chain, + const s = await api('/api/scenes', { method: 'POST', body: { prompt:generationPrompt, original_prompt:prompt, refined_prompt:refinementResult?refinementResult.expanded_idea:prompt, skill_compilation:refinementResult&&refinementResult.skill_compilation, generation_type:generationType, image_model:currentImageModel(), use_project_style:useProjectStyle, character_ids: Array.from(selChars), character_reference_ids:characterReferencePayload(), reference_media_ids:Array.from(selRefs), params, chain, template_id: selectedTemplate && selectedTemplate.id, prompt_skill_id: activePromptSkill && activePromptSkill.id, guide_answers: skillAnswers, source_media_id: sourceSelection && sourceSelection.mediaId, source_frame: sourceSelection && sourceSelection.frame } }); await api('/api/scenes/' + s.id + '/generate', { method: 'POST' }); @@ -4075,10 +4154,10 @@ function setHubView(view) { if (view === 'settings') renderSettings(); } -function modelSettingsFingerprint(value){const installs=value.model_installs||{};return JSON.stringify([(value.qwen_image||{}).ready,value.h3_bin_ok,value.fl2va,value.ref2va,value.formatter,value.ffmpeg,Object.entries(installs).sort(([a],[b])=>a.localeCompare(b)).map(([id,job])=>[id,job?.status||''])]);} +function modelSettingsFingerprint(value){const installs=value.model_installs||{};return JSON.stringify([(value.fastvideo||{}).ready,value.h3_backend,value.image_model,value.h3_image?.ready,(value.qwen_image||{}).ready,value.h3_bin_ok,value.fl2va,value.ref2va,value.formatter,value.ffmpeg,Object.entries(installs).sort(([a],[b])=>a.localeCompare(b)).map(([id,job])=>[id,job?.status||''])]);} function updateModelInstallProgress(){ const installs=engine.model_installs||{}; - for(const [component,verb] of [['h3','Downloading'],['formatter','Installing'],['runtime','Installing'],['yue','Installing'],['qwen-image','Installing']]){ + for(const [component,verb] of [['h3','Downloading'],['h3mlx','Installing'],['fastvideo','Installing'],['formatter','Installing'],['runtime','Installing'],['yue','Installing'],['qwen-image','Installing'],['h3-image','Installing']]){ const job=installs[component]||{}; if(job.status!=='running')continue; const label=verb+'…'+(Number.isFinite(job.progress)?' '+job.progress+'%':''); @@ -4101,6 +4180,14 @@ function openModelLicense(item){ const music=item.media==='music',image=item.media==='image'; $('#modelLicenseSubtitle').textContent=image?'Review Qwen Image terms before downloading.':music?'Review YuE 2 model terms before downloading.':item.id==='h3mlx'?'Review the experimental engine terms before installation.':'Review and accept the MiniMax H3 terms before the download begins.'; $('#modelLicenseBody').innerHTML=image?'

Qwen Image uses the Qwen Research License for noncommercial evaluation. Commercial use requires a separate license. The model and isolated runtime stay in OpenMagia’s managed folder on this disk.

Read the complete license ↗
':music?'

YuE 2 code is Apache-2.0. Its model weights are CC BY-NC 4.0 and download to this user’s Hugging Face cache; the runtime stays in the ignored addons/yue folder.

Read the model license ↗
':'

'+(item.id==='h3mlx'?'H3MLX is an experimental MIT-licensed engine and reuses your existing MiniMax H3 weights. Its complete managed engine is stored in addons/h3mlx.':'This backend uses MiniMax H3 weights and is governed by the MiniMax H3 Community License. OpenMagia will download the backend into this computer’s managed models folder.')+'

Read the complete license ↗
'; + if(item.id==='h3-image'){ + $('#modelLicenseSubtitle').textContent='Review the MiniMax H3 Image Community License.'; + $('#modelLicenseBody').innerHTML='

Downloads about 50 GB of INT8 weights and a separate MLX runtime for Apple Silicon.

Read the model license ↗
'; + } + if(item.id==='fastvideo'){ + $('#modelLicenseSubtitle').textContent='Review FastVideo and the distilled MiniMax H3 model terms.'; + $('#modelLicenseBody').innerHTML='

FastVideo code is Apache-2.0. FastH3 weights retain the MiniMax H3 Community License. This optional module installs separate Trim and Omni checkpoints and an isolated MLX runtime (about 170 GB including conversion sources). It supports text and image references; exact opening-frame anchors are unavailable. Generation stays local.

FastVideo license ↗MiniMax H3 model license ↗
'; + } const confirm=$('#modelLicenseConfirm');confirm.disabled=true;confirm.textContent='Accept and download'; $('#modelLicenseAccept').addEventListener('change',event=>{confirm.disabled=!event.target.checked;}); const sheet=$('#modelLicenseSheet');sheet.classList.add('on');sheet.setAttribute('aria-hidden','false');$('#modelLicenseClose').focus({preventScroll:true}); @@ -4112,16 +4199,29 @@ async function openModelUninstall(installationId,knownManagement=null){ modelUninstallState={installationId,management}; $('#modelUninstallTitle').textContent='Uninstall '+(installation.name||'model'); $('#modelUninstallSubtitle').textContent='Remove this model and its managed files from this computer.'; - const roleOf=item=>item.backend_id==='qwen-image'?'image':item.backend_id==='yue2'?'music':item.backend_id==='qwen2.5-7b'?'refinement':'video'; + const roleOf=item=>['qwen-image','h3-image'].includes(item.backend_id)?'image':item.backend_id==='yue2'?'music':item.backend_id==='qwen2.5-7b'?'refinement':'video'; const alternatives=(management.installations||[]).filter(item=>item.id!==installationId&&item.available&&roleOf(item)===roleOf(installation)); const installedChoices=alternatives.map(item=>'
'+esc(item.name)+''+esc(item.path)+'
').join(''); - const medium=installation.backend_id==='qwen-image'?'Image':installation.backend_id==='yue2'?'Music':installation.backend_id==='qwen2.5-7b'?'Prompt refinement':'Video'; + const medium=roleOf(installation)==='image'?'Image':installation.backend_id==='yue2'?'Music':installation.backend_id==='qwen2.5-7b'?'Prompt refinement':'Video'; $('#modelUninstallBody').innerHTML='
'+esc(installation.name)+''+esc(installation.path)+'
'+(installation.active?'
'+(installedChoices?'Choose another '+medium.toLowerCase()+' model first':medium+' generation will be unavailable')+'

'+(installedChoices?'Switch below, then remove this installation.':'You can still edit projects and use existing media. Reinstall the model whenever you want to generate again.')+'

':'')+(installedChoices?'

Other installed models

'+installedChoices+'
':''); const confirm=$('#modelUninstallConfirm');confirm.disabled=false;confirm.textContent='Uninstall and remove files'; - $$('[data-use-replacement]',$('#modelUninstallBody')).forEach(button=>button.addEventListener('click',async()=>{const replacement=alternatives.find(item=>item.id===button.dataset.useReplacement);if(!replacement)return;button.disabled=true;try{await api('/api/models/select',{method:'POST',body:{kind:'h3_backend',model_id:replacement.backend_id,role:'video_generation'}});toast('Using '+replacement.name,'ok');await refresh();await openModelUninstall(installationId);renderSettings();}catch(error){button.disabled=false;toast(error.message,'err');}})); + $$('[data-use-replacement]',$('#modelUninstallBody')).forEach(button=>button.addEventListener('click',async()=>{const replacement=alternatives.find(item=>item.id===button.dataset.useReplacement);if(!replacement)return;button.disabled=true;try{await api('/api/models/select',{method:'POST',body:{kind:roleOf(replacement)==='image'?'image_backend':'h3_backend',model_id:replacement.backend_id,role:roleOf(replacement)==='image'?'image_generation':'video_generation'}});toast('Using '+replacement.name,'ok');await refresh();await openModelUninstall(installationId);renderSettings();}catch(error){button.disabled=false;toast(error.message,'err');}})); const sheet=$('#modelUninstallSheet');sheet.classList.add('on');sheet.setAttribute('aria-hidden','false');$('#modelUninstallClose').focus({preventScroll:true}); } +function modelGroup(item){ + return ({'h3-image':'image','qwen-image':'image',yue2:'music','qwen2.5-7b':'refinement'})[item.backend_id]||item.media||'video'; +} +function modelDisplayName(item){ + return ({'h3-metal':'Default',h3mlx:'H3MLX',fastvideo:'FastVideo'})[item.backend_id||item.id]||item.name||'Model'; +} +function groupModels(items, groupOf, render, listClass){ + return Object.entries({video:'Video',image:'Image',music:'Music',refinement:'Prompt refinement'}).map(([group,title])=>{ + const models=items.filter(item=>groupOf(item)===group).sort((a,b)=>Number(['h3','h3-metal'].includes(b.backend_id))-Number(['h3','h3-metal'].includes(a.backend_id))); + return models.length?'

'+title+'

'+models.map(render).join('')+'
':''; + }).join(''); +} + async function renderSettings() { const e = engine || {}; const body = $('#settingsBody'); if (!body) return; const versionLabel=e.app_version?(e.app_version+(e.app_build?' · '+e.app_build:'')):'Unavailable · restart OpenMagia'; @@ -4135,17 +4235,31 @@ async function renderSettings() { const formatterInstall=fs.kind==='ready'?'':'
Prompt refinementQwen2.5 7B · 4.7 GB'+installError(fi)+''+fs.label+'
'; const runtimeInstall=rs.kind==='ready'?'':'
Generation toolsFFmpeg'+installError(ri)+''+rs.label+'
'; const music=management.music||{},musicSelection=music.selection||{},musicJob=(e.model_installs||{}).yue||{}; - const generationModels=(management.installations||[]).filter(item=>item.available).map(item=>{const video=!['yue2','qwen2.5-7b','qwen-image'].includes(item.backend_id),role=item.backend_id==='qwen-image'?'Image generation':item.backend_id==='yue2'?'Music generation':item.backend_id==='qwen2.5-7b'?'Prompt refinement':'Video generation',component=item.backend_id==='qwen-image'?'qwen-image':item.backend_id==='yue2'?'yue':item.backend_id==='qwen2.5-7b'?'formatter':item.backend_id==='h3mlx'?'h3mlx':'h3',job=(e.model_installs||{})[component]||{},updating=job.status==='running';return '
'+esc(item.name||'Model')+''+role+(item.backend_id==='h3mlx'?' · Experimental':'')+''+(item.active?'Active':'Installed')+''+(item.managed?'
'+(video&&!item.active?'':'')+'
':'External')+'
';}).join(''); - const installed=generationModels||'

No models are installed. Choose one from Available or Add-ons.

'; + const items=(management.installations||[]).filter(item=>item.available||(['fastvideo','h3-image'].includes(item.backend_id)&&item.present)); + if(imageModelCards()[0].available)items.push({backend_id:'h3',name:'Default',media:'image',available:true,active:currentImageModel()==='h3'}); + const installed=groupModels(items, modelGroup, item=>{ + const group=modelGroup(item),id=item.backend_id; + const component=({yue2:'yue','qwen2.5-7b':'formatter','h3-metal':'h3'})[id]||id; + const working=(e.model_installs||{})[component]?.status==='running'; + const use=item.available&&!item.active&&(group==='video'||group==='image') + ?'':''; + const manage=item.managed?'':''; + return '
'+esc(modelDisplayName(item))+''+(working?'Downloading…':item.available?(item.active?'Active':'Installed'):'Download incomplete')+'
'+use+manage+'
'; + },'managedModelList')||'

No models installed.

'; const availableItems=(management.catalog||[]).filter(item=>item.compatible); - const available=availableItems.map(item=>{const job=(e.model_installs||{})[item.install_component]||{},running=job.status==='running',failed=job.status==='error',progress=Number.isFinite(job.progress)?' '+job.progress+'%':'';return '
'+esc(item.name.replace(' · Metal','').replace(' · music',''))+'

'+esc(item.summary)+'

'+esc((item.media==='music'?'Music':item.media==='image'?'Image':'Video')+' generation · '+item.disk_gb+' GB disk')+''+(failed?''+esc(job.message||'Installation failed')+'':'')+'
'+(item.installed?'Installed':item.requirements_met?'':'Unavailable on this computer')+'
';}).join('')||'
No local generation models are available for this computer.
'; + const available=groupModels(availableItems, item=>item.media, item=>{const job=(e.model_installs||{})[item.install_component]||{},running=job.status==='running',failed=job.status==='error',progress=Number.isFinite(job.progress)?' '+job.progress+'%':'';return '
'+esc(modelDisplayName(item))+'

'+esc(item.summary)+'

'+esc(item.disk_gb+' GB disk')+''+(failed?''+esc(job.message||'Installation failed')+'':'')+'
'+(item.installed?'Installed':item.requirements_met?'':'Unavailable on this computer')+'
';},'backendGrid')||'
No local generation models are available for this computer.
'; const legacyLoras=(management.loras||[]).map(item=>'
'+esc(item.name)+'YuE 2 adapter · available in the music composer
').join(''); - body.innerHTML = '

Models

Manage generation and refinement models.
'+installed+'
Connect an existing model
Models already downloaded outside OpenMagia
'+available+'
'+formatterInstall+runtimeInstall+'
YuE 2 adaptersAdd and select an adapter directly from the music composer. H3 adapters remain unavailable.
'+(legacyLoras?'
'+legacyLoras+'
':'')+'
' + + body.innerHTML = '

Models

Manage generation and refinement models.
'+installed+'
Connect an existing model
Models already downloaded outside OpenMagia
'+available+'
'+formatterInstall+runtimeInstall+'
YuE 2 adaptersAdd and select an adapter directly from the music composer. H3 adapters remain unavailable.
'+(legacyLoras?'
'+legacyLoras+'
':'')+'
' + '

About OpenMagia

OpenMagia is a local-first visual workspace for composing, generating, and editing AI video.

Version'+esc(versionLabel)+'
LicenseAGPL-3.0-only
OpenMagia is free software under the GNU Affero General Public License v3.0 only and comes without warranty.
'+ - '

Models and open-source notices

MiniMax H3© 2026 MiniMax · Community License
Qwen2.5 7B InstructApache License 2.0
YuE 2 runtimem-a-p · Apache License 2.0
YuE 2 model weightsm-a-p · CC BY-NC 4.0
h3.c© 2026 Salvatore Sanfilippo · MIT
Qwen ImageQwen Research License · noncommercial evaluation
H3MLXRobZombAI · MIT · experimental optional backend
ffmpeg-skillv0.12.0 · © 2026 kajisho5 · MIT · workflow inspiration
ccv Metal kernels© 2010 Liu Liu · BSD-3-Clause
llama.cpp / ggml© 2023–2026 ggml authors · MIT
FFmpegLGPL 2.1+ / optional GPL components
OpenMagia adapts ffmpeg-skill’s typed plan-before-render and verification ideas to its own non-destructive timeline model; no ffmpeg-skill source is bundled. Full terms remain with the linked projects and model sources.
'; + '

Models and open-source notices

MiniMax H3© 2026 MiniMax · Community License
Qwen2.5 7B InstructApache License 2.0
YuE 2 runtimem-a-p · Apache License 2.0
YuE 2 model weightsm-a-p · CC BY-NC 4.0
h3.c© 2026 Salvatore Sanfilippo · MIT
Qwen ImageQwen Research License · noncommercial evaluation
FastVideo / FastH3Apache-2.0 code · MiniMax H3 Community License weights · optional MLX backend
H3MLXRobZombAI · MIT · experimental optional backend
ffmpeg-skillv0.12.0 · © 2026 kajisho5 · MIT · workflow inspiration
ccv Metal kernels© 2010 Liu Liu · BSD-3-Clause
llama.cpp / ggml© 2023–2026 ggml authors · MIT
FFmpegLGPL 2.1+ / optional GPL components
OpenMagia adapts ffmpeg-skill’s typed plan-before-render and verification ideas to its own non-destructive timeline model; no ffmpeg-skill source is bundled. Full terms remain with the linked projects and model sources.
'; $$('[data-model-tab]',body).forEach(tab=>tab.addEventListener('click',()=>{$$('[data-model-tab]',body).forEach(x=>x.classList.toggle('on',x===tab));$$('[data-model-pane]',body).forEach(x=>x.classList.toggle('on',x.dataset.modelPane===tab.dataset.modelTab));})); $$('[data-install-backend]',body).forEach(button=>button.addEventListener('click',()=>{const item=(management.catalog||[]).find(entry=>entry.id===button.dataset.installBackend);if(item)openModelLicense(item);})); $$('[data-uninstall-model]',body).forEach(button=>button.addEventListener('click',()=>openModelUninstall(button.dataset.uninstallModel,management))); + $$('[data-use-image-backend]',body).forEach(button=>button.addEventListener('click',async()=>{ + button.disabled=true; + try{await selectImageBackend(button.dataset.useImageBackend);renderSettings();} + catch(error){button.disabled=false;toast(error.message,'err');} + })); $$('[data-use-video-backend]',body).forEach(button=>button.addEventListener('click',async()=>{button.disabled=true;try{await api('/api/models/select',{method:'POST',body:{kind:'h3_backend',model_id:button.dataset.useVideoBackend,role:'video_generation'}});toast('Video backend activated','ok');await refresh(true);renderSettings();}catch(error){button.disabled=false;toast(error.message,'err');}})); $$('[data-update-model]',body).forEach(button=>button.addEventListener('click',async()=>{const component=button.dataset.updateModel;button.disabled=true;try{pendingModelUpdateNotices.add(component);await api('/api/models/install',{method:'POST',body:{component,accepted_license:true,update:true}});toast('Checking for updates…','ok');await refresh(true);renderSettings();}catch(error){pendingModelUpdateNotices.delete(component);button.disabled=false;toast(error.message,'err');}})); $$('.loraRow',body).forEach(row=>{const id=row.dataset.lora;$('[data-remove-lora]',row).addEventListener('click',async()=>{if(!confirm('Remove this inactive LoRA file from OpenMagia?'))return;try{await api('/api/models/loras/'+id,{method:'DELETE'});toast('LoRA file removed','ok');renderSettings();}catch(error){toast(error.message,'err');}});}); @@ -4553,6 +4667,9 @@ function bindEvents() { $('#storyboardGenerate').addEventListener('click',generateStoryboard); $('#continuityReviewClose').addEventListener('click',closeContinuityReview);$('#continuityReviewCancel').addEventListener('click',closeContinuityReview);$('#continuityReviewScrim').addEventListener('click',closeContinuityReview);$('#continuityReviewConfirm').addEventListener('click',confirmContinuityReview); $('#storyboardStyle').addEventListener('input',scheduleStoryboardSave); + $('#storyboardStyleExpand').addEventListener('click',()=>{const body=$('#storyboardStyleBody');body.hidden=!body.hidden;$('#storyboardStyleExpand').setAttribute('aria-expanded',String(!body.hidden));}); + $('#storyboardStyleEnabled').addEventListener('change',event=>{ensureStoryboardDraft().use_project_style=event.target.checked;scheduleStoryboardSave();}); + $('#sharedStyleEnabled').addEventListener('change',async event=>{const enabled=event.target.checked;state.style_enabled=enabled;try{await api('/api/project',{method:'POST',body:{style_enabled:enabled}});}catch(error){toast(error.message,'err');}}); ['#storyboardAspect','#storyboardResolution','#storyboardSteps','#storyboardSeed','#storyboardAudioMode','#storyboardAudioNotes'].forEach(id=>$(id).addEventListener('change',scheduleStoryboardSave)); $('#storyboardQuality').addEventListener('change',()=>{const h3mlx=engine&&engine.h3_backend==='h3mlx';$('#storyboardSteps').value=({balanced:20,high:30,reference:h3mlx?30:50})[$('#storyboardQuality').value]||30;scheduleStoryboardSave();}); document.addEventListener('keydown',event=>{if(event.key!=='Escape')return;if($('#musicLyricsSheet').classList.contains('on'))closeMusicLyricsSheet();else if($('#modelLicenseSheet').classList.contains('on'))closeModelLicense();else if($('#modelUninstallSheet').classList.contains('on'))closeModelUninstall();else if($('#timelineMagiaSheet').classList.contains('on'))closeTimelineMagia();else if($('#continuityReviewSheet').classList.contains('on'))closeContinuityReview();else if($('#storyboardReferencePicker').classList.contains('on'))closeStoryboardReferencePicker();else if($('#magiaSheet').classList.contains('on'))closeMagia();else if($('#storyboardWorkspace').classList.contains('on')&&!storyboardSubmitting)closeStoryboard();}); @@ -4586,7 +4703,7 @@ function bindEvents() { $('#genStyle').addEventListener('change', () => { const prompt = $('#genStyle').value.trim(); const profile = { name: prompt ? 'Custom project style' : 'No project style', prompt, skill_id: null, source: 'custom' }; - api('/api/project', { method: 'POST', body: { style_profile: profile, style_enabled:true } }).then(() => { state.style_profile = profile; state.style_enabled=true; renderGenerate(); }).catch(() => {}); + api('/api/project', { method: 'POST', body: { style_profile: profile, style_enabled:state.style_enabled!==false } }).then(() => { state.style_profile = profile; renderGenerate(); }).catch(() => {}); }); $('#genStyle').addEventListener('pointerup',()=>setTimeout(saveProjectLayout,0)); $('#genPrompt').addEventListener('pointerup',()=>setTimeout(saveProjectLayout,0)); @@ -4695,5 +4812,3 @@ function init() { window.addEventListener('pagehide',()=>{clearTimeout(refreshTimer);refreshTimer=0;releaseMediaDecoders();}); } init(); - -$('#imageModel').addEventListener('change',applyGenerationType); diff --git a/benchmarks/2026-10-26-fastvideo/README.md b/benchmarks/2026-10-26-fastvideo/README.md new file mode 100644 index 0000000..5acd928 --- /dev/null +++ b/benchmarks/2026-10-26-fastvideo/README.md @@ -0,0 +1,20 @@ +# OpenMagia video benchmark — 26 October 2026 + +Apple M5 Max, 128 GB unified memory. 512×512, approximately five seconds, seed 20261026. + +| Backend | Input | Wall seconds | Output seconds | Passes | +|---|---|---:|---:|---:| +| h3.c | text | 310.605 | 5.18 | 20 | +| H3MLX | text | 262.144 | 5.20 | 20 | +| FastVideo | text | 132.413 | 5.17 | 8 | +| h3.c | image | 326.590 | 5.18 | 20 | +| H3MLX | image | 283.883 | 5.20 | 20 | +| FastVideo | image | 175.620 | 5.17 | 8 | + +Single-run measurements of different app presets and distilled models, not equal computational work. The reference image comes from the original h3.c text output, which may favor that model’s appearance. The first exploratory native timings were discarded and rerun without downloads. OS file and shader caches may be warm. Run order: FastVideo text/image, h3.c text/image, then H3MLX text/image. Timings include process startup, conditioning, denoising, decoding and media registration. FastVideo uses Trim INT6 for text and Omni INT6 for references, with M5 NAX attention and reference pixels capped to the output area. No temporal interpolation or spatial upscaling was enabled. FastVideo memory figures are peak MLX allocations, not total RAM; native peak memory was not measured. + +Prompt: + +> A small red tin toy robot stands on a pale wooden table against a plain teal backdrop. The robot slowly raises its right arm, waves twice, then lowers it. One continuous locked-off medium shot, soft studio light, clear natural motion, no text, no cuts. Quiet mechanical clicks, no speech or music. + +Open [comparison.html](comparison.html) locally to play the six videos. [CSV](results.csv) · [JSON](results.json). diff --git a/benchmarks/2026-10-26-fastvideo/comparison.html b/benchmarks/2026-10-26-fastvideo/comparison.html new file mode 100644 index 0000000..494368c --- /dev/null +++ b/benchmarks/2026-10-26-fastvideo/comparison.html @@ -0,0 +1,3 @@ +OpenMagia video benchmark +

OpenMagia video benchmark

Apple M5 Max · 128 GB · 26 October 2026
512 × 512 · approximately five seconds · seed 20261026

Text to video

h3.c 5m 11s

20 passes · 5.18s output

H3MLX 4m 22s

20 passes · 5.20s output

FastVideo 2m 12s

8 passes · 5.17s output

One image + text

h3.c 5m 27s

20 passes · 5.18s output

H3MLX 4m 44s

20 passes · 5.20s output

FastVideo 2m 56s

8 passes · 5.17s output

Common reference

Red toy robot benchmark reference
Prompt and method
A small red tin toy robot stands on a pale wooden table against a plain teal backdrop. The robot slowly raises its right arm, waves twice, then lowers it. One continuous locked-off medium shot, soft studio light, clear natural motion, no text, no cuts. Quiet mechanical clicks, no speech or music.

Single-run measurements of different app presets and distilled models, not equal computational work. The reference image comes from the original h3.c text output, which may favor that model’s appearance. The first exploratory native timings were discarded and rerun without downloads. OS file and shader caches may be warm. Run order: FastVideo text/image, h3.c text/image, then H3MLX text/image. Timings include process startup, conditioning, denoising, decoding and media registration. FastVideo uses Trim INT6 for text and Omni INT6 for references, with M5 NAX attention and reference pixels capped to the output area. No temporal interpolation or spatial upscaling was enabled. FastVideo memory figures are peak MLX allocations, not total RAM; native peak memory was not measured.

CSV · JSON and file hashes

\ No newline at end of file diff --git a/benchmarks/2026-10-26-fastvideo/dependency-audit.json b/benchmarks/2026-10-26-fastvideo/dependency-audit.json new file mode 100644 index 0000000..957c689 --- /dev/null +++ b/benchmarks/2026-10-26-fastvideo/dependency-audit.json @@ -0,0 +1 @@ +{"dependencies": [{"name": "annotated-doc", "version": "0.0.5", "vulns": []}, {"name": "anyio", "version": "4.15.1", "vulns": []}, {"name": "av", "version": "19.0.2", "vulns": []}, {"name": "certifi", "version": "2026.10.23", "vulns": []}, {"name": "click", "version": "8.5.0", "vulns": []}, {"name": "filelock", "version": "4.2.4", "vulns": []}, {"name": "fsspec", "version": "2026.7.0", "vulns": []}, {"name": "h11", "version": "0.16.0", "vulns": []}, {"name": "hf-xet", "version": "1.7.0", "vulns": []}, {"name": "httpcore", "version": "1.0.9", "vulns": []}, {"name": "httpx", "version": "0.28.1", "vulns": []}, {"name": "huggingface-hub", "version": "1.33.0", "vulns": []}, {"name": "idna", "version": "3.20", "vulns": []}, {"name": "markdown-it-py", "version": "4.2.0", "vulns": []}, {"name": "mdurl", "version": "0.1.2", "vulns": []}, {"name": "mlx", "version": "0.32.4", "vulns": []}, {"name": "mlx-metal", "version": "0.32.4", "vulns": []}, {"name": "numpy", "version": "2.5.4", "vulns": []}, {"name": "opencv-python", "version": "5.0.0.93", "vulns": []}, {"name": "packaging", "version": "26.3", "vulns": []}, {"name": "pillow", "version": "13.0.0", "vulns": []}, {"name": "pygments", "version": "2.21.0", "vulns": []}, {"name": "pyyaml", "version": "6.0.3", "vulns": []}, {"name": "regex", "version": "2026.9.29", "vulns": []}, {"name": "rich", "version": "15.0.0", "vulns": []}, {"name": "safetensors", "version": "0.8.0", "vulns": []}, {"name": "scipy", "version": "1.18.1", "vulns": []}, {"name": "shellingham", "version": "1.5.4", "vulns": []}, {"name": "tokenizers", "version": "0.22.2", "vulns": []}, {"name": "tqdm", "version": "4.70.1", "vulns": []}, {"name": "transformers", "version": "5.15.1", "vulns": []}, {"name": "typer", "version": "0.27.3", "vulns": []}, {"name": "typing-extensions", "version": "4.16.0", "vulns": []}], "fixes": []} diff --git a/benchmarks/2026-10-26-fastvideo/fastvideo-image.mp4 b/benchmarks/2026-10-26-fastvideo/fastvideo-image.mp4 new file mode 100644 index 0000000..d4fde0c Binary files /dev/null and b/benchmarks/2026-10-26-fastvideo/fastvideo-image.mp4 differ diff --git a/benchmarks/2026-10-26-fastvideo/fastvideo-text.mp4 b/benchmarks/2026-10-26-fastvideo/fastvideo-text.mp4 new file mode 100644 index 0000000..75e8b17 Binary files /dev/null and b/benchmarks/2026-10-26-fastvideo/fastvideo-text.mp4 differ diff --git a/benchmarks/2026-10-26-fastvideo/h3-metal-image.mp4 b/benchmarks/2026-10-26-fastvideo/h3-metal-image.mp4 new file mode 100644 index 0000000..25a6fa4 Binary files /dev/null and b/benchmarks/2026-10-26-fastvideo/h3-metal-image.mp4 differ diff --git a/benchmarks/2026-10-26-fastvideo/h3-metal-text.mp4 b/benchmarks/2026-10-26-fastvideo/h3-metal-text.mp4 new file mode 100644 index 0000000..8aee348 Binary files /dev/null and b/benchmarks/2026-10-26-fastvideo/h3-metal-text.mp4 differ diff --git a/benchmarks/2026-10-26-fastvideo/h3mlx-image.mp4 b/benchmarks/2026-10-26-fastvideo/h3mlx-image.mp4 new file mode 100644 index 0000000..612a3c5 Binary files /dev/null and b/benchmarks/2026-10-26-fastvideo/h3mlx-image.mp4 differ diff --git a/benchmarks/2026-10-26-fastvideo/h3mlx-text.mp4 b/benchmarks/2026-10-26-fastvideo/h3mlx-text.mp4 new file mode 100644 index 0000000..4157d1c Binary files /dev/null and b/benchmarks/2026-10-26-fastvideo/h3mlx-text.mp4 differ diff --git a/benchmarks/2026-10-26-fastvideo/reference.png b/benchmarks/2026-10-26-fastvideo/reference.png new file mode 100644 index 0000000..5ca3112 Binary files /dev/null and b/benchmarks/2026-10-26-fastvideo/reference.png differ diff --git a/benchmarks/2026-10-26-fastvideo/results.csv b/benchmarks/2026-10-26-fastvideo/results.csv new file mode 100644 index 0000000..c6b615e --- /dev/null +++ b/benchmarks/2026-10-26-fastvideo/results.csv @@ -0,0 +1,7 @@ +backend,mode,wall_seconds,duration_seconds,width,height,audio,requested_frames,passes,layers,reuse,seed,output,model,attention,peak_mlx_gib,sha256 +h3.c,text,310.605,5.18,512,512,True,120,20,45,2,20261026,h3-metal-text.mp4,MiniMax-H3 FL2VA,native Metal,,b2f961b031fd9b2ae37172e066b39e31150ef1481020b4ae8918b20713667070 +h3.c,image,326.59,5.18,512,512,True,120,20,45,2,20261026,h3-metal-image.mp4,MiniMax-H3 Ref2VA,native Metal,,9bca7768b99565d13daf04115fe640ca0c612832121c63c9a0f56b569b0ef412 +H3MLX,text,262.144,5.2,512,512,True,120,20,35,2,20261026,h3mlx-text.mp4,MiniMax-H3 FL2VA,native Metal,,5b3460e0da369114c25efd35341c67683dd1dbb6c1434c0f2b2d2ddc92cf60ed +H3MLX,image,283.883,5.2,512,512,True,120,20,35,2,20261026,h3mlx-image.mp4,MiniMax-H3 Ref2VA,native Metal,,6e3ffba8216d87c83d3dbc331cab4bdea0c3d22088bda815891ab24648e7fc51 +FastVideo,text,132.413,5.17,512,512,True,120,8,,,20261026,fastvideo-text.mp4,FastVideo/FastVideo-FastH3-Trim-8-Step-MLX-INT6,nax,17.622,da21fca6e952ecc5cd110e0572aaa3bcb94d8f116e21423429f9b2c4a2415497 +FastVideo,image,175.62,5.17,512,512,True,120,8,,,20261026,fastvideo-image.mp4,FastVideo/FastVideo-FastH3-Omni-8-Step-V1,nax,20.424,eabd1b4c13e7c672af1bc5fdc2b811ae9609f73bbfe33a9f1fa56b5cfa99e070 diff --git a/benchmarks/2026-10-26-fastvideo/results.json b/benchmarks/2026-10-26-fastvideo/results.json new file mode 100644 index 0000000..3fe43c1 --- /dev/null +++ b/benchmarks/2026-10-26-fastvideo/results.json @@ -0,0 +1,151 @@ +{ + "source_revisions": { + "h3.c": "8974cc055ea9c02fcd14cc27dfda3e1027c05153", + "H3MLX": "db3cae141c1cced70355f1d49f7268cf60d60db4", + "FastVideo": "a0e6cf1f5086c9af735d73e6c0b80dbc1d5817b3" + }, + "fastvideo_attention_provenance": { + "kernel": "h3-true-sparse-nax-v1", + "relaxed_precision": true, + "math_mode": "safe", + "key_rows": 32, + "source_sha256": "eaa1ea090045600d622ca2a975c1483996ddaa7d22403b19615329cecde28ffd", + "expanded_header_sha256": "e7cd1bbe30d9dddd7998fea7a4d74c03f142335b47ab960c072242f269171663", + "installed_header_sha256": { + "mlx/backend/metal/kernels/steel/attn/nax.h": "fb10bcae44095e9fed5c81213d03527dd5fe5ac11be11ec7784bd357c6f317ec", + "mlx/backend/metal/kernels/steel/defines.h": "b03cea6a7d5cfe814e6838d8536e2aacdcafd2744cb408e954fda336ce21759a", + "mlx/backend/metal/kernels/steel/utils/integral_constant.h": "886eccaac4f8f00eab5a10551fdb5315df7ab7462aba13d69bb95765c1a4735e", + "mlx/backend/metal/kernels/steel/utils/type_traits.h": "4766c5a3809d3cf7740e63acc5703ef76b6b4e85d8baf16602c9d517a2fd426c" + } + }, + "hardware": "Apple M5 Max, 128 GB unified memory", + "date": "2026-10-26", + "os": "macOS 27.0.1", + "run_order": [ + "FastVideo text", + "FastVideo image", + "h3.c text", + "h3.c image", + "H3MLX text", + "H3MLX image" + ], + "method": "One serial process-per-job generation per case. All final timings exclude concurrent model downloads.", + "prompt": "A small red tin toy robot stands on a pale wooden table against a plain teal backdrop. The robot slowly raises its right arm, waves twice, then lowers it. One continuous locked-off medium shot, soft studio light, clear natural motion, no text, no cuts. Quiet mechanical clicks, no speech or music.", + "reference_sha256": "ec61159c46d1b9987410cc47b24cd48211e43a6859bc88b3ba7d3746edca2f0d", + "results": [ + { + "backend": "h3.c", + "mode": "text", + "wall_seconds": 310.605, + "duration_seconds": 5.18, + "width": 512, + "height": 512, + "audio": true, + "requested_frames": 120, + "passes": 20, + "layers": 45, + "reuse": 2, + "seed": 20261026, + "output": "h3-metal-text.mp4", + "model": "MiniMax-H3 FL2VA", + "attention": "native Metal", + "peak_mlx_gib": null, + "sha256": "b2f961b031fd9b2ae37172e066b39e31150ef1481020b4ae8918b20713667070" + }, + { + "backend": "h3.c", + "mode": "image", + "wall_seconds": 326.59, + "duration_seconds": 5.18, + "width": 512, + "height": 512, + "audio": true, + "requested_frames": 120, + "passes": 20, + "layers": 45, + "reuse": 2, + "seed": 20261026, + "output": "h3-metal-image.mp4", + "model": "MiniMax-H3 Ref2VA", + "attention": "native Metal", + "peak_mlx_gib": null, + "sha256": "9bca7768b99565d13daf04115fe640ca0c612832121c63c9a0f56b569b0ef412" + }, + { + "backend": "H3MLX", + "mode": "text", + "wall_seconds": 262.144, + "duration_seconds": 5.2, + "width": 512, + "height": 512, + "audio": true, + "requested_frames": 120, + "passes": 20, + "layers": 35, + "reuse": 2, + "seed": 20261026, + "output": "h3mlx-text.mp4", + "model": "MiniMax-H3 FL2VA", + "attention": "native Metal", + "peak_mlx_gib": null, + "sha256": "5b3460e0da369114c25efd35341c67683dd1dbb6c1434c0f2b2d2ddc92cf60ed" + }, + { + "backend": "H3MLX", + "mode": "image", + "wall_seconds": 283.883, + "duration_seconds": 5.2, + "width": 512, + "height": 512, + "audio": true, + "requested_frames": 120, + "passes": 20, + "layers": 35, + "reuse": 2, + "seed": 20261026, + "output": "h3mlx-image.mp4", + "model": "MiniMax-H3 Ref2VA", + "attention": "native Metal", + "peak_mlx_gib": null, + "sha256": "6e3ffba8216d87c83d3dbc331cab4bdea0c3d22088bda815891ab24648e7fc51" + }, + { + "backend": "FastVideo", + "mode": "text", + "wall_seconds": 132.413, + "duration_seconds": 5.17, + "width": 512, + "height": 512, + "audio": true, + "requested_frames": 120, + "passes": 8, + "layers": null, + "reuse": null, + "seed": 20261026, + "output": "fastvideo-text.mp4", + "model": "FastVideo/FastVideo-FastH3-Trim-8-Step-MLX-INT6", + "attention": "nax", + "peak_mlx_gib": 17.622, + "sha256": "da21fca6e952ecc5cd110e0572aaa3bcb94d8f116e21423429f9b2c4a2415497" + }, + { + "backend": "FastVideo", + "mode": "image", + "wall_seconds": 175.62, + "duration_seconds": 5.17, + "width": 512, + "height": 512, + "audio": true, + "requested_frames": 120, + "passes": 8, + "layers": null, + "reuse": null, + "seed": 20261026, + "output": "fastvideo-image.mp4", + "model": "FastVideo/FastVideo-FastH3-Omni-8-Step-V1", + "attention": "nax", + "peak_mlx_gib": 20.424, + "sha256": "eabd1b4c13e7c672af1bc5fdc2b811ae9609f73bbfe33a9f1fa56b5cfa99e070" + } + ] +} diff --git a/docs/FASTVIDEO_INTEGRATION.md b/docs/FASTVIDEO_INTEGRATION.md new file mode 100644 index 0000000..ccd0421 --- /dev/null +++ b/docs/FASTVIDEO_INTEGRATION.md @@ -0,0 +1,130 @@ +# FastVideo in OpenMagia + +FastVideo is an optional Apple Silicon video backend. Install it in Settings → +Models → Available, then choose **Use for video**. The composer’s Models picker +also switches between installed video engines. Installation does not activate +it automatically. Uninstall removes its managed runtime, source, caches and +weights; existing projects and the other engines remain available. + +## What it runs + +| Input | Checkpoint | Sampling | +|---|---|---| +| Text | FastVideo/FastVideo-FastH3-Trim-8-Step-MLX-INT6 | Eight forwards, released INT6 DiT | +| Image references | FastVideo/FastVideo-FastH3-Omni-8-Step-V1 | Eight forwards, local INT6 conversion with trained VSA gates | + +These are distilled models, not a speed switch on the existing base H3 weights. +FastVideo complements h3.c and H3MLX. Its MLX runtime requires macOS on Apple +Silicon, at least 36 GB unified memory and approximately 170 GB for the complete +installation, including conversion sources. The existing editor remains Python +stdlib only. + +The supported duration is approximately 5–15 seconds at 24 fps. FastH3 aligns +its temporal grid to `17n+5` frames: a request for 120 frames becomes 124 frames. +OpenMagia records both the request and the effective count. The fixed trained +schedule overrides the native engine’s quality/step controls, which are hidden +for this backend. Resolution and seed are preserved. + +Image references use Omni’s reference conditioning, not exact first-frame +anchoring. When a request needs an opening frame or a shorter clip, the composer +shows one short message and an explicit action to switch to H3. It does not +silently discard the input. Storyboard reference continuity is supported; +exact-frame continuity requires H3. An unsupported storyboard is rejected before +it is queued. + +## Isolation and safety + +- Managed footprint: `addons/fastvideo/`. Downloads and conversions do not + modify base H3, H3MLX or Qwen Image weights. +- The module has a separate Python environment. Each generation runs in a new + process and exits after rendering, releasing model memory. Cancellation uses + OpenMagia’s existing process-group termination and queue cleanup. +- The upstream source is pinned to + `a0e6cf1f5086c9af735d73e6c0b80dbc1d5817b3`. Every Hub snapshot is pinned in + `fast_video.MODELS`. Updates reinstall the reviewed pins; they do not pull + arbitrary changes from upstream `main`. +- `requirements-fastvideo.lock` pins and hashes all 33 inference dependencies. + `uv pip sync --require-hashes` verifies packages during installation. +- OpenMagia loads the original MLX submodules through a package namespace, + bypassing upstream’s eager CUDA/training API imports. No upstream model math + is patched. The full PyTorch, Gradio, Accelerate and training stack is not + installed. The adapter does not expose FastVideo’s own server or web UI. +- Weights use safetensors. No Hub Python files are downloaded, no pickle model + files are accepted, and no `trust_remote_code=True` path is used. +- Generation receives JSON over stdin and passes arguments directly to a + subprocess, without a shell. Hub/Transformers offline flags and telemetry + opt-outs are set during generation. References come from local project files. +- Safe removal requires the exact managed directory and receipt. Redirected + roots and symlink roots are rejected. Removal is blocked during generation + or installation, and an active backend falls back to h3.c before removal. + +On M5, the module uses upstream’s opt-in NAX TensorOps attention with MLX +0.32.4. Private MLX header hashes must match the upstream allowlist. Independent +selected-token numerical checks passed on this M5 Max for FP16, BF16 and FP32; +the kernel and header hashes are recorded in generation metadata. Other Apple +Silicon machines use upstream’s `auto` attention backend. Reference conditioning +is capped to the output pixel area, matching native H3’s reference sizing; a +512×512 input is not silently enlarged to a 2048×2048 conditioning canvas. NAX accumulation can +change the generated clip relative to the SIMD backend even with the same seed. + +This is process and dependency isolation, not an operating-system sandbox. +The worker runs with the user’s normal file permissions. A targeted code review +and a clean advisory scan reduce risk; they cannot establish that third-party +code is free of defects. + +### Dependency review, 26 October 2026 + +The initial full upstream dependency set reported 70 advisories across six +packages. That stack was replaced with the smaller inference environment. +`pip-audit --no-deps --disable-pip -r requirements-fastvideo.lock` then reported +**no known vulnerabilities across 33 dependencies**. This result is a dated +snapshot; repeat the scan before a future release. + +## Reproducing the benchmark + +Run one generation workload at a time: + +```sh +python3 scripts/benchmark_video_backends.py --backends h3-metal h3mlx fastvideo +``` + +The harness creates its own project without changing the active project or +saved backend choice. It submits real jobs through the same worker and media +registration code used by the app. Each backend runs a text prompt and the same +prompt with one image. The common image is the first frame of the h3.c text +render, saved beside the report. This favors that source model’s appearance; +subject-preservation comparisons should take that into account. + +All cases request 512×512, 120 frames, seed 20261026 and synchronized sound. +Native h3.c uses Balanced (20 passes, 45 layers, reuse 2); H3MLX uses its +Balanced schedule (20 passes, 35 layers, reuse 2); FastVideo uses its trained +eight-forward checkpoints. This compares usable app presets, not equal models +or equal computational work. The generated clip duration is probed from the +output, rather than inferred from the requested frame count. + +Raw logs, prompts, wall times and output probes are written to +`projects/fastvideo-benchmark-2026-10-26/benchmark.json`. The benchmark skips +completed cases when resumed. One run per case is an exploratory benchmark, +not a statistical performance guarantee. Record any concurrent downloads or +other workloads when publishing measurements. + +## Licenses + +FastVideo code is Apache-2.0. FastH3 and its source H3 components retain the +MiniMax H3 Community License; LightVAE is Apache-2.0. The install dialog links +the code and model terms before downloading. Model weights are not bundled in +the OpenMagia repository. Review the model terms for the intended distribution +and use of outputs. + +Sources: + +- https://github.com/hao-ai-lab/FastVideo/blob/a0e6cf1f5086c9af735d73e6c0b80dbc1d5817b3/docs/getting_started/installation/mlx.md +- https://github.com/hao-ai-lab/FastVideo/blob/a0e6cf1f5086c9af735d73e6c0b80dbc1d5817b3/docs/inference/fasth3_omniref_mlx.md +- https://huggingface.co/FastVideo/FastVideo-FastH3-Trim-8-Step-MLX-INT6 +- https://huggingface.co/FastVideo/FastVideo-FastH3-Omni-8-Step-V1 + +## Measured results + +The [published comparison](../benchmarks/2026-10-26-fastvideo/README.md) includes all six clips, the shared input image, CSV/JSON results and a local HTML player. On this M5 Max, FastVideo completed text in 132.413 seconds and image-reference generation in 175.620 seconds. h3.c took 310.605 / 326.590 seconds; H3MLX took 262.144 / 283.883 seconds. These are single serial runs, with no concurrent downloads. + +Shared style is an optional disclosure below the main prompt, or above the scenes in the storyboard. Its enable checkbox preserves authored text when disabled. Unsupported FastVideo settings show a small inline message with an action to switch engines. diff --git a/fast_video.py b/fast_video.py new file mode 100644 index 0000000..0dd1a2d --- /dev/null +++ b/fast_video.py @@ -0,0 +1,259 @@ +"""Optional FastVideo MLX backend. Heavy imports stay in a disposable worker. + +All downloads, conversions, caches and receipts belong to addons/fastvideo. +Upstream code and model revisions are deliberately reviewed/pinned, not latest. +""" +import json +import os +from pathlib import Path +import platform +import subprocess +import sys + +ROOT = Path(__file__).resolve().parent +HOME = ROOT / 'addons' / 'fastvideo' +SOURCE = HOME / 'source' +PYTHON = HOME / 'runtime' / 'bin' / 'python' +REVISION = 'a0e6cf1f5086c9af735d73e6c0b80dbc1d5817b3' +MODELS = { + 'text': ('FastVideo/FastVideo-FastH3-Trim-8-Step-MLX-INT6', 'dc6ab6cde207c283708a106000f5bcd98d3cf39b'), + 'reference': ('FastVideo/FastVideo-FastH3-Omni-8-Step-V1', '53e0d26a1691aa473b6262d8196a8feb2c297df0'), + 'encoder': ('FastVideo/FastH3-OmniRef-NVFP4-QAD', 'f01e6a23ac6066aa9eb622cf94b6259442e70ec2'), + 'decoder': ('FastVideo/FastH3-NVFP4-VAE-Decoder', 'bd0c248f2a0f57ca643b3df2ac1f375fa55101fb'), + 'lightvae': ('lightx2v/LightVAE', '4925ea978147b9de492d7a5fd4f9c6d1854ca1cc'), +} + + +def managed_home(): + # Never let a symlink turn a receipt into permission to remove another tree. + expected = ROOT.resolve() / 'addons' / 'fastvideo' + if HOME.is_symlink() or HOME.resolve() != expected: + raise ValueError('FastVideo managed directory must not be a symlink or redirected folder.') + return expected + + +def environment(offline=False): + env = dict(os.environ) + env.update(HF_HOME=str(HOME / 'cache' / 'huggingface'), + XDG_CACHE_HOME=str(HOME / 'cache'), UV_CACHE_DIR=str(HOME / 'cache' / 'uv'), + UV_PYTHON_INSTALL_DIR=str(HOME / 'python'), HF_HUB_DISABLE_TELEMETRY='1', + DO_NOT_TRACK='1', WANDB_MODE='disabled', PYTHONUNBUFFERED='1', + HF_XET_CACHE=str(HOME / 'cache' / 'xet'), HF_XET_HIGH_PERFORMANCE='1', + FASTVIDEO_MLX_DQ_GEMM='1') + env.pop('PYTHONPATH', None) + if offline: + env.update(HF_HUB_OFFLINE='1', TRANSFORMERS_OFFLINE='1') + return env + + +def state(): + present = False + try: + managed_home() + present = (HOME / '.openmagia-managed').is_file() or (HOME / 'installed.json').is_file() + receipt = json.loads((HOME / 'installed.json').read_text()) + files = ['source/fastvideo/mlx_runtime/minimax_h3_pipeline.py', + 'text/fastvideo_inference.json', 'text/transformer/mlx_h3_dit.json', + 'text/transformer/mlx_h3_dit.safetensors', + 'text/audio_vae/diffusion_pytorch_model.safetensors', + 'text/vae/diffusion_pytorch_model.safetensors', + 'text/tokenizer/tokenizer.json', + 'text/text_encoder/model.safetensors', + 'omni-mlx/int6/mlx_h3_dit.safetensors', 'omni-mlx/int6/mlx_h3_dit.json', + 'omni/text_encoder/model.safetensors', + 'omni/tokenizer/tokenizer.json', 'omni/audio_vae/config.json', + 'omni/audio_vae/diffusion_pytorch_model.safetensors', + 'omni/vae/config.json', + 'omni/fastvideo_inference.json', + 'omni/text_encoder/mlx_h3_nvfp4_encoder.json', + 'decoder/quality-36L/decoder-nvfp4.safetensors', + 'lightvae/lightvae-lite-h3-encoder.safetensors'] + ready = (receipt.get('revision') == REVISION and PYTHON.is_file() + and all((HOME / f).is_file() for f in files)) + except (OSError, ValueError): + ready = False + return {'ready': ready, 'present': present, 'path': str(HOME), 'revision': REVISION, + 'text_model': MODELS['text'][0], 'reference_model': MODELS['reference'][0]} + + +def generation_params(params): + out = dict(params) + # Distilled weights have a fixed eight-forward schedule. Native H3 pads + # time to 17n+5; record that explicitly rather than misreporting duration. + frames = int(out.get('frames', 120)) + if not 120 <= frames <= 362: + raise ValueError('FastVideo generates 5–15 seconds.') + out.update(steps=8, requested_frames=int(out.get('requested_frames', frames)), + frames=frames + (5 - frames) % 17, backend_adjusted='fastvideo') + return out + + +def command(prompt, output, params, references=()): + if not state()['ready']: + raise ValueError('Install FastVideo in Settings → Modules first.') + request = {'prompt': prompt, 'output': str(output), 'params': params, + 'references': list(references)} + # JSON travels on stdin: no shell, no prompt/path interpolation. + return [str(PYTHON), str(Path(__file__).resolve()), 'generate'], request + + +def _run(command, report, cwd=None): + with subprocess.Popen(command, cwd=cwd or str(ROOT), env=environment(), + stdout=subprocess.PIPE, stderr=subprocess.STDOUT, + text=True, errors='replace') as process: + tail = [] + for line in process.stdout: + clean = line.strip()[-500:] + if clean: + report(clean) + tail.append(clean) + tail = tail[-8:] + if process.wait(): + raise RuntimeError('FastVideo setup failed: ' + '\n'.join(tail)) + + +def install(report): + if sys.platform != 'darwin' or platform.machine().lower() != 'arm64': + raise ValueError('This FastVideo module requires Apple Silicon macOS.') + managed_home().mkdir(parents=True, exist_ok=True) + (HOME / '.openmagia-managed').touch() + # Bootstrap only the installer; no changes to the editor's Python packages. + uv = HOME / 'installer' / 'bin' / 'uv' + if not uv.is_file(): + _run([sys.executable, '-m', 'venv', str(HOME / 'installer')], report) + _run([str(HOME / 'installer' / 'bin' / 'python'), '-m', 'pip', 'install', 'uv==0.13.5'], report) + if not (SOURCE / '.git').exists(): + _run(['git', 'clone', '--no-checkout', '--filter=blob:none', + 'https://github.com/hao-ai-lab/FastVideo.git', str(SOURCE)], report) + _run(['git', '-C', str(SOURCE), 'fetch', '--depth', '1', 'origin', REVISION], report) + _run(['git', '-C', str(SOURCE), 'checkout', '--detach', REVISION], report) + if not PYTHON.is_file(): + _run([str(uv), 'venv', '--python', '3.12', str(HOME / 'runtime')], report) + report('Installing the isolated Apple Silicon runtime…') + lock = ROOT / 'requirements-fastvideo.lock' + _run([str(uv), 'pip', 'sync', '--require-hashes', '--python', str(PYTHON), str(lock)], report) + report('Downloading pinned FastH3 text and reference weights…') + _run([str(PYTHON), str(Path(__file__).resolve()), 'prepare'], report) + (HOME / 'installed.json').write_text(json.dumps({'revision': REVISION, 'models': MODELS}, indent=2) + '\n') + report('FastVideo installed. Select Use for video to activate it.') + + +def activate_mlx_source(): + """Load the pinned MLX subpackage without CUDA/training eager imports. + + Upstream fastvideo.__init__ imports the full distributed Torch API. Its + MLX implementation is independent; a package namespace lets Python load + those original submodules directly, without modifying their source. + """ + import importlib.machinery + import types + if 'fastvideo' in sys.modules: + raise RuntimeError('FastVideo MLX must run in a fresh isolated worker.') + package = types.ModuleType('fastvideo') + package.__path__ = [str(SOURCE / 'fastvideo')] + package.__package__ = 'fastvideo' + package.__spec__ = importlib.machinery.ModuleSpec('fastvideo', loader=None, is_package=True) + package.__spec__.submodule_search_locations = package.__path__ + sys.modules['fastvideo'] = package + + +def prepare(): + os.environ.update(environment()) + from huggingface_hub import snapshot_download + filters = { + 'text': ['*.json', '*.safetensors', '*.txt', 'LICENSE*', 'NOTICE*', 'README.md'], + 'reference': ['transformer_ref/*', '*scheduler/*', '*.json', 'LICENSE*', 'NOTICE*', 'README.md'], + 'encoder': ['text_encoder/*', 'tokenizer/*', 'processor/*', 'vae/config.json', 'audio_vae/*', 'LICENSE*', 'NOTICE*', 'README.md'], + 'decoder': ['quality-36L/decoder-nvfp4.safetensors', 'quality-36L/config.json', 'LICENSE*', 'NOTICE*', 'README.md'], + 'lightvae': ['lightvae-lite-h3-encoder.safetensors', 'LICENSE*', 'NOTICE*', 'README.md'], + } + from concurrent.futures import ThreadPoolExecutor + def download(item): + key, (model, revision) = item + print('Downloading ' + model, flush=True) + snapshot_download(model, revision=revision, local_dir=str(HOME / key), + allow_patterns=filters[key], max_workers=4) + with ThreadPoolExecutor(max_workers=3) as pool: + list(pool.map(download, MODELS.items())) + # Successful snapshots supersede abandoned Xet transfer fragments from + # interrupted installs. Keep cleanup within this module's download caches. + for key in MODELS: + cache = HOME / key / '.cache/huggingface/download' + for fragment in cache.rglob('*.incomplete'): + fragment.unlink(missing_ok=True) + # Convert only safetensors, never pickle files or Hub-provided Python code. + subprocess.run([str(PYTHON), str(Path(__file__).resolve()), 'convert', '--model-root', str(HOME / 'reference/transformer_ref'), + '--out', str(HOME / 'omni-mlx'), '--formats', 'int6', '--include-vsa', + '--nvfp4-conditioner-root', str(HOME / 'encoder/text_encoder')], + cwd=str(SOURCE), env=environment(), check=True) + omni = HOME / 'omni' + omni.mkdir(exist_ok=True) + links = {key: HOME / 'reference' / key for key in + ['transformer_ref', 'scheduler', 'audio_scheduler', 'fastvideo_inference.json']} + links.update({key: HOME / 'encoder' / key for key in ['tokenizer', 'processor', 'audio_vae', 'vae']}) + links['text_encoder'] = HOME / 'omni-mlx/nvfp4-encoder' + for name, target in links.items(): + link = omni / name + if not link.is_symlink(): + link.symlink_to(os.path.relpath(target, omni), target_is_directory=target.is_dir()) + # Verify imports and checkpoint manifests before publishing the receipt. + activate_mlx_source() + from fastvideo.mlx_runtime.minimax_h3_pipeline import MiniMaxH3MLXPipeline + assert MiniMaxH3MLXPipeline + + +def attention_backend(): + """Use validated TensorOps on M5; keep upstream auto on other Macs.""" + import mlx.core as mx + if str(mx.device_info().get('device_name', '')).startswith('Apple M5'): + from fastvideo.mlx_runtime.minimax_h3_vsa_nax import get_nax_provenance + # Changed private MLX headers fail explicitly, as upstream requires. + return 'nax', get_nax_provenance() + return 'auto', None + + +def generate(request): + os.environ.update(environment(offline=True)) + activate_mlx_source() + from fastvideo.mlx_runtime.minimax_h3_pipeline import MiniMaxH3MLXPipeline + from fastvideo.mlx_runtime.minimax_h3_reference import MiniMaxH3Reference + refs = request.get('references') or [] + params = request['params'] + reference = bool(refs) + attention, provenance = attention_backend() + kwargs = {} + if reference: + kwargs.update(vae_encoder_path=HOME / 'lightvae/lightvae-lite-h3-encoder.safetensors', + vae_decoder_path=HOME / 'decoder/quality-36L/decoder-nvfp4.safetensors') + pipeline = MiniMaxH3MLXPipeline( + model_root=HOME / ('omni' if reference else 'text'), + mlx_dit_checkpoint=HOME / ('omni-mlx/int6' if reference else 'text/transformer'), + conditioner_mode='nvfp4', resident=False, vae_dtype='bf16', + prompt_cache_dir=HOME / 'cache/prompts', mlx_cache_limit_gib=8, **kwargs) + try: + result = pipeline.generate( + request['prompt'], output_path=request['output'], + width=params['width'], height=params['height'], num_frames=params['frames'], + seed=int(params.get('seed', 42)), num_steps=8, + references=[MiniMaxH3Reference(source=Path(r['path']), media_type=r['type']) for r in refs] if reference else None, + vsa=True, vsa_impl=attention, vae_tile_height=256, vae_tile_width=256, + reference_max_pixels=params['width'] * params['height'] if reference else None) + print('OPENMAGIA_RESULT ' + json.dumps({ + 'model': MODELS['reference' if reference else 'text'][0], 'revision': REVISION, + 'attention_backend':attention, 'attention_provenance':provenance, + 'reference_max_pixels':params['width'] * params['height'] if reference else None, + 'timings_s': result.timings, 'peak_memory_gib': result.peak_memory_gib}), flush=True) + finally: + pipeline.close() + + +if __name__ == '__main__': + if sys.argv[1] == 'prepare': + prepare() + elif sys.argv[1] == 'convert': + import runpy + activate_mlx_source() + sys.argv = [str(SOURCE / 'scripts/checkpoint_conversion/convert_minimax_h3_mlx.py'), *sys.argv[2:]] + runpy.run_path(sys.argv[0], run_name='__main__') + else: + generate(json.load(sys.stdin)) diff --git a/h3_image.py b/h3_image.py new file mode 100644 index 0000000..84dd723 --- /dev/null +++ b/h3_image.py @@ -0,0 +1,94 @@ +"""Managed MiniMax H3 Image module for Apple Silicon.""" +import json +import os +from pathlib import Path +import platform +import shutil +import subprocess +import sys + +ROOT = Path(__file__).resolve().parent +HOME = ROOT / "addons" / "h3-image" +PYTHON = HOME / "runtime/bin/python" +CLI = HOME / "runtime/bin/h3-image-mlx" +MODEL_ID = "MiniMaxAI/MiniMax-H3-Image" +NAME = "MiniMax H3 Images" +VERSION = "0.1.0a9" +MARKER = HOME / ".openmagia-managed" +RECEIPT = HOME / ("installed-" + VERSION) + + +def managed_home(): + if HOME.resolve() != HOME or HOME.is_symlink(): + raise ValueError("H3 Image requires a non-redirected managed folder.") + return HOME + + +def state(): + present = not HOME.is_symlink() and HOME.resolve() == HOME and MARKER.is_file() + ready = False + if present and CLI.is_file(): + try: + files = json.loads(RECEIPT.read_text()) + ready = bool(files) and all((HOME / "models" / name).stat().st_size == size + for name, size in files.items()) + except (OSError, ValueError, AttributeError): + pass + return {"ready": ready, + "present": present, "path": str(HOME), "model": MODEL_ID} + + +def environment(): + return {**os.environ, "XDG_CACHE_HOME": str(HOME / "cache"), + "UV_CACHE_DIR": str(HOME / "cache/uv"), + "UV_PYTHON_INSTALL_DIR": str(HOME / "python"), + "HF_HOME": str(HOME / "cache/hf"), "HF_HUB_DISABLE_TELEMETRY": "1", + "H3_PREFETCH": "1", "H3_ASYNC": "1"} + + +def install(report): + if sys.platform != "darwin" or platform.machine() != "arm64": + raise ValueError("MiniMax H3 Image requires Apple Silicon.") + target = managed_home() + target.mkdir(parents=True, exist_ok=True) + if not MARKER.exists() and any(target.iterdir()): + raise ValueError("The H3 Image folder already contains unmanaged files.") + MARKER.touch() + + def run(*args): + with subprocess.Popen([str(arg) for arg in args], cwd=HOME, env=environment(), + stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True) as proc: + detail = "" + for line in proc.stdout: + if line.strip(): + detail = line.strip()[-400:] + report(detail) + if proc.wait(): + raise RuntimeError("H3 Image installation failed. " + detail) + + uv = shutil.which("uv") + if not uv: + uv = HOME / "installer/bin/uv" + if not uv.is_file(): + run(sys.executable, "-m", "venv", HOME / "installer") + run(HOME / "installer/bin/python", "-m", "pip", "install", "uv==0.13.5") + if not PYTHON.is_file(): + run(uv, "venv", "--python", "3.12", HOME / "runtime") + if not RECEIPT.is_file(): + run(uv, "pip", "sync", "--require-hashes", "--python", PYTHON, ROOT / "requirements-h3-image.lock") + run(CLI, "fetch", "--models", HOME / "models", "--source", "huggingface") + manifest = next((HOME / "runtime/lib").glob("python*/site-packages/h3_image_mlx/weights.json")) + files = {item["path"]: item["bytes"] for item in json.loads(manifest.read_text())["files"]} + temporary = RECEIPT.with_suffix(".tmp") + temporary.write_text(json.dumps(files)) + temporary.replace(RECEIPT) + + +def command(request): + args = [str(CLI), "generate", "--models", str(HOME / "models"), + "--dit-mode", "stream", "--progress", "--prompt=" + request["prompt"], + "--width", str(request["width"]), "--height", str(request["height"]), + "--seed", str(request["seed"]), "--output", request["output"]] + for ref in request["references"]: + args.extend(["--reference", ref]) + return args diff --git a/index.html b/index.html index 4c8d0d4..bd327da 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,7 @@ - + @@ -113,16 +113,8 @@

Build your film

Generate

- +
-
- - -
@@ -132,6 +124,14 @@

Build your film

T2VA0 / 9 references2.3s
+
+ + +
OutputFormat and fidelity
@@ -394,11 +394,13 @@

New character

-

Shared instructions

- + +
-

Scenes

Each scene inherits the shared instructions. Scene 2 onward can continue from the previous scene.

+

Scenes

Shared style applies when enabled. Scenes can continue from the previous scene.

+
@@ -475,6 +477,6 @@

New character

- + diff --git a/requirements-fastvideo.in b/requirements-fastvideo.in new file mode 100644 index 0000000..4be82f6 --- /dev/null +++ b/requirements-fastvideo.in @@ -0,0 +1,11 @@ +# Apple Silicon inference only. No training stack or FastVideo web server. +mlx==0.32.4 +numpy==2.5.4 +scipy==1.18.1 +pillow==13.0.0 +opencv-python==5.0.0.93 +transformers==5.15.1 +tokenizers==0.22.2 +safetensors==0.8.0 +huggingface-hub==1.33.0 +av==19.0.2 diff --git a/requirements-fastvideo.lock b/requirements-fastvideo.lock new file mode 100644 index 0000000..a1ddc1d --- /dev/null +++ b/requirements-fastvideo.lock @@ -0,0 +1,697 @@ +# This file was autogenerated by uv via the following command: +# uv pip compile --python addons/fastvideo/runtime/bin/python --generate-hashes requirements-fastvideo.in -o requirements-fastvideo.lock +annotated-doc==0.0.5 \ + --hash=sha256:117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101 \ + --hash=sha256:c7e58ce09192557605d8bbd92836d7e1d520ac9580096042c0bfd197efacf1bb + # via typer +anyio==4.15.1 \ + --hash=sha256:6152fdbbf9a77fdec97731721bebf7c4c44f7c29b424b0065826173efc7ed101 \ + --hash=sha256:9f28306018cbd6d329e64a36d58256edff76dd996fe423bc957326e578b82a94 + # via httpx +av==19.0.2 \ + --hash=sha256:04c8e412642c652cb2b1997a9cb2114546ee7d894600c631f4be8ceb26a0d0d2 \ + --hash=sha256:0e425d631510ca21e47c58f3837a9dceae0453c24e926408c8a12b95239cbbd6 \ + --hash=sha256:1e7cb7b66a832bce8996af5b94f1cf4014a05ff51e0005feac4cb2566d711020 \ + --hash=sha256:32a8d37bde9e24ad0cc855140cbeecde17a363d7dc7928dcfc71a34b5f3ed387 \ + --hash=sha256:3ce5a1d7b916d13c16ac58f1756f0fee4af2d53f02bc1403e18550b50d375a22 \ + --hash=sha256:44d3faae747cf04a33f39db8ae983ff3d93adc864ee663bc186b25b686803c3e \ + --hash=sha256:79a277b077e3768a0ea9f881ca0b3bc96d4135a8d3a7a579938adb58718d0dfd \ + --hash=sha256:8596fad2017d380708de35ddf9d34f808b8488c912cdc3f361691d866d9dc32d \ + --hash=sha256:91924f5c836b1cbf89fe1522c642f98e89a733124908561fd49dc7a70e9b6d10 \ + --hash=sha256:9c1da7aad0fa6c13b4a5c1e7985be0d13f8526a96284573acaf3d55ead6d3fe8 \ + --hash=sha256:9d4f9f78c0ce1f20deb72626fdb3c723757f61a8cd6fbb7dd44d9401884a91fd \ + --hash=sha256:9db27c2248112a8eed3edd3ca83cf4405f52a402cda2eb1956035e646e6b99c6 \ + --hash=sha256:ae4618eab172f8135596972252f39c7399291c921e661c1771ba26b9254b800f \ + --hash=sha256:b0dff6dfcc6ff9944fbbff15bc4ee2d90a2c1695d493bdea96e86f48823e9feb \ + --hash=sha256:b559ff381bd800c46fee6a17d7e22a3443708cdd58d0901ae91d27cf5dd0578c \ + --hash=sha256:b632e026f4375037438a6b2b5d6a489e55bc9504fad22078991ef96211bec2a9 \ + --hash=sha256:bebbc52598886480f4d861c575dc2b020785d6c04e1308680ddcc545e1b94c66 \ + --hash=sha256:dfe7af5aa8243afd5d4778f85ad1a7c948e37fad272869da1f8f93f8d57fa7ad \ + --hash=sha256:f5f7bcf987567cd3f9b01f1c375c59bf59d8a5b98c9c5c154aeda7a11e0c5dce + # via -r requirements-fastvideo.in +certifi==2026.10.23 \ + --hash=sha256:a9895e6e2758b371e0545e321a3a8fd1fcfd9829ada8824a936dfb16aaaf36cd \ + --hash=sha256:e9b54de76e530bb6cf0ccd036787103acb58fd42ba930ea8bf948ddbaa2f61d1 + # via + # httpcore + # httpx +click==8.5.0 \ + --hash=sha256:255bc9599cf7748b4b1a446ccc735421bd08a2ae529a8b88597d3de5664ee360 \ + --hash=sha256:ba0d2089de75ea0310e2dde03160e6ca10009947fb95a182f9b54021bb272e34 + # via huggingface-hub +filelock==4.2.4 \ + --hash=sha256:301241438c57936ef93f4243a94f2559022268bfcf9b375a9a72eb0f8db8358e \ + --hash=sha256:c6d8663535e1650ee430507b4ffbac7b464dd64b7647ea0112a9f406499d163d + # via huggingface-hub +fsspec==2026.7.0 \ + --hash=sha256:b57ddbafedfaef7018c1ecab32aa200a9d7ca26b77965f64e48b70061249d279 \ + --hash=sha256:c803c40f4cf860b49dea58ee3e1c33cb9c790520e233537e1340049f89b82a88 + # via huggingface-hub +h11==0.16.0 \ + --hash=sha256:4e35b956cf45792e4caa5885e69fba00bdbc6ffafbfa020300e549b208ee5ff1 \ + --hash=sha256:63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86 + # via httpcore +hf-xet==1.7.0 \ + --hash=sha256:0a9e802f33bf50c851abe45fc5380e61f959e2d369647d6742b79ad9d6c27cab \ + --hash=sha256:19c0e64f14175ccb6a1aff69e0d2ab9ec5269a560e6687abaf2b3fa4f73de7cd \ + --hash=sha256:2814a6e999d13464c4d679b788cc5d784eb5a4edfc638a31f10e9a11ab531ef8 \ + --hash=sha256:2b7bb5727889b0f2436dbaaad8fc4c3e66b8240d992716989e0c086b4278b1bc \ + --hash=sha256:4ee5e05a627f5ab5bad7a86582277d645556ea1e199903aae19e033a392aa13a \ + --hash=sha256:57bc157b8b7fe3bee9dcb9af7f3da8de41801c3b31a9ef68a77a33c6a6be382f \ + --hash=sha256:59fba37039233c7fcbe196817d6cdcf1b40dfb17b410f229d85b0cf0a1848da4 \ + --hash=sha256:757168feb5679647c0bb13ee5d0faebe799c4dff9051419885a566ebd79f949d \ + --hash=sha256:80f79dae613ce9e0ea1fd1ae15616ca9ac74aed4c770aabc199c4f03ebecc863 \ + --hash=sha256:87dab080f8f7d32781c2586904e3603f4e60d09bfc727706c3ae419e0829beeb \ + --hash=sha256:acc3851cf2576a8fb2ae926da863f4efabe21303cf292e9a44332802ab0dcc6a \ + --hash=sha256:b01fe18dbbd151a2403d2c64ed30dc6547b00d6babab9a617d77c7acdb81ee66 \ + --hash=sha256:b91569d5f1b61c34b043687da02c05dd3604f3d329e7868510bf3f7971599006 \ + --hash=sha256:d406ec79053c0871817f700c2ac8c36ba0d87f9c34b7458b0f0063bb218b0466 \ + --hash=sha256:e3e88a7a75d7d95cbee1f37dc31341d6201124cf21c6c4b1dfab8ccba9b09e0f \ + --hash=sha256:fa029678be1ba7f953c409b0b27bf15cc69cd1c9b3a674fbd78856ebefca1052 \ + --hash=sha256:fcfd6c22418e57dd5b3aea649e813b2e2cfb2aebf317b210d90f1fe4b3018b52 + # via huggingface-hub +httpcore==1.0.9 \ + --hash=sha256:2d400746a40668fc9dec9810239072b40b4484b640a8c38fd654a024c7a1bf55 \ + --hash=sha256:6e34463af53fd2ab5d807f399a9b45ea31c3dfa2276f15a2c3f00afff6e176e8 + # via httpx +httpx==0.28.1 \ + --hash=sha256:75e98c5f16b0f35b567856f597f06ff2270a374470a5c2392242528e3e3e42fc \ + --hash=sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad + # via huggingface-hub +huggingface-hub==1.33.0 \ + --hash=sha256:04e434b06e100eddbce9a6e817d72693a7884b10a79bd67ab48080d5c07eb899 \ + --hash=sha256:367be21a201db9523eddf8aeac7048f2602c1b308691c97640d5e72ed188007e + # via + # -r requirements-fastvideo.in + # tokenizers + # transformers +idna==3.20 \ + --hash=sha256:a7db850025b95ded1eae8a46181a1a6c56c92c96f0e2b005d9ff8dc0210cab44 \ + --hash=sha256:ab7ae7122974553370f0bdb919e1a960b2cd1bc1ef0276416d896db81c14582c + # via + # anyio + # httpx +markdown-it-py==4.2.0 \ + --hash=sha256:04a21681d6fbb623de53f6f364d352309d4094dd4194040a10fd51833e418d49 \ + --hash=sha256:9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a + # via rich +mdurl==0.1.2 \ + --hash=sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8 \ + --hash=sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba + # via markdown-it-py +mlx==0.32.4 \ + --hash=sha256:001b07946f2867a800aee73d302ffdaf5eb81cafe64c7ba19fddf7e219324822 \ + --hash=sha256:05cca4bed007230e109ca33ac377bac96f3b4c8ed5b67097499de4e913dd011c \ + --hash=sha256:071566ae01dae3a293f3612b623eb68eeb2ef28d27d85ff66e661b6a6f254593 \ + --hash=sha256:09da967a668de8b7033de3d74930efcf36ef993ede93173f51f11452a1c09b22 \ + --hash=sha256:0c3cb35b709275d1791d435d2f1c4bd734e8a82ba99c340954cdda68570acaa2 \ + --hash=sha256:105ddb962e3dab018971dba4bd195167512fa0a43b431fb680d0019efbae0903 \ + --hash=sha256:18de5b82203c18d4e5be1a85c773afdd3e855266d8ecbdf2138072e29ee4cbbd \ + --hash=sha256:1933ecd6bbe639e98b5bb9c753e928103357df01a5791ca0d8285db3d810e4c7 \ + --hash=sha256:1dd56491b44a2bfa217f60da66a5c9c889add7ad9dc2cbcf526389ea31d83bee \ + --hash=sha256:1e52124110303abb7513e6575f59c4c1d32e721c1a45f7a2ae200e8cc492ef13 \ + --hash=sha256:2154f5ce28b51de46b990eb794223bebf8e0a5326ae2658a1e45c247e50779d6 \ + --hash=sha256:22e84ed60fb6386c9426ba2c23808052a4c2edd9643dabda0772886f849e4527 \ + --hash=sha256:32eb7a6c6a9646325e7dc5749d46cae30fb74eab8a39d3bbb0603163127bf7a4 \ + --hash=sha256:370cbb0b307c40ccdd0131587734520c498829b54364dceca7e2c7e517ef89ee \ + --hash=sha256:3f1ea7ed238d18e49cf266155039256e87987f43dab5e87ea7bb91a959e64f91 \ + --hash=sha256:42f57e27ea37642222e00031ea73e47420a40f7de6e6af870e82b8cdd033c5ec \ + --hash=sha256:43a6469797f09a985f8f035df63cd072105d5f16bfbe27d82b542065c988c3dd \ + --hash=sha256:4f8e640fd3afcc19da343c5a769743f361573b8db98cd739e295a387921486a5 \ + --hash=sha256:4f95afac25431585b34846d472ea0ad5db83fc97fb014d62c70082456f6b6b5c \ + --hash=sha256:539ff8b596669263bd531f49fa1a825f570c766ab43c48e454447d6a47e91271 \ + --hash=sha256:5f34d5aa0b23e2a52234665837e4804b045e9928df1be36f1a2450e0d1e996bb \ + --hash=sha256:6017de097cecbc28adec1048f89e579e93e2c2292b1325d1396f26aacd4107bc \ + --hash=sha256:60ba41564e8b5018c9d8a5f8ce7a5aaf70c96d8dd98c1a54b854cbada362d471 \ + --hash=sha256:6267be0db81a9d850b3ecd9bf0cf7dd0f439408db9fbc59237e37fda3f7676b0 \ + --hash=sha256:63ac6fde8a55d688448fc25eb32b645276501e0a30ff961a72958dfd0a4065df \ + --hash=sha256:668cc9dd0518b00c092b44dca365a12ffe0cebb5cca0af0b9790fe3cd8f51782 \ + --hash=sha256:6c6cf406fe093b4ea21876949e0d21f75384900f3df543e8411447ee37cdd394 \ + --hash=sha256:6dd2d7948c3708a62a1b13c32b03b5a94031e0cd3b7f5c5a0343e5a4a3b3bc41 \ + --hash=sha256:6e92768199ffcbc271c2fe0b0bf32f734d78bbc91d15ad7347cd7d5624a9b338 \ + --hash=sha256:70bac04a877236b059fdc7b317d47db335a48d6eafccda9b91a59907c594758f \ + --hash=sha256:733d28fc6b200910211924cd8d5deef86095cd085a0bf64502943c80b22942d5 \ + --hash=sha256:7928869076db6267ab3ebdb253b2c80be1e738b3032c783170bd1d59d460c578 \ + --hash=sha256:82716e3051bbf12d67d95397ce5018236c15edb87fe55f949bc383e5668d8f1e \ + --hash=sha256:83adc889ae89057fd9f292ca1a9ee56da43f181fccc7ae48a060d7aadc179eaa \ + --hash=sha256:869c4e2d99ef622cfb39e6581afe5d3286e0c01161e03ad580561db28bcd3992 \ + --hash=sha256:95830850ababacf86d4e1e11b8cfa062a14b12c0c5f332dad1d4f99e1679a162 \ + --hash=sha256:986f001874378d0a4c1f919817b7e331be96bbebf3993f5182459bcfc6ac0116 \ + --hash=sha256:9c2040afc35e71e210007a6bfb45c75fdffd8a1609885b8d138cdea919a6ef5e \ + --hash=sha256:9dee6ddc835bc16968daaa0fb804ef99bcc3cca5abf6c33bca17c52a1dd99823 \ + --hash=sha256:a01855e2c023e64683798d7148f9760c59b32be6e43f4bcbea8eb8137b650a5b \ + --hash=sha256:a9c09da5cbb4cf8b142f3b7bbda05e10b51d7793f861904e440208f63578a194 \ + --hash=sha256:b517badcb8174f8937699465a0ba5b58c2daeaa9bd13d69b1e6ab13401d24a74 \ + --hash=sha256:c1844df29fd58a78147b7fc2509682179d25edc81eb83659d26fef3c5930c25b \ + --hash=sha256:c45854cd4e20559bb2aa613c6aaffb58e86ec7cf5bdd32100c4a59d8bcaf4d9d \ + --hash=sha256:c4cb0d445a54278e5ba64a2d18b338421b1e8faac3e78b6b722ad9d83ac191fd \ + --hash=sha256:c7375f2d6acd8c72f413d018266ae06387cb9caab31f475f3ff1c5600a7cb4c5 \ + --hash=sha256:d124475e725707a94598211d3c80edfa9755bea9c327e8babff6ce4511344d9f \ + --hash=sha256:d46dd07f57a65bae00ba7da239ee76ebf87e3202f042808d209b56be3140e416 \ + --hash=sha256:dd0c9070d9c362fe280a0224806b1b47719b154984735041ebcc907e597c08ca \ + --hash=sha256:dfd5269398bb64372137d8c354530b6e81159ce0e92fd1ed7e9140b294fd939a \ + --hash=sha256:e1ce3514d2bc6f9c14e1c69787acee0926aae0599d73bacf4a8048394a2d2ca4 \ + --hash=sha256:e5ed9e82d813ed9314be9acbab95f519c5816233a2ab38270be2ff5d10d2786e \ + --hash=sha256:e635385a4f778b248ea6f61fbeb285b6bb14a1891d75cfbfd5af12e010298308 \ + --hash=sha256:ebed763d7da5833982529baf02d0330c5437f4ee5207a1a8a60ab261bd94302d \ + --hash=sha256:ef130e3da895c85374b11a6c389acb122893f2ffcbed826b8b62fd45a20b7ad6 \ + --hash=sha256:f0604cb3015091f285c79c7b7dbfcabcfa9948248728c7bab6e0263513c3d3fe \ + --hash=sha256:f1e6ef441e1e2ce54159022a8fa5597f8ea4f7acf278752049c4f774bbd0501d \ + --hash=sha256:f50b2b759c98d50ded360dc470d03d62ce1a41b3a6da81dd5e0b995865dca067 \ + --hash=sha256:f6cbda9cb8c33c9f8673a2b69fb19bdab75b5032d4e47a42a0e7b36db1c3ebcc \ + --hash=sha256:fbb3fcf1363a631d05aa5adcb30d07655158be07e09339c1fe62f7267b3a78f5 \ + --hash=sha256:fc8bfe0478c96cdcf0c4786f13edaa20490fa1714fb145f254627bd66654d81d \ + --hash=sha256:ff1d7be54758ea3a875b8fe54eff13bed17ad9566505e301f5d7851bf869680f + # via -r requirements-fastvideo.in +mlx-metal==0.32.4 \ + --hash=sha256:514df92d41a286895d2564b4b18f4da45096bd7a4a0c47e1042f345ad5a7f936 \ + --hash=sha256:8019b2db622599267d66cc168b2f0dbf5af929790a6c3b3913e00eabc42a7947 \ + --hash=sha256:9f0a3cc26d89724434d9684932fc6f3e4e83669d2a895d858ed2c8a55eb84e8b + # via mlx +numpy==2.5.4 \ + --hash=sha256:067374eb538c34c745436365cf7b0112595c1d326f21ce4ff340f61230239fbb \ + --hash=sha256:0b4724a19de67bea8cfc4970798efa78bcbbe2ac2613cfac16721a42d44de2a5 \ + --hash=sha256:0f02a46e49cfb6c73bdb7aea1c0d3461dbae9aba613542b65f657cd3d17b9fab \ + --hash=sha256:1c2e71b04c6cad90026e544501bbe0ab9290fa8a4d845e7e8c0d124fb429c988 \ + --hash=sha256:1ef3aa6d7e29bb13677323114280b05acc57607fa2300e66432d665d5418a162 \ + --hash=sha256:2132418bf8dd124a427ca9e6a1daf9ee1a87185344c95119ceae868b99466da1 \ + --hash=sha256:2199ed071f460487c8db2c0e5c0b564494190edb4772fe80f9aad88b2604def5 \ + --hash=sha256:2377da2dd3ba2c1200956acbab2a358c83b8e1f8531191672d1cd6ad83250d53 \ + --hash=sha256:298eca75243f2cbbfdb460560b9fb2a1792a33cf2ab4286efd43d92e8d3df508 \ + --hash=sha256:2c2c4afffdeb7920e445028dd71eb932cac3e704792e964bc2a232426d4f1255 \ + --hash=sha256:2ca144f15135b6212a5c47b1e2aeca6e412f102f95a2d5d88d8aec77eb255de3 \ + --hash=sha256:2fa3328f784fc8277fc48026f6cad516f5c561c5d8e2e39b3c9e0c8f23223b34 \ + --hash=sha256:325518d4245b9e331387702aa58c2ce1dc4cdcbb41dfb4ccd5dcbc7e08db1266 \ + --hash=sha256:332f3378fe077dd850e677ec01bdcc4f22368fb5d50ef10b2c79230b1bf5a592 \ + --hash=sha256:3573cd22564692a5b899ec344e5d5b9cc4576f2985b96f22af3564ed54f2710f \ + --hash=sha256:381a7a3d2e65e64c0ec302795ab9dc12bb1e73f150904699c153716177eebdaf \ + --hash=sha256:38f47be9f74ab870d2633b5456ae519c43758a8d1fd05342f0ce4ecc034396ee \ + --hash=sha256:4054173604cd8658796053f1f3bc0befb68ec1c0762c57fdad61e199256a8617 \ + --hash=sha256:468397ba3c64427474706e5c9123fe266395496714dc684294eac75cd4930d1e \ + --hash=sha256:4e263278bfb5ee6409db8aedbc4cc32973b1b82bc1e8d3c668551d04d83a7e37 \ + --hash=sha256:5258bc06526964be5face2fc6f756857a3f24f21ec3e72ca131337a75b165d6c \ + --hash=sha256:56733449d2544178beaa4545cee357370440cf056c197f9c7bfb19dbfdd0e86d \ + --hash=sha256:5ec3753760c1a6d8bb91200666e545c3a9728e6269dfb5d6ce02340996698aa3 \ + --hash=sha256:5fbf7141bbfd63aea22f435c9062a032b9ea0082fe9845dad7f021d3f1234e71 \ + --hash=sha256:64d1c8ac28a4077cf987e0a71a7a0ef7e2df70722f07f0baa42dbb7eb6938647 \ + --hash=sha256:64f9c9878c1938476365e11ccfb6b770f3b9e5f045ccddc514235041e6959365 \ + --hash=sha256:6c109eac9cd439193678f69d70733c1108487546ca8eafc107b510ae10c1aecd \ + --hash=sha256:6d6a71b9d9a97c03633aa12565ef2825ffa036cc1d99cfd50dacf0f128af4fe2 \ + --hash=sha256:6ffa07666f8da0eef81d149934a626d0d95fbd6838432a33e66245423a9062c0 \ + --hash=sha256:7415db95818b39ec475a5eea54d9e3b6bc83e3912158e46da3438cdce399804d \ + --hash=sha256:77045a4b175bbf5316ec08003880804336c78f92281a1b72222b274ea85ec5ac \ + --hash=sha256:7a14a461d9340f1b46b8648578aed9cdb8b3b018a8fac6c1dde2c9192a01a87f \ + --hash=sha256:80d6ef6e8620eb2c2b4c4caad50b5935d6db3cde2d51581b55dcc79e14016d1d \ + --hash=sha256:81e3420b27048b65eb14c3acf0c174a8cb0e023277716110347d2dcb26026dad \ + --hash=sha256:823874a507a84af050493b622affde94b6f7c3a0dc22cb2801381bc03b871c00 \ + --hash=sha256:8b4d2fd2d34e5f8c9235ee787de5631a37a28402b15cb80814df973d2be54129 \ + --hash=sha256:8dddfbee2e68d26d0d7d7d9cb247b1fd4409241cce32d815a11d97ec2cfde179 \ + --hash=sha256:950ea81d57ef070665581b6e1b5f6a029306423cd1739c5b95fe78aa30db6b9d \ + --hash=sha256:956555e0603a4d38019ae6925711cb9dc43195c076a928accf7ea5d50bddfe53 \ + --hash=sha256:98b053943e5a0474ec0da309d2cb9d3f18ea57f8a2067c2ab7b5f763d1068380 \ + --hash=sha256:9968ab7e49b93ac6e1c3b2239732183152c9150f16308d30b66a372cffe3483c \ + --hash=sha256:9a94cf751c9ad8ebaa835bcd3d40dacf8534ad086b88c38029b65123c7999d2a \ + --hash=sha256:9cb18a327b49c5c337f972b03682f6a49855525faaf3c0d3e9c96cd0fd8880a8 \ + --hash=sha256:a7b1b6353e36a7e50de2973a38d705c88ee93adcf120673cee7f45a4a3fa223a \ + --hash=sha256:a813ed7719bf45463c51779e6a98d0385fe905e48447526938a4b8337333d551 \ + --hash=sha256:aa1cce2ff3f8d953de38b76bf44602caeb69f101430208f64a10067f7cb4b1d3 \ + --hash=sha256:ad62a416ddcf863bf44bba76fbf6b53366ab0692e294f51cae4b5fbe0d246788 \ + --hash=sha256:aec3fc4b32ff82421274f5d205c559c51c840c8df66a78efd7f3612dd005a26a \ + --hash=sha256:b1185012870173de7ae33d370bd45b1cf5baee747ea4b97036b65f4e93016877 \ + --hash=sha256:b11e8fda06a7d69f15ebf542660b74466c2e51094800c1fb794f47ad4faeef17 \ + --hash=sha256:b64a85f40e154983960a4167d4c1d57a50c7f109b3d3264a3a984154e90a8454 \ + --hash=sha256:b86966fbe4ad7de710422175572bcdc75fdedadfb54bc6fab7deabccddd7780b \ + --hash=sha256:b89d0aaae2fe498c648f4c4795c084db535af5bd98ef942b2a3681fb74ce8645 \ + --hash=sha256:bc39ac66a7a9a3fbd6134fda43136b60ffde99c8f4501e64e0d2b24da137babf \ + --hash=sha256:c05ede731b03fb1b7591faca9389ade3267d2bddf1ad8882bb3f2cc5e101694f \ + --hash=sha256:c6342f54c67093cae5c0227eb0eb772fdb79f2a2c37a6eb278b9909ee06aa356 \ + --hash=sha256:c668b2f0d651605b58892644b0e302c7157f7159544227758c896982ef384b18 \ + --hash=sha256:c9b80cdf5cedba0e90d93fa5f9a333c4d65bd545cd669b71bb97ce2b703c9d73 \ + --hash=sha256:cfd73180400042a7c532d30c5e287bdd03c59ff9ee1b4c0316af0539e29dfe23 \ + --hash=sha256:d4cccbbc78717966f764cd3af4fb70276fa01fc7a2688af11c78901fa5c04f05 \ + --hash=sha256:d549420b8858885cea8838a727842249218b9c1da24dd517e25c9c7a948310a3 \ + --hash=sha256:d8200f16437b289a5bb927c6e184eccc3e8389bc0070fea4cd5b9e13c1757959 \ + --hash=sha256:e94aef2c639da4a960ad0db8e06471208d8589974953d78b61d345b4eb99e394 \ + --hash=sha256:fbde6962867ee75b48b0ee29b2b9372ec5d617799dbaf38e82dc0596f2f7738a \ + --hash=sha256:fe4d21ab149f15e4e6043dfb0de87e6e5f34ac176cde83060e9802981fca2ac2 \ + --hash=sha256:ffa6ce09a1c6a08e9667dd9c97aa0b14184e8d18f2a14b78b2a2328c9147f076 + # via + # -r requirements-fastvideo.in + # opencv-python + # scipy + # transformers +opencv-python==5.0.0.93 \ + --hash=sha256:08d5d91d967b58d6db86073b2ad3eaef88ca4ebdfd45c9059bf59f5ded0c7ad2 \ + --hash=sha256:198a75138241810206a17c829dbcc40a7cb1841cda538ca86cbbfc6c7d95f898 \ + --hash=sha256:4b4b1a34c79bf8d3738e3cfe9a9e67b51a79663f6b692cbdad8c31f570da4157 \ + --hash=sha256:66aac3e5b5faa48d4025816592f3af19e4bfc2c68dec067bae2dbb4ca10aa9e2 \ + --hash=sha256:6bbc32f59e1b1a7db7b39c81f63d00625f041d333037fd8702f6da52cc39108b \ + --hash=sha256:c8de2dec111122a02e8beb28e16c31904992dfd6186560b142a92c71403c1039 \ + --hash=sha256:e2b4272e736836f66c2d176e43ab8101f3a00d45654916399f52e150c58981ac \ + --hash=sha256:f8b6d0a212253dd26ad338c812f1f23ca118fdf05a9c8c6b9444f161aa8c5881 \ + --hash=sha256:f90ba04b8f73bc5c3814037699739f0156f597338a98f05956c684e7c3ca10d2 + # via -r requirements-fastvideo.in +packaging==26.3 \ + --hash=sha256:94edc256424af38762eb31306eed28beb9f0efc50a8837492c9d6fd6004aed79 \ + --hash=sha256:d7193f7c8e4e93f444fde0262bf90af30e16fa0ad0ad44cb553c87339b23cd1c + # via + # huggingface-hub + # transformers +pillow==13.0.0 \ + --hash=sha256:02464da86f561f410e13b061ec37c3068a9cb557a095494157742d07b3c24a27 \ + --hash=sha256:04a63720f79e22fd54d897c233a68314c50ca0603360f54ce2bd5db8f0f43782 \ + --hash=sha256:05cd2cd39055d0b9650060e4513ef4a9a0aea870083950bd046a0d6490f93a22 \ + --hash=sha256:06903aac074d00c988e77a1fc435286dc498506d4ca8d6f69df9babddf4ecc15 \ + --hash=sha256:08b826a9bf1265c76de04a42061d61ea6b109418b7826f28ff1ecdfaa26c5502 \ + --hash=sha256:0d1a9cf7bc6917538b20f8d06b9ab2147e542f68849e96fc58eb66bdf6acc692 \ + --hash=sha256:10b5019883c98f1dd819ca48ffc6f33a91cee04948fe637c605f4345c7cafd6f \ + --hash=sha256:12b0fa15879fe5a9d9eebe66e4e2d74128a773b1a4448010c9c714f45e04b9d8 \ + --hash=sha256:12fbb851cf323cc19aac3eea1df5ad17b57e91e9fe3cfd06100dba7bb8208c13 \ + --hash=sha256:149a1c323ba366f90b48e6f1a6db6582eb50512df374588de56fc909abc0f0f3 \ + --hash=sha256:19b66ca0a4d25cc0200b381ce824c7ea090db61427315e73cfb05dbf1b35c369 \ + --hash=sha256:1c774b9c0ba0d0b356f71530677b39028878a2cae5a93e0a13779cfd17120f88 \ + --hash=sha256:20722cd5375533ad754053363a80b8fb30c79d37930a6f7228030e237ce3bd5d \ + --hash=sha256:20822140c9a2ba9c5e42df342b0a892ab2e102fc0e3db967a133bb9ce3f898bb \ + --hash=sha256:21c32061a5512dc13f87cc7303e120e4d77c2f70df89a35af0e3ce246e5ac57f \ + --hash=sha256:2310e2adfc13c6d457d7d0f2ffdd5c56a74a317650cf765887df8d515a647ac0 \ + --hash=sha256:23edf4ec4b6f4f240e8df6e4985e9ee2ced86474632433e55fb1e2548744bf40 \ + --hash=sha256:2d50500a4a3bc6469adcdb319cf05d688b08ca3bf0f22a05339f3b25b433a599 \ + --hash=sha256:2e31c4e68cffd7b1f116127626813b82fcba19edf6b940a7b0c266d6484d0055 \ + --hash=sha256:34fb3db1149c879343861831728c243c432d4a5afc8f1878ca7612ef8de2a033 \ + --hash=sha256:37290fbef0c73e2d51d594eb78fded7dc7170d1c3ad0a890269e6fd8c8c4e061 \ + --hash=sha256:405be6058e206a86fedce2f715ecc2343f94072d7925251632dffa2c05f70dca \ + --hash=sha256:40a266371ece581e5de13b6635ef78d7487824af80561b6ca27694a88c19bc0f \ + --hash=sha256:42d63be3af4f9b951b199b0a9d23365d37ab14687e6d77b74940432c8515c4ca \ + --hash=sha256:44629d4498c9cb6b2051806155f22141df0d8a929c56134b166655232dfb2f8c \ + --hash=sha256:49c12af515073e9bf511e4ef736743bf70d531a643668722279314b937742ba4 \ + --hash=sha256:4a25756244bdcce3b50580baadf320fa48297f0eeb8e114ba64139a40d4d0fc8 \ + --hash=sha256:4bd024d567eca931b668978d672dba914d4b8e2628e2c3073a2ad178de8a2620 \ + --hash=sha256:4f8db54177035a2b5f717f94475b74907e12a96dc74f6d487f3966b0a4694071 \ + --hash=sha256:51ebb529fc5e8abdd55302f6c3f8943037348ec2384329a3e55677f69ae2fdfc \ + --hash=sha256:567f20f1c75897d7663830da6ea8af719e03d712b1d9ee7f813319f9ece42e5a \ + --hash=sha256:5933fcea5a5ba64c686f55c886a115cbfd92f2900460784a1e79909fdbafd7b6 \ + --hash=sha256:5bdb38ba220b61b4ec31dd1046dea6b016d3c6850a23f43ed8b58332b2fc668e \ + --hash=sha256:5f56499c1a74d2b862beb0c33b8016f99d095858455df9d21583bbbc1c15b582 \ + --hash=sha256:67871a13cf47275201553b536c025da777f997fa562a19eb798af4ad4b97c18f \ + --hash=sha256:67c8d44ad89fa7eb88de5d6ef6199b1e03dd24974f85a67639fc8badb801fe79 \ + --hash=sha256:6a0920cb55df5a4d3f6862964908078c0bd59332bdd1bcd20d14e8c70ef27cc5 \ + --hash=sha256:6bce6a29c3898191f4c9998e4d4e8f69790caeabde46e54da4bc235ce5bde683 \ + --hash=sha256:6f38f3f885a09cafc93fd667b1173a92f379e43785d635e7983c893f0da319fb \ + --hash=sha256:73ee25cf8cf8b75d5a5aeed7cb6588f5e5dbfbb0fde51707b630bbb23897645c \ + --hash=sha256:7b999816b5850a35ada08443e6e03945f1f6488144a83afe2d37b240a552aafa \ + --hash=sha256:7c88c10dd432f3b39ccdafc9ed81d0c21b8fd634502574da76d1bfa4fe2c76d0 \ + --hash=sha256:7d5e097eabd5d4915c27ac9f6e9325bb1e01a7c94d7348b5c4451d3fc30e8521 \ + --hash=sha256:7e91e97a929232cdb828889ee6ad0e48d7f40f4ec38818f4e4a8968b2b1af22e \ + --hash=sha256:7f6299e494e46253d40c34653cac369412f44ca53b5f85d848d3f95b1ed0546c \ + --hash=sha256:816752a5ef76a80484c8c441c85593b7ea9304f6231fc5776ad1fbff7e773058 \ + --hash=sha256:83b37abd87b590acd8f47ca8a61f70893322b11834d36e07c2298dacad4d14d2 \ + --hash=sha256:8619685cad8efc4c38c66d3b36aad854523297c43d748b3b6f0cc03c90ba3463 \ + --hash=sha256:8bf295fe459343bc6093c8e5e0df60bfa189e0fcb775a22e2c2488fdeccc6c0d \ + --hash=sha256:8e459b613cf31f8980f584387b4fe47bf08e076e288d61aa8eba1f7fd4ddbb81 \ + --hash=sha256:8f36aa77f74b14a2103622b196402c71330e4e7cf4122ee45c854e9a01e0eecf \ + --hash=sha256:93ff9c9c3663ce23aaa5d0b6b6abac55359e2a0c06c7e30f3771829af816be63 \ + --hash=sha256:9a635068d9793c7f0d929f39f18b58f1bd86c236e8e7b64167b86af9232ebca0 \ + --hash=sha256:9dda0788a9932776a75d8bcc020076edc308ce2508b51f6739a45e3158b3fc42 \ + --hash=sha256:a192360d512305fe92d3053e4f7627bbad1f7708f1f4ad38cccd9336acabe9ad \ + --hash=sha256:a2a14cd73d5e6c927f644b0110ee81f59c4ef506259ec9183904747f2caacc81 \ + --hash=sha256:a625df9a2a5597fa5e5266e01aefc82604bb85d291e3547981e863560d75da6c \ + --hash=sha256:a6aaa7871aebca081eb5c45f83e845bbd9712ae99fa9286dbfdcee835e63f4b4 \ + --hash=sha256:aa694c49787040943570d61c9b8fc01271bd2a2cfdd55f0d896f8aecdce1a981 \ + --hash=sha256:adb3c2124c68e480f4632d06cb7caa3b48a51678475f483b4edb1c6dee29ea43 \ + --hash=sha256:b84be41387fc00db28c13c02e30d42b02d8d8f6a4a741a1aee6012ca7f1f6039 \ + --hash=sha256:bf97ba1b5542050e9b0c74e632323b6d8136cc99d64e193abebee22fe6013c76 \ + --hash=sha256:c3bc8ee0271387e0b1e3ad0ff893645990a656e79bf9c42f4f734a3642b11d51 \ + --hash=sha256:c50c80e3591e5cf9a8dfa6007d4f10732f02e32263850999286e56ccd650cfb2 \ + --hash=sha256:c6fd031333dedcad7ce3e03d244093f43504f209e86925ebdb2b868fa4037630 \ + --hash=sha256:c87a04e7f152ee4db5dbe15f0bfa3fe628a1aeedbe66b81c43b87f52c813f9ac \ + --hash=sha256:cdcd1ba258178f7356d74170c9a81ba4eab6a5d55748bc402a5a2a6fe6be3510 \ + --hash=sha256:d4737f50d23ddd11d6685faacbb9252887dde0bc7997127757247983d74399d6 \ + --hash=sha256:d7710eb676e9bb68965cb045be0d333b4c0d7f9dfbaa7fbf121385b1588683d3 \ + --hash=sha256:d9b0a2bee3f3e03e9f29057aedb807dbf1e1d96ee1b9d0f422d9db6c8583271d \ + --hash=sha256:e65dd6e75de67b2362a4fa3e16aa627595f65054dc4ec73d64680c84d592fa61 \ + --hash=sha256:e892354a424b1e82a78ba16785822bdd40de06f19446a3d4a28047df1a4f8932 \ + --hash=sha256:e8ca8f69b7c77fa96dad99f8638c1fc4f1c0bed4acaa1baf7a3c31bdb80a0ab1 \ + --hash=sha256:e91c2b1cbeae768c98752e67e717e283d68dae45717b41f2d91eaee648e37b7d \ + --hash=sha256:e98b4f91f99b24b1da72e10621ba181f7281922384a7403094debb4199de6c00 \ + --hash=sha256:ef5fe6b7db3f501c56000ba8fe7c7e1a35ca1d45824fbeb95a67daa85cff4dbe \ + --hash=sha256:f11a3c1358bb3c68012a7b1f41b223c3db9f7bfde90b481df028cfe1c3363313 \ + --hash=sha256:f391dc92a015c478745192fe4f2e120c2af2aba18d9fe0616341cbf537599806 \ + --hash=sha256:f7cbb7a64e7ec664775195e4f81923bc8a93d9451b963f844e59118f63147a7a \ + --hash=sha256:f9bd7d260d986f3553518c5d723544346fa48031f8aef3265d786aeb59845bc0 \ + --hash=sha256:fc481f742ccda20e9ed760b8f978dff50f2a4e9bc253ac167fb0a05b0783ef52 \ + --hash=sha256:ff3fe9eb621fbb9db4c4be33ab946f6bac5f98ab50ca8d3260503653656c961b \ + --hash=sha256:ffea6b2986a797c84b6d1d27d4f43e0b83c73fc16281a930891cd237cf0d08fe + # via -r requirements-fastvideo.in +pygments==2.21.0 \ + --hash=sha256:2363c69b61c4a97c838da3b130dcd6468f4848992b21a82f2a63ec34377137d9 \ + --hash=sha256:610ca751c9bc2492b38eb9a38a7fbc93edbbb2d7182edaf34e66ae493dee5c8c + # via rich +pyyaml==6.0.3 \ + --hash=sha256:00c4bdeba853cc34e7dd471f16b4114f4162dc03e6b7afcc2128711f0eca823c \ + --hash=sha256:0150219816b6a1fa26fb4699fb7daa9caf09eb1999f3b70fb6e786805e80375a \ + --hash=sha256:02893d100e99e03eda1c8fd5c441d8c60103fd175728e23e431db1b589cf5ab3 \ + --hash=sha256:02ea2dfa234451bbb8772601d7b8e426c2bfa197136796224e50e35a78777956 \ + --hash=sha256:0f29edc409a6392443abf94b9cf89ce99889a1dd5376d94316ae5145dfedd5d6 \ + --hash=sha256:10892704fc220243f5305762e276552a0395f7beb4dbf9b14ec8fd43b57f126c \ + --hash=sha256:16249ee61e95f858e83976573de0f5b2893b3677ba71c9dd36b9cf8be9ac6d65 \ + --hash=sha256:1d37d57ad971609cf3c53ba6a7e365e40660e3be0e5175fa9f2365a379d6095a \ + --hash=sha256:1ebe39cb5fc479422b83de611d14e2c0d3bb2a18bbcb01f229ab3cfbd8fee7a0 \ + --hash=sha256:214ed4befebe12df36bcc8bc2b64b396ca31be9304b8f59e25c11cf94a4c033b \ + --hash=sha256:2283a07e2c21a2aa78d9c4442724ec1eb15f5e42a723b99cb3d822d48f5f7ad1 \ + --hash=sha256:22ba7cfcad58ef3ecddc7ed1db3409af68d023b7f940da23c6c2a1890976eda6 \ + --hash=sha256:27c0abcb4a5dac13684a37f76e701e054692a9b2d3064b70f5e4eb54810553d7 \ + --hash=sha256:28c8d926f98f432f88adc23edf2e6d4921ac26fb084b028c733d01868d19007e \ + --hash=sha256:2e71d11abed7344e42a8849600193d15b6def118602c4c176f748e4583246007 \ + --hash=sha256:34d5fcd24b8445fadc33f9cf348c1047101756fd760b4dacb5c3e99755703310 \ + --hash=sha256:37503bfbfc9d2c40b344d06b2199cf0e96e97957ab1c1b546fd4f87e53e5d3e4 \ + --hash=sha256:3c5677e12444c15717b902a5798264fa7909e41153cdf9ef7ad571b704a63dd9 \ + --hash=sha256:3ff07ec89bae51176c0549bc4c63aa6202991da2d9a6129d7aef7f1407d3f295 \ + --hash=sha256:41715c910c881bc081f1e8872880d3c650acf13dfa8214bad49ed4cede7c34ea \ + --hash=sha256:418cf3f2111bc80e0933b2cd8cd04f286338bb88bdc7bc8e6dd775ebde60b5e0 \ + --hash=sha256:44edc647873928551a01e7a563d7452ccdebee747728c1080d881d68af7b997e \ + --hash=sha256:4a2e8cebe2ff6ab7d1050ecd59c25d4c8bd7e6f400f5f82b96557ac0abafd0ac \ + --hash=sha256:4ad1906908f2f5ae4e5a8ddfce73c320c2a1429ec52eafd27138b7f1cbe341c9 \ + --hash=sha256:501a031947e3a9025ed4405a168e6ef5ae3126c59f90ce0cd6f2bfc477be31b7 \ + --hash=sha256:5190d403f121660ce8d1d2c1bb2ef1bd05b5f68533fc5c2ea899bd15f4399b35 \ + --hash=sha256:5498cd1645aa724a7c71c8f378eb29ebe23da2fc0d7a08071d89469bf1d2defb \ + --hash=sha256:5cf4e27da7e3fbed4d6c3d8e797387aaad68102272f8f9752883bc32d61cb87b \ + --hash=sha256:5e0b74767e5f8c593e8c9b5912019159ed0533c70051e9cce3e8b6aa699fcd69 \ + --hash=sha256:5ed875a24292240029e4483f9d4a4b8a1ae08843b9c54f43fcc11e404532a8a5 \ + --hash=sha256:5fcd34e47f6e0b794d17de1b4ff496c00986e1c83f7ab2fb8fcfe9616ff7477b \ + --hash=sha256:5fdec68f91a0c6739b380c83b951e2c72ac0197ace422360e6d5a959d8d97b2c \ + --hash=sha256:6344df0d5755a2c9a276d4473ae6b90647e216ab4757f8426893b5dd2ac3f369 \ + --hash=sha256:64386e5e707d03a7e172c0701abfb7e10f0fb753ee1d773128192742712a98fd \ + --hash=sha256:652cb6edd41e718550aad172851962662ff2681490a8a711af6a4d288dd96824 \ + --hash=sha256:66291b10affd76d76f54fad28e22e51719ef9ba22b29e1d7d03d6777a9174198 \ + --hash=sha256:66e1674c3ef6f541c35191caae2d429b967b99e02040f5ba928632d9a7f0f065 \ + --hash=sha256:6adc77889b628398debc7b65c073bcb99c4a0237b248cacaf3fe8a557563ef6c \ + --hash=sha256:79005a0d97d5ddabfeeea4cf676af11e647e41d81c9a7722a193022accdb6b7c \ + --hash=sha256:7c6610def4f163542a622a73fb39f534f8c101d690126992300bf3207eab9764 \ + --hash=sha256:7f047e29dcae44602496db43be01ad42fc6f1cc0d8cd6c83d342306c32270196 \ + --hash=sha256:8098f252adfa6c80ab48096053f512f2321f0b998f98150cea9bd23d83e1467b \ + --hash=sha256:850774a7879607d3a6f50d36d04f00ee69e7fc816450e5f7e58d7f17f1ae5c00 \ + --hash=sha256:8d1fab6bb153a416f9aeb4b8763bc0f22a5586065f86f7664fc23339fc1c1fac \ + --hash=sha256:8da9669d359f02c0b91ccc01cac4a67f16afec0dac22c2ad09f46bee0697eba8 \ + --hash=sha256:8dc52c23056b9ddd46818a57b78404882310fb473d63f17b07d5c40421e47f8e \ + --hash=sha256:9149cad251584d5fb4981be1ecde53a1ca46c891a79788c0df828d2f166bda28 \ + --hash=sha256:93dda82c9c22deb0a405ea4dc5f2d0cda384168e466364dec6255b293923b2f3 \ + --hash=sha256:96b533f0e99f6579b3d4d4995707cf36df9100d67e0c8303a0c55b27b5f99bc5 \ + --hash=sha256:9c57bb8c96f6d1808c030b1687b9b5fb476abaa47f0db9c0101f5e9f394e97f4 \ + --hash=sha256:9c7708761fccb9397fe64bbc0395abcae8c4bf7b0eac081e12b809bf47700d0b \ + --hash=sha256:9f3bfb4965eb874431221a3ff3fdcddc7e74e3b07799e0e84ca4a0f867d449bf \ + --hash=sha256:a33284e20b78bd4a18c8c2282d549d10bc8408a2a7ff57653c0cf0b9be0afce5 \ + --hash=sha256:a80cb027f6b349846a3bf6d73b5e95e782175e52f22108cfa17876aaeff93702 \ + --hash=sha256:b30236e45cf30d2b8e7b3e85881719e98507abed1011bf463a8fa23e9c3e98a8 \ + --hash=sha256:b3bc83488de33889877a0f2543ade9f70c67d66d9ebb4ac959502e12de895788 \ + --hash=sha256:b865addae83924361678b652338317d1bd7e79b1f4596f96b96c77a5a34b34da \ + --hash=sha256:b8bb0864c5a28024fac8a632c443c87c5aa6f215c0b126c449ae1a150412f31d \ + --hash=sha256:ba1cc08a7ccde2d2ec775841541641e4548226580ab850948cbfda66a1befcdc \ + --hash=sha256:bdb2c67c6c1390b63c6ff89f210c8fd09d9a1217a465701eac7316313c915e4c \ + --hash=sha256:c1ff362665ae507275af2853520967820d9124984e0f7466736aea23d8611fba \ + --hash=sha256:c2514fceb77bc5e7a2f7adfaa1feb2fb311607c9cb518dbc378688ec73d8292f \ + --hash=sha256:c3355370a2c156cffb25e876646f149d5d68f5e0a3ce86a5084dd0b64a994917 \ + --hash=sha256:c458b6d084f9b935061bc36216e8a69a7e293a2f1e68bf956dcd9e6cbcd143f5 \ + --hash=sha256:d0eae10f8159e8fdad514efdc92d74fd8d682c933a6dd088030f3834bc8e6b26 \ + --hash=sha256:d76623373421df22fb4cf8817020cbb7ef15c725b9d5e45f17e189bfc384190f \ + --hash=sha256:ebc55a14a21cb14062aa4162f906cd962b28e2e9ea38f9b4391244cd8de4ae0b \ + --hash=sha256:eda16858a3cab07b80edaf74336ece1f986ba330fdb8ee0d6c0d68fe82bc96be \ + --hash=sha256:ee2922902c45ae8ccada2c5b501ab86c36525b883eff4255313a253a3160861c \ + --hash=sha256:efd7b85f94a6f21e4932043973a7ba2613b059c4a000551892ac9f1d11f5baf3 \ + --hash=sha256:f7057c9a337546edc7973c0d3ba84ddcdf0daa14533c2065749c9075001090e6 \ + --hash=sha256:fa160448684b4e94d80416c0fa4aac48967a969efe22931448d853ada8baf926 \ + --hash=sha256:fc09d0aa354569bc501d4e787133afc08552722d3ab34836a80547331bb5d4a0 + # via + # huggingface-hub + # transformers +regex==2026.9.29 \ + --hash=sha256:01000ddf0e3ffef97f2413ceb514f6313040106b6d18a03ee00a4fe35c1eb1db \ + --hash=sha256:0166844493626c5015c6088ee15c9ca2fd060ca15b7641d1657da6a58432ae33 \ + --hash=sha256:044265d77d94f5e3cb2fd72c76723807c429cb8c533e9d4672d0334a6f14f588 \ + --hash=sha256:0476e5bcbe6e1ba3d1c4cc7bbb1c3ba78e3b979b5c8a88d0a6a8cdd4992b8c84 \ + --hash=sha256:066d0e3dbfdd739bce2bf8c2a41dd16f73e3d8adc2eb06dd803a36a307f56075 \ + --hash=sha256:0b65c72739f981377c9c22e0c5c3cd7f42da7bd8a3c9209330fac772c7d893ed \ + --hash=sha256:0c992c19cd45058a4b92f68f139c93db168b48fb1f322c9a7cd620806afb6b51 \ + --hash=sha256:0cc63b5e47c12a48d90c7e9d7de6a035dd14f62868aaedbb4e0ff8ba2b8bfe7b \ + --hash=sha256:0dd8af32e9f7b56b7f95cc1fd79b23054c3bdc172392ae560acc24d57b7ffe71 \ + --hash=sha256:0def9fb6abac55492d6d51cddb7225d07d6f279e774e0adc08569a54a5fc8d46 \ + --hash=sha256:0fd2c901cc307a745ad4bc87f20060d7a0825a3371d1e93488af22e7a387f78f \ + --hash=sha256:1043aedf5917caa861bcb25a9c11460049656bdf0017a90a309fa8f255467725 \ + --hash=sha256:121a76a0985db80ceae9e171c337f8c927868e37d01b54e3ce87bc87f9c6a208 \ + --hash=sha256:143533cc4b6fbc5b95aca0a5b8d541088d374831593def000ec89322c220221d \ + --hash=sha256:14e953ff3607c92d7675bf79c4d4509ef6782aa8c08509f179f9b3d6d0679e86 \ + --hash=sha256:18ae8eed4526e35bdb754d61562b90bf5c00a67fdcf3cc1380dd59597486631b \ + --hash=sha256:19959129885356df0e97556856f77eb2888380dac18bed075a7c05c5128c618d \ + --hash=sha256:1ba8c6a416569ce0d37e83e28a254a61dc99a419084dfb6476cea02d997f74fa \ + --hash=sha256:1c2a0026062abcc321a53db4a185ceba0b59a66b5d37b0808917a88b55a5257f \ + --hash=sha256:1d9fe8091b2e89d470df68a9331111ed008ae8aae6bf1e8e1fba4086a495c84e \ + --hash=sha256:2089fe39c406784d90101c726755ffa1497bb74638fd434300d2b88006186de8 \ + --hash=sha256:23ae6fdad9e63e54038f5ef78aba2933faca61e24d432786589e737bc5522ebb \ + --hash=sha256:26ec4ccce55aa533fbd603d08911b01101a8fcfec987845ac3ae2c7087b2bde3 \ + --hash=sha256:2f7f7aa47b229f2b39a2ae2596d2ad5625d77b5eb9856fac2dab3eb506cdd0a0 \ + --hash=sha256:31b003f9a070335e2a8233ee9b14a3ca8e6d792012ae011f741bf0aaf11744c5 \ + --hash=sha256:32ab11df9677ca80bcbb5fe4eb1da9109a5019239a054836efc6fa1c64e683cf \ + --hash=sha256:33026515aebc0e70d1c89978e53e8d695d35d9e472f8d5b34465ba3c74028650 \ + --hash=sha256:34b6925af9853bf461950e6508910f179fd6e9b1a7ec8548e069606b7e51a26b \ + --hash=sha256:352cf115a810b357caa35193ab656ecf5ef41056855e82f292c99e8514f8d954 \ + --hash=sha256:39ab5894d971f9ac68baa6eca5c50387db579cfcacf36ae8df3feceb1815e6d0 \ + --hash=sha256:3a21a9509d0ee88e7a70e1ad228cd2f0e0fd1e187458db132e8a8d18c97daf9d \ + --hash=sha256:3c5c2ef13797466aa64170cbb66ad98a32351dd4127694cea7199f80f213750d \ + --hash=sha256:3e778bfccd63075167709136afbc251c1f683758d5bf49c803c60ac3f894ce6b \ + --hash=sha256:3f1e6cb402a89457582cd696f982559217d13484a193202c394015297968c86d \ + --hash=sha256:42e82e578c904445d4c8a35b8f28052cf567593215fa5db06266fbc6f77aaa2e \ + --hash=sha256:4408b2b27a95ca8cc48b7411945753773353b5c93b307754781086c99d3a576f \ + --hash=sha256:446654b29bfaa30500d80947eda42cef1449dc8a87f4e3cf061cc8485d3a1f0b \ + --hash=sha256:45010bcfe66df41522d56c9b6114e87ecc597a08970ff6a2ced24415c141ae5f \ + --hash=sha256:49ee178ca31c94621294bf9b8b676a92a2e6bba8af0529591753719e57edb621 \ + --hash=sha256:4d7d93613b01b0199961330e49cfc52d479b3d5776c56c691db31130c0a07d91 \ + --hash=sha256:4fb41211d2333eb930a51e0546a65999761cf1f572a4da56ef9b8a62966c06f2 \ + --hash=sha256:4fe97894d1b306c919b4e50def1e6f6c522f4d03a7283811f4d108f1ce5d3ac2 \ + --hash=sha256:554bffadcbcb6d5f4e5fb10a61cc52084b9a63d1dab5f10bcd2c4343972e8e2c \ + --hash=sha256:59b49507f47479e299a9e1bc41b5cb83a7afda0540625f1dbae886615978acbf \ + --hash=sha256:5eeb8edc6110d9194a4d0d54610f64c37a31c605b5dbb7e407fc6ec7fa34a4a1 \ + --hash=sha256:612b709381c0355b70d89cdb51b7f670591ed5cbbc0e3b5337488019dc667b65 \ + --hash=sha256:61956f074ecd123f55adca68ee3eab46e6a07ad3f8e64e6db95dfacb444f55c4 \ + --hash=sha256:6398d5145689503412cc1748895242598d8846b8967b851133b20dc2ed1e21e8 \ + --hash=sha256:65b408d8fcb273e3499e7ef2ce796810da1becd208c7fb4373692a242d79d461 \ + --hash=sha256:686ac5350fceae63830bb98805fcb8039325bf4c06d9f6f048ff65229d5bffa5 \ + --hash=sha256:6a1a824fbed817e0a891103886b68f063b1e83cc51bc97192a90a60195a9291f \ + --hash=sha256:6abb75ab16bc3281714a5b99548a2225db70dba1f995f6d7f7419b76eb5a8fbe \ + --hash=sha256:6f7121a8914ed13fcfe2099f895341bfb789f004d4c5a0bdece8fa667da10849 \ + --hash=sha256:7020ed44df30b3aa492c00ee3b52d0548c1f30c2c6c5bb13ae897680900d3413 \ + --hash=sha256:720537c7ea6f80dc61913184edb0ce2497a306b39ef19f28505b322553d52bdb \ + --hash=sha256:724184b4aafed865e4f13ca313fdcb43024300c028ec67319cfa16847d84685e \ + --hash=sha256:7c03031610e3e6ed1768a2b7a8fc84637c1257b50c5eacaf094c6e17a84fc563 \ + --hash=sha256:80a5ea3b4fd9d6a5b9a44f7976a9acaaab35aa3c1f6b29e5bd857dfabaded223 \ + --hash=sha256:80c7cadd3fd2bfde5df8aa0787e315812cad0c313a753095d02f4c2b6c01677b \ + --hash=sha256:80ea96f5c1a30bf09007d48466521d9c294bebe197c708c3359096e3e3691632 \ + --hash=sha256:864e9b87ac33c3fb9fb4ad48166d4fdb579c351d5c77deb0d34bccb36a775cd9 \ + --hash=sha256:87fb80cbe3557e27e7b28b995c2b2eedf689b8886f941ab93e0e288f0976518a \ + --hash=sha256:8873c4a11c50b9989168881aeb3f08859f469d809941866aa1feefd8be5431f6 \ + --hash=sha256:888d60953908dcf761aa320c3e390ab8556efbdb551ace63921de90f6ae0848d \ + --hash=sha256:8b5fcc4771732191b2b7d1dd68d8f0353f47f8d90b6150f6dce58bf1112442cb \ + --hash=sha256:8f39588af4731c8923c26810eb3b33f76f17633985e40f59c3cd45a33805a895 \ + --hash=sha256:9173db3be74a35cb6731701094b98120f7ee4876a287882a59cdea1fa7da342f \ + --hash=sha256:92f05c9c42bde5785dc48770bc2194d9f7442544156f951e19cd31b096cec562 \ + --hash=sha256:951733b1bbdb71e377cec567b409f1a7881b47cfcad84121aa74cb575fa425ea \ + --hash=sha256:957bb708e8057ab1649ba566456429d691ec9b90d1c9ad1af1ba7ffbbeaf05f2 \ + --hash=sha256:9916fda742cd4eede63b286f58c06718324265d727ce0856eb1aac86d0d150d6 \ + --hash=sha256:9e1d3a4cb7993b708f0ada8d0c84590efd853f169e7147d2202c9da503180242 \ + --hash=sha256:9e4482589065c8ecd761cff522dcd85f2d39e62f551e37e025d1c7d54772def3 \ + --hash=sha256:a5300757f8a68f5b6cc33f57338d72a0e3589c5cc9ad5f8504ea06f028be582a \ + --hash=sha256:a540abfab208e1b7ef2df231c40ef3b6cbb30a0aad6204e9b6a81c10a6794628 \ + --hash=sha256:a5758353650079898dc1b2b0e95aa51fa23a30d020e06f62c430dd08ee56cdd8 \ + --hash=sha256:a64b85a4760337cfefdb27d42da6ed8b58e8cde3f2d57b6ef43e76ef6ea9ef47 \ + --hash=sha256:a655d34b2a6943af32401f3d94f72e9d731f6ad16285815550bf2b4ee69d420a \ + --hash=sha256:a714befaacbd10092ffe4cea0d3c5f008fb9efe9bc322c715bcdfdee414b9a3d \ + --hash=sha256:a760da040b47767b4b873adfb7c3b691e9ba2fc60f113f9d0b88f1a62f323e85 \ + --hash=sha256:addd736a0547d553283adaf4e05d7104e7f2c7b0b092e9b4d28756825f14531f \ + --hash=sha256:ae4613d7d9dda60fcba95f846cc6f808017f1843f392cf9daad14a6534493d71 \ + --hash=sha256:b11b589e00095ec69cf79841a76360f9b079e95b0368a25b5ebb951ab0c157ff \ + --hash=sha256:b3e445b66c80b4eb4234e855ce94d9adc183eedbd632816228d89930b91b2c5b \ + --hash=sha256:b7b893976e7fe42053da64f2aa27239c24252fd2ec6df471e1be197c0addc3b1 \ + --hash=sha256:b84f186a7f0536fe4ff9a9fa12d06d007b9b71d4b5352ddcc41f59ad6522a312 \ + --hash=sha256:b89efc38431793d28b7cd91227e2f952ad7c48df19132b17f43a5fec3c14143b \ + --hash=sha256:b97a38fb4c732b6832db6bf108963adbcd82ef1268ba2025dce390f45af75efa \ + --hash=sha256:b9d74e4eee9ddb64c2e92d5d61472c59c21684c059eb7b68767be9628e977859 \ + --hash=sha256:bb90e7177944b6684738c1fc36aabd2dd00d1de3be7dbe09f91e196f1bc0dc81 \ + --hash=sha256:bec37990e3d6121f29ecfb594bd8f1bf009e9f7926daba2e50e3b27d3892a783 \ + --hash=sha256:bf3c49863c23a1ad6da9c30351aed6cff8d5ddbeb63c5c8420ae54e98c7d0138 \ + --hash=sha256:bf48516e35cf848390ea68850aba53e7c333720d2945b4d2c25b69fc5171723f \ + --hash=sha256:bfc71e6d970419c1309b3640305298643e2a734cad3f7cfb6d2ddee4175ab53d \ + --hash=sha256:c0094897d7d01f184b2d7fe8c56c66d64efe01b31f4b7d34205b391387df1111 \ + --hash=sha256:c03c6eb6ece86dfdcbb34799efaa339b093132e1aceed491ba5e08fe06cdf699 \ + --hash=sha256:c1a9a6651197fbed6f0212591418b9def774fc3f8324f78d1bf0e6a63e5f8aa1 \ + --hash=sha256:c3589f40749acce747510bf5d589d54e376cb0930ea58b35effac97e5312b0c1 \ + --hash=sha256:c4e38dd8f39c43a91d2410ad2b85610701b0979342c3df1d69eaf8e838c757d8 \ + --hash=sha256:c6c8fabf1dafc1f1ddcbb67896d3f93efb092e8c4b6322d7389b944e76a484e5 \ + --hash=sha256:c90fcf7804ea0a54b896ce0f2b9565350220b8d4890fd0db461a476a4c687963 \ + --hash=sha256:c9b602fae1e00b7c035d661ce85575365719192a7b46784bd71cf64c68053aa0 \ + --hash=sha256:ccb64d887a9db1cd76dbc0f92051a1a478a2a67e7f56c62d915cb881d7734704 \ + --hash=sha256:d06fcdecc10fc7954d7c8f27a03c96055fe525274dc84a7b0dbdc3d6b9e03dab \ + --hash=sha256:d0c3082bf79bcd6a614d55916590ad4b8f93200e10b97f463ea5d9d07c9b5f23 \ + --hash=sha256:d49c18f1ea294cf4adde2e5ac256e98c82ea9d708462ce4bf799dffa7cfe8a2c \ + --hash=sha256:d60030baaa7bfbb02d650c126cdcddcb6e33dbff14d819434c8fa2fdcaeeeba5 \ + --hash=sha256:d7cab119d0df0b9413f106b4d7fc34f2872d3574ed3806fb48959c830b1537da \ + --hash=sha256:d9b77b25b4f395f92de6099ab08e8ae2bc7e51dfe157f22900902243a5cc90c7 \ + --hash=sha256:dabee8f4935e731fb46b2a3091bdda0d3d94b3bbfb907d2b4f12eefce4009619 \ + --hash=sha256:db5e82ba15c142425b8406690032df89e39cca4a2e8afbbb9a3d84edc2373ac3 \ + --hash=sha256:dc79d36d0618752265f0d575915bdc5c5130ecb9c9f6b3bcefeae32e4bdfafcf \ + --hash=sha256:ddfa987262763c3c22a8367d2a49c244b018a74c3a8e3ab1a864119ad45c5633 \ + --hash=sha256:e1172147d28d8fbcf8cb8d26c41506169f5ad8fe9ec969cb116835a19d4d8eca \ + --hash=sha256:e11edba5bc344a32b029a7af9d4b3173982dd79eeafa0b9dbd787364414b0509 \ + --hash=sha256:e2c89e9b762c57f59d5e99ee8b20202adb892e35f8d3485741340999ca55058e \ + --hash=sha256:e31f72490b7c12f7790e1e25c3afffd20503ee1bfb43461d7838b871ff244b19 \ + --hash=sha256:e8c65ef3862a8ad6e86492b6ed9327805dd66904c012bd3649dc67d822ed6c34 \ + --hash=sha256:ebb8912f565b8cdbbf27debfe00df04202c20e2f651b9e32767930c5eace3621 \ + --hash=sha256:ed511a0708e2297e1d6431e7fb217e3402791e491e02da800658ace4973df1bb \ + --hash=sha256:edf06545875f3efa31560d94121e95c7fd70d98b1dfedc0157097d79b13b52ea \ + --hash=sha256:f0fe9834e5aeccaf19a0d8feb296d66a24be1a7c9922002f842a682cd5abb787 \ + --hash=sha256:f1a0d5117230dd46b399a30a38afa44f79c99f3168988fdc4f425c3f928b39df \ + --hash=sha256:f37964e4a5e993d2fd45147741e9dff7f34a2d8c00ab94c4ea0514a4677f959e \ + --hash=sha256:f57dc6b8fef170f105d2cf5cdce254f47b137d7755086cf7050f47e16582abba \ + --hash=sha256:f93bc1c3486ef3747e07c9d7c1d0a147b8fbaab975f80e348aed6f71309dfaca \ + --hash=sha256:fb00027a09a8f9f08028b40dce4c933cf73e4833240ed356583fdc9cfa721566 \ + --hash=sha256:fb99cc9d45f48895d9d67f6a0b8a57f08d39c174d9f25ad97a313e0470267b1c \ + --hash=sha256:fdd88ed5e20b1bcdd234421e454962c971aa44b653bdb7f1ea9ef683e90fb649 \ + --hash=sha256:fe3fa1dd453ed5c7f5ea23a26218329790ed7197a99b90e94330e313959a7f52 + # via transformers +rich==15.0.0 \ + --hash=sha256:33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb \ + --hash=sha256:edd07a4824c6b40189fb7ac9bc4c52536e9780fbbfbddf6f1e2502c31b068c36 + # via typer +safetensors==0.8.0 \ + --hash=sha256:040070828e36dc8e122178bbbd5830ff9e97920affb84cbe0f46442497bed358 \ + --hash=sha256:096ec1a98435df7beb08853bb5aa9081a84f23d0adc67ed1a0a10550f608373f \ + --hash=sha256:2ddf52eac562eda224f99acfa7889d02968c1fd59a5b011ae7d8137c37e9c02d \ + --hash=sha256:3ae091f16662658bdc019a4ff6cb4c085bb7d725eb5978b183ffd265863b6d2d \ + --hash=sha256:4124502b78f03534117c848f87a39b8f31e577b15eff423bf8bfb95f2a8c30d0 \ + --hash=sha256:4a95ae2b05d7726d751da4ebf626a2ca782b706e101bd894c95bc2450b1cffcc \ + --hash=sha256:7a46e5ff292c356d6991e60942ba7f79817682d3a2cef0702136448cb9c4d235 \ + --hash=sha256:7bc0a787ba8a35be368ee3574edfa2b1ad389eebd0a72e482ae275490e3f6c98 \ + --hash=sha256:87eec7ffed2b809f05a398a8becb7d013f19f7837cd15d9748580d6cf30dbaf4 \ + --hash=sha256:8e080062fcde23be189565e1c3305d16751a218ecf9412c8601e64204eb6f846 \ + --hash=sha256:8e9f537aa183a38ace122d27303dcd986b26bd2a7591f9181d7f0c396f4677ca \ + --hash=sha256:c554f85858e05226d3c2828e32395e677434685d6d94594a41643361c5e837f0 \ + --hash=sha256:c80201d22cbf405b80647a60ada77bba06c8fba2da2743ba1e89cdcc39a81f25 \ + --hash=sha256:f7838e5135a406ad3e02efdcb8cf2e5397d368b0154537c4fec682dbc544d452 \ + --hash=sha256:fabaf3e0f18a6618d9b36560682562157f77c2b71fcffc7b432be2baed9d753d \ + --hash=sha256:fcdd41ec4628fee5799f807c73c353629130fbd942aa23d83c623dd6c9d52d78 \ + --hash=sha256:fd6f3f93c9a0a7cc2788ee63fb763353d4bd2e89b0751bc78fcf7dda00bea774 + # via + # -r requirements-fastvideo.in + # transformers +scipy==1.18.1 \ + --hash=sha256:011413b7426b75012840e35649e00fe0a2c3bae89fed433876e3a99251572efc \ + --hash=sha256:0ac49ea97594532dd44b7136094d35f5440fa06e6d9c6384a74c01764df388c5 \ + --hash=sha256:0e82073ecc7acc6436fac4b31674109c7e1d3e596789767eda01258a8c9e8123 \ + --hash=sha256:0fcb3c93519f27bb4f0c4b0f7802cdcaca7fcf93267b75edda2e9f4e8a55cbd7 \ + --hash=sha256:10ac20c69d880f77f375db44c22e3e6a644f9fefa291d4cd2fb9790a89fc99fd \ + --hash=sha256:11c423f1049c5755ad4409af52a9ada1cff96fe9b50795d4af3619f292901239 \ + --hash=sha256:179ce34a8d0fe273d8883ba59e17e052247d08973dfcb743ca52bb1cce2d60b0 \ + --hash=sha256:1bca3b943fc2567ea49cd02c99abde49da4d5178ec46f624bd8255cda8755beb \ + --hash=sha256:1d73131e358976663dd969e1fb4ed1404b815cd977eaaedc3b3a133ba2d81c35 \ + --hash=sha256:2a0b02f9fc46f8520330c23d45e6560db7e3a0d927232139427637f98943e11d \ + --hash=sha256:2d3ab0e8c69a17dd3559eab8cbb88f258e285c94d572c2719033f90f83290c89 \ + --hash=sha256:30f464bee641fa8e282577c7dce027308403213c6ca8270bba73285c91024bc5 \ + --hash=sha256:33a834464fdabc0f26a45508df31b3cc5d028e04dbf6c5ed398541418e0a12fe \ + --hash=sha256:3ab3523da44749156e1f68b464dc56af11ae4cbc5c739a49d05f32b982eca9f3 \ + --hash=sha256:3c085faa2cfa879c5141df483f836f4d691045a078224a670fa570fa01612d89 \ + --hash=sha256:457fd7a2a8edeb044ab6ffbc0aa03ff6cd18491356e5e0c834d76ce621b916d1 \ + --hash=sha256:49023963c193dacee096301452f223ee24d86ec5807f8df93c0f7221d119e305 \ + --hash=sha256:52c4b7422442aba924d03ad4019852b08a92e64ea187b933135687bfe2747307 \ + --hash=sha256:559ed65f60c1af5a03f3912605a1b5114f522c7c32fb23c3376ae8f03219fe28 \ + --hash=sha256:5632e3ae3d09197c446310cd5187de63e28448ce22f0f67b2b93d97503c0c230 \ + --hash=sha256:5e4d44984abc0020154ea81b247adeddcc3ac5527b975ff798bd1ba0adc513c2 \ + --hash=sha256:75b00eb8fb802090aa903f4ea1c7f5a584779f967361e68b7e98e531cc2d7174 \ + --hash=sha256:78a0d7c918e74a232394117160e7e3db503377572a45bcef8826e4ab8a35feba \ + --hash=sha256:78c0665edead396b1abb4897c41a5c1d9bf090c8a637a4c20a61678e0a264e66 \ + --hash=sha256:7bbf207c4453ce1ad2e00b17313852b33310b83090c2311bdaf97f93c0380d12 \ + --hash=sha256:7f4b8bc363b6d65ee2152bec57568e3c52639bb34c46057b09857a307ed5e21d \ + --hash=sha256:82f201b4c878551d48558337aab270d3c6cca5507b8737c8d8a608d234cccde0 \ + --hash=sha256:83de5453a7799afc9048b4616bd085cef126e36412f0ea2f6370c36a2a3a51e7 \ + --hash=sha256:88f0e784020649f88ea48c9f5ddfa403bf9205820667c0914740b392035afb82 \ + --hash=sha256:8bcf3c1ba5d6456e2effd30fcbd3459b044d683fcdac79a2e6830f0bdf7de487 \ + --hash=sha256:911de823097db8b63f034299d12662db93344e6ffa0b881cbb57748974b70168 \ + --hash=sha256:92c14f5bdbfb6216315ce33e78080474082de8b3830122ba97809bfbe65f75c0 \ + --hash=sha256:95298364e251be3e60249facbeeca03631d3bb7584f85879516ec55ac717b81f \ + --hash=sha256:9554bcc6d715ee87a633a3cc8e7703c6628b100dd29cb8a2efc4c0533c7ff729 \ + --hash=sha256:9f2897bf7737392ad0d5213ea7b6add72a4edf5679b3153106aeb88b6507b3b9 \ + --hash=sha256:a1d33a7836f7ddc1993427966a0823468ec41bcbdb1a9f9942d1d7e57f803ba3 \ + --hash=sha256:ac0333bdf38309aa3dcbe7e3fa7ea29e7a2c37c6ea306a757b700ded8e4596ad \ + --hash=sha256:bff0b729edd992766136b34e39cc76bc2fad905aa58897ee72a9cd000a6d8443 \ + --hash=sha256:c24acac1e18912761c4700239bbc1fd32f615af690f1584d49b35859be51324d \ + --hash=sha256:c35d74ce0e193ff740c2f2be2ac913ddc232fe6c1ff40b26cfecb9c670c63314 \ + --hash=sha256:c825cef2f49e46753726a7181a8e199804a912b29519ada542c6ebc654951899 \ + --hash=sha256:c9d18a33309122074ea483dd92dd444189166b8b2ec429fe9ed5ac73c7a0aa23 \ + --hash=sha256:cbf38d043c1aa4ab306e1ada6ab6eddacc3322a20b7af1b30bc93254b366fe09 \ + --hash=sha256:cd479fc04dd9401e3b4f49e76518768ef99c4f517a98c284eb091fd725719adf \ + --hash=sha256:ceb30a00ce7c92d459819443d29ca486d882b83fb6738bdcbb2a1cce94ac5daa \ + --hash=sha256:cfbf154f2ba187f2ed6cce2639efff7d105f1140573642c0161615b6d91d6a87 \ + --hash=sha256:d2924a03db38dc2e848bca2fe9f077dafb891480b91a00a0963a8cf86dfc31c1 \ + --hash=sha256:d416b16cccfd70fbf62400e84d0bb2f4e6af519a45557f1692c749b37f14b315 \ + --hash=sha256:d65d448389b8436493abcf629cc94ad0cf32aecaf06e1acca1de53cc795f2f12 \ + --hash=sha256:d84a09d0dad90ba6525d8ac1c2334b33e64bf3ccfe9e841f02feb867a22681e4 \ + --hash=sha256:ddef79fb382df40104a19bb7151b3b23e57c1778fcf857c71ceecd9bd264513f \ + --hash=sha256:e3b417bf8c2c7c16e8f58ad91db17783ec911ac16e7b50eb6eab6e809b4f5b07 \ + --hash=sha256:e402cf31eb68f453dbb2d36fc6d722b33f24a55d68b2ae1d92fa6305ca71c298 \ + --hash=sha256:e6fb6a55cc0ba97b59a1f288fb86dc6fce8bdfc0fffcbfd015e3a954bf2a2d93 \ + --hash=sha256:e708533e8b2ae2497d65346538a7dcc92814410b25b81432eac66de0f2af8265 \ + --hash=sha256:ea324d9dd34c38bfb9bec8ca4d1b407db97dbb74029f566b8e322b1b6fe56fe6 \ + --hash=sha256:eb0dfcf4e28a99c12c999744a2ff67c9b06200e20401c7c88186e33552a46331 \ + --hash=sha256:eda632a7981f69730d6281f451db9c1c370993a2c0d7ddb43e2a809a2862b83a \ + --hash=sha256:f29633129f9fa7e88a3f0fca835de2d030bfc9643f7799e1a0c46cee24d38fc7 \ + --hash=sha256:f55fa87b6c612ecd6b058f167c53231b1d14e412efe361d3d6e38b3631c73218 \ + --hash=sha256:fdaf5ea890a6183d0565f51a61799d67081bd5b1cf03c5f4b3fd3732108625c9 + # via -r requirements-fastvideo.in +shellingham==1.5.4 \ + --hash=sha256:7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686 \ + --hash=sha256:8dbca0739d487e5bd35ab3ca4b36e11c4078f3a234bfce294b0a0291363404de + # via typer +tokenizers==0.22.2 \ + --hash=sha256:143b999bdc46d10febb15cbffb4207ddd1f410e2c755857b5a0797961bbdc113 \ + --hash=sha256:1a62ba2c5faa2dd175aaeed7b15abf18d20266189fb3406c5d0550dd34dd5f37 \ + --hash=sha256:1c774b1276f71e1ef716e5486f21e76333464f47bece56bbd554485982a9e03e \ + --hash=sha256:1e418a55456beedca4621dbab65a318981467a2b188e982a23e117f115ce5001 \ + --hash=sha256:1e50f8554d504f617d9e9d6e4c2c2884a12b388a97c5c77f0bc6cf4cd032feee \ + --hash=sha256:2249487018adec45d6e3554c71d46eb39fa8ea67156c640f7513eb26f318cec7 \ + --hash=sha256:25b85325d0815e86e0bac263506dd114578953b7b53d7de09a6485e4a160a7dd \ + --hash=sha256:29c30b83d8dcd061078b05ae0cb94d3c710555fbb44861139f9f83dcca3dc3e4 \ + --hash=sha256:319f659ee992222f04e58f84cbf407cfa66a65fe3a8de44e8ad2bc53e7d99012 \ + --hash=sha256:369cc9fc8cc10cb24143873a0d95438bb8ee257bb80c71989e3ee290e8d72c67 \ + --hash=sha256:37ae80a28c1d3265bb1f22464c856bd23c02a05bb211e56d0c5301a435be6c1a \ + --hash=sha256:38337540fbbddff8e999d59970f3c6f35a82de10053206a7562f1ea02d046fa5 \ + --hash=sha256:473b83b915e547aa366d1eee11806deaf419e17be16310ac0a14077f1e28f917 \ + --hash=sha256:544dd704ae7238755d790de45ba8da072e9af3eea688f698b137915ae959281c \ + --hash=sha256:64d94e84f6660764e64e7e0b22baa72f6cd942279fdbb21d46abd70d179f0195 \ + --hash=sha256:753d47ebd4542742ef9261d9da92cd545b2cacbb48349a1225466745bb866ec4 \ + --hash=sha256:791135ee325f2336f498590eb2f11dc5c295232f288e75c99a36c5dbce63088a \ + --hash=sha256:9ce725d22864a1e965217204946f830c37876eee3b2ba6fc6255e8e903d5fcbc \ + --hash=sha256:a6bf3f88c554a2b653af81f3204491c818ae2ac6fbc09e76ef4773351292bc92 \ + --hash=sha256:bfb88f22a209ff7b40a576d5324bf8286b519d7358663db21d6246fb17eea2d5 \ + --hash=sha256:c9ea31edff2968b44a88f97d784c2f16dc0729b8b143ed004699ebca91f05c48 \ + --hash=sha256:df6c4265b289083bf710dff49bc51ef252f9d5be33a45ee2bed151114a56207b \ + --hash=sha256:e10bf9113d209be7cd046d40fbabbaf3278ff6d18eb4da4c500443185dc1896c \ + --hash=sha256:f01a9c019878532f98927d2bacb79bbb404b43d3437455522a00a30718cdedb5 + # via + # -r requirements-fastvideo.in + # transformers +tqdm==4.70.1 \ + --hash=sha256:c293e525e6fef9c20e8728fd4612df02a0aa31bb5fe91ecd93e123b1b7bffa73 \ + --hash=sha256:cefd0eca11b2a37a3aee776544d4f4ae913f02688135b5556b8788dfa474afc4 + # via + # huggingface-hub + # transformers +transformers==5.15.1 \ + --hash=sha256:27c996bd9075ddc82d40f8590dfdc81ea45f611bfca477e0db5d7fd257a482f7 \ + --hash=sha256:b7cdf238ff583e3a58dbc7fa34da1aaf091ce063141f65a30538160bd5afe93f + # via -r requirements-fastvideo.in +typer==0.27.3 \ + --hash=sha256:d0396f770a560ab1b0a8504e13b5f254b728cedb05c61cf0359e944e50ce8901 \ + --hash=sha256:e50022f28b82a86313e54501317a1db64bf8f8d036ff8cfe5ca7e47675454aff + # via transformers +typing-extensions==4.16.0 \ + --hash=sha256:481caa481374e813c1b176ada14e97f1f67a4539ce9cfeb3f350d78d6370c2e8 \ + --hash=sha256:dc983d19a509c94dba722ee6abd33940f7c05a89e243c47e907eb4db6f1a43e5 + # via + # anyio + # huggingface-hub diff --git a/requirements-h3-image.in b/requirements-h3-image.in new file mode 100644 index 0000000..4010c80 --- /dev/null +++ b/requirements-h3-image.in @@ -0,0 +1 @@ +h3-image-mlx==0.1.0a9 diff --git a/requirements-h3-image.lock b/requirements-h3-image.lock new file mode 100644 index 0000000..b2ad359 --- /dev/null +++ b/requirements-h3-image.lock @@ -0,0 +1,445 @@ +# This file was autogenerated by uv via the following command: +# uv pip compile --python-version 3.12 --generate-hashes requirements-h3-image.in -o requirements-h3-image.lock +anyio==4.16.0 \ + --hash=sha256:59bb03251907983d1603d27c3087ddb1e93299ea2163adcdba37899a4fb12ffb \ + --hash=sha256:c66ae634e0b8228396b801741beb3294326d4b6102f7bba4041c0dfb58c29026 + # via + # httpx + # httpx2 +certifi==2026.10.23 \ + --hash=sha256:a9895e6e2758b371e0545e321a3a8fd1fcfd9829ada8824a936dfb16aaaf36cd \ + --hash=sha256:e9b54de76e530bb6cf0ccd036787103acb58fd42ba930ea8bf948ddbaa2f61d1 + # via + # httpcore + # httpx +click==8.5.1 \ + --hash=sha256:8bb5376d2006950386f8c6427613334a2acadc5f559cb80e638d00b4df957e37 \ + --hash=sha256:9bbfada76703fd1d784b83eea012e3e8c6a001a876543ef104fa56aaaeb072b4 + # via huggingface-hub +filelock==4.2.12 \ + --hash=sha256:21decfec02f116ed4c954433cdb31f28c3b346b784543177b6d7059da2702ee9 \ + --hash=sha256:7e7da24d3ac39268b0f156e56870001de44886318f092f9d851e692f7114d6dd + # via huggingface-hub +fsspec==2026.9.0 \ + --hash=sha256:0f08147951c8cb31d844c3547d631053b127863b60be04cf06e121333ee0e2fe \ + --hash=sha256:8dd6e646e99ea382bd85f97a45e6b526a442d79423a7dc673f1e2756d05fcb5f + # via huggingface-hub +h11==0.16.0 \ + --hash=sha256:4e35b956cf45792e4caa5885e69fba00bdbc6ffafbfa020300e549b208ee5ff1 \ + --hash=sha256:63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86 + # via + # httpcore + # httpcore2 +h3-image-mlx==0.1.0a9 \ + --hash=sha256:3a2b69b06fcdbe6b2d9d3a510c98ffe8e8e75da47be02ab41432c4efc1b1a5a8 \ + --hash=sha256:da1bbda9997a4fa7f3788bcaeeeef527a2cccc45d4cadbc414a952544fcc55d6 + # via -r requirements-h3-image.in +hf-xet==1.8.0 \ + --hash=sha256:07a06d7481702616726c2d8578cfb00052a5b3f21beed6a674592bc837a10330 \ + --hash=sha256:10ed23b51dacf7917d64f335c25048deb470efa755e9989b218fc0531386138e \ + --hash=sha256:1ebaf248c9bef8bb0c9d1d8d71db1fdf0cac14f922cc7a936a81adbf12eb5f01 \ + --hash=sha256:23c262e9f5e137b18dadbce60becfeea84156b0d43119c320bffe260d32cd2fa \ + --hash=sha256:29dab7c904cd1914a0439c6e1306c12c7497c8bd32290fbe563ebf51ca4b6d6d \ + --hash=sha256:3e8934784425781f0f779b91044df441f3a7af4dab47375d7e3aeaecbb8eecb4 \ + --hash=sha256:3ecfe2934448cca55a4c42732b60f985266aecb241905945219b3d388aceb7ba \ + --hash=sha256:42b66fdc688eaa4ff3eb77dc9275e5a0f1258ecc9fdd083ddaf43bb49bec925b \ + --hash=sha256:56735c2d4f416d7473fc986586b26a8756e067832ca4b7fdaad32a0d6f2ce740 \ + --hash=sha256:62b056aedb89ac809f78940baf465fe553b70c8b25ee56890fbab3039fffec1b \ + --hash=sha256:7edeb21c5d381903ee5f4857fc746fa7b52a4b374035e8811ecfb67ee27add0c \ + --hash=sha256:8800e3444770f2c630b361bc6d5c6ebb770b7830646cf632fbb79d0e5bbc9e7f \ + --hash=sha256:92188598dedc1e1f5609bd718d4db8687a6c89915553912571e2f587892eecec \ + --hash=sha256:a584a7b3268da62f23c3187cc7201ca01f7b610985a36b1b6119c66bccb0383c \ + --hash=sha256:c74e3751cbcdae9222c5170e8d788e83201a03dc5e5f4308a20f17a5b6023b56 \ + --hash=sha256:e00d8f60170cd3dd55d98306e41dbaf28b27ff1bcfefbfa84279d197221be83e \ + --hash=sha256:f42940869572dc2b05dfe06f4cc398c6291503e086ddc4eddfb7a6ab9409ad01 + # via huggingface-hub +httpcore==1.0.9 \ + --hash=sha256:2d400746a40668fc9dec9810239072b40b4484b640a8c38fd654a024c7a1bf55 \ + --hash=sha256:6e34463af53fd2ab5d807f399a9b45ea31c3dfa2276f15a2c3f00afff6e176e8 + # via httpx +httpcore2==2.16.2 \ + --hash=sha256:16051ae2a42f776007543f32de9349a317b23d2cbb4e1456b4bac0e88b87419a \ + --hash=sha256:6c519d0f7b44f7269fa9bbb4d2763db395a4a2370f046d8e8e0a4b38227815d2 + # via httpx2 +httpx==0.28.1 \ + --hash=sha256:75e98c5f16b0f35b567856f597f06ff2270a374470a5c2392242528e3e3e42fc \ + --hash=sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad + # via h3-image-mlx +httpx2==2.16.2 \ + --hash=sha256:748b615678f07d8e3b183efe81ad13b655ca88bfc56ce4589219b2d442860574 \ + --hash=sha256:f05c13aade4c45dbf1c9060647a1058f0acad62398fad96e741269edb33d46f5 + # via huggingface-hub +huggingface-hub==2.4.0 \ + --hash=sha256:13a6158b9e3393d9d3f248ce99074d50c2a0a1449fb9d8e2f710751e2084c188 \ + --hash=sha256:42ecfd93ede47bdd333daebbf66a32d7bfe2e18752754fe4d2d4f98a0179d801 + # via tokenizers +idna==3.20 \ + --hash=sha256:a7db850025b95ded1eae8a46181a1a6c56c92c96f0e2b005d9ff8dc0210cab44 \ + --hash=sha256:ab7ae7122974553370f0bdb919e1a960b2cd1bc1ef0276416d896db81c14582c + # via + # anyio + # httpx + # httpx2 +mlx==0.32.4 \ + --hash=sha256:001b07946f2867a800aee73d302ffdaf5eb81cafe64c7ba19fddf7e219324822 \ + --hash=sha256:05cca4bed007230e109ca33ac377bac96f3b4c8ed5b67097499de4e913dd011c \ + --hash=sha256:071566ae01dae3a293f3612b623eb68eeb2ef28d27d85ff66e661b6a6f254593 \ + --hash=sha256:09da967a668de8b7033de3d74930efcf36ef993ede93173f51f11452a1c09b22 \ + --hash=sha256:0c3cb35b709275d1791d435d2f1c4bd734e8a82ba99c340954cdda68570acaa2 \ + --hash=sha256:105ddb962e3dab018971dba4bd195167512fa0a43b431fb680d0019efbae0903 \ + --hash=sha256:18de5b82203c18d4e5be1a85c773afdd3e855266d8ecbdf2138072e29ee4cbbd \ + --hash=sha256:1933ecd6bbe639e98b5bb9c753e928103357df01a5791ca0d8285db3d810e4c7 \ + --hash=sha256:1dd56491b44a2bfa217f60da66a5c9c889add7ad9dc2cbcf526389ea31d83bee \ + --hash=sha256:1e52124110303abb7513e6575f59c4c1d32e721c1a45f7a2ae200e8cc492ef13 \ + --hash=sha256:2154f5ce28b51de46b990eb794223bebf8e0a5326ae2658a1e45c247e50779d6 \ + --hash=sha256:22e84ed60fb6386c9426ba2c23808052a4c2edd9643dabda0772886f849e4527 \ + --hash=sha256:32eb7a6c6a9646325e7dc5749d46cae30fb74eab8a39d3bbb0603163127bf7a4 \ + --hash=sha256:370cbb0b307c40ccdd0131587734520c498829b54364dceca7e2c7e517ef89ee \ + --hash=sha256:3f1ea7ed238d18e49cf266155039256e87987f43dab5e87ea7bb91a959e64f91 \ + --hash=sha256:42f57e27ea37642222e00031ea73e47420a40f7de6e6af870e82b8cdd033c5ec \ + --hash=sha256:43a6469797f09a985f8f035df63cd072105d5f16bfbe27d82b542065c988c3dd \ + --hash=sha256:4f8e640fd3afcc19da343c5a769743f361573b8db98cd739e295a387921486a5 \ + --hash=sha256:4f95afac25431585b34846d472ea0ad5db83fc97fb014d62c70082456f6b6b5c \ + --hash=sha256:539ff8b596669263bd531f49fa1a825f570c766ab43c48e454447d6a47e91271 \ + --hash=sha256:5f34d5aa0b23e2a52234665837e4804b045e9928df1be36f1a2450e0d1e996bb \ + --hash=sha256:6017de097cecbc28adec1048f89e579e93e2c2292b1325d1396f26aacd4107bc \ + --hash=sha256:60ba41564e8b5018c9d8a5f8ce7a5aaf70c96d8dd98c1a54b854cbada362d471 \ + --hash=sha256:6267be0db81a9d850b3ecd9bf0cf7dd0f439408db9fbc59237e37fda3f7676b0 \ + --hash=sha256:63ac6fde8a55d688448fc25eb32b645276501e0a30ff961a72958dfd0a4065df \ + --hash=sha256:668cc9dd0518b00c092b44dca365a12ffe0cebb5cca0af0b9790fe3cd8f51782 \ + --hash=sha256:6c6cf406fe093b4ea21876949e0d21f75384900f3df543e8411447ee37cdd394 \ + --hash=sha256:6dd2d7948c3708a62a1b13c32b03b5a94031e0cd3b7f5c5a0343e5a4a3b3bc41 \ + --hash=sha256:6e92768199ffcbc271c2fe0b0bf32f734d78bbc91d15ad7347cd7d5624a9b338 \ + --hash=sha256:70bac04a877236b059fdc7b317d47db335a48d6eafccda9b91a59907c594758f \ + --hash=sha256:733d28fc6b200910211924cd8d5deef86095cd085a0bf64502943c80b22942d5 \ + --hash=sha256:7928869076db6267ab3ebdb253b2c80be1e738b3032c783170bd1d59d460c578 \ + --hash=sha256:82716e3051bbf12d67d95397ce5018236c15edb87fe55f949bc383e5668d8f1e \ + --hash=sha256:83adc889ae89057fd9f292ca1a9ee56da43f181fccc7ae48a060d7aadc179eaa \ + --hash=sha256:869c4e2d99ef622cfb39e6581afe5d3286e0c01161e03ad580561db28bcd3992 \ + --hash=sha256:95830850ababacf86d4e1e11b8cfa062a14b12c0c5f332dad1d4f99e1679a162 \ + --hash=sha256:986f001874378d0a4c1f919817b7e331be96bbebf3993f5182459bcfc6ac0116 \ + --hash=sha256:9c2040afc35e71e210007a6bfb45c75fdffd8a1609885b8d138cdea919a6ef5e \ + --hash=sha256:9dee6ddc835bc16968daaa0fb804ef99bcc3cca5abf6c33bca17c52a1dd99823 \ + --hash=sha256:a01855e2c023e64683798d7148f9760c59b32be6e43f4bcbea8eb8137b650a5b \ + --hash=sha256:a9c09da5cbb4cf8b142f3b7bbda05e10b51d7793f861904e440208f63578a194 \ + --hash=sha256:b517badcb8174f8937699465a0ba5b58c2daeaa9bd13d69b1e6ab13401d24a74 \ + --hash=sha256:c1844df29fd58a78147b7fc2509682179d25edc81eb83659d26fef3c5930c25b \ + --hash=sha256:c45854cd4e20559bb2aa613c6aaffb58e86ec7cf5bdd32100c4a59d8bcaf4d9d \ + --hash=sha256:c4cb0d445a54278e5ba64a2d18b338421b1e8faac3e78b6b722ad9d83ac191fd \ + --hash=sha256:c7375f2d6acd8c72f413d018266ae06387cb9caab31f475f3ff1c5600a7cb4c5 \ + --hash=sha256:d124475e725707a94598211d3c80edfa9755bea9c327e8babff6ce4511344d9f \ + --hash=sha256:d46dd07f57a65bae00ba7da239ee76ebf87e3202f042808d209b56be3140e416 \ + --hash=sha256:dd0c9070d9c362fe280a0224806b1b47719b154984735041ebcc907e597c08ca \ + --hash=sha256:dfd5269398bb64372137d8c354530b6e81159ce0e92fd1ed7e9140b294fd939a \ + --hash=sha256:e1ce3514d2bc6f9c14e1c69787acee0926aae0599d73bacf4a8048394a2d2ca4 \ + --hash=sha256:e5ed9e82d813ed9314be9acbab95f519c5816233a2ab38270be2ff5d10d2786e \ + --hash=sha256:e635385a4f778b248ea6f61fbeb285b6bb14a1891d75cfbfd5af12e010298308 \ + --hash=sha256:ebed763d7da5833982529baf02d0330c5437f4ee5207a1a8a60ab261bd94302d \ + --hash=sha256:ef130e3da895c85374b11a6c389acb122893f2ffcbed826b8b62fd45a20b7ad6 \ + --hash=sha256:f0604cb3015091f285c79c7b7dbfcabcfa9948248728c7bab6e0263513c3d3fe \ + --hash=sha256:f1e6ef441e1e2ce54159022a8fa5597f8ea4f7acf278752049c4f774bbd0501d \ + --hash=sha256:f50b2b759c98d50ded360dc470d03d62ce1a41b3a6da81dd5e0b995865dca067 \ + --hash=sha256:f6cbda9cb8c33c9f8673a2b69fb19bdab75b5032d4e47a42a0e7b36db1c3ebcc \ + --hash=sha256:fbb3fcf1363a631d05aa5adcb30d07655158be07e09339c1fe62f7267b3a78f5 \ + --hash=sha256:fc8bfe0478c96cdcf0c4786f13edaa20490fa1714fb145f254627bd66654d81d \ + --hash=sha256:ff1d7be54758ea3a875b8fe54eff13bed17ad9566505e301f5d7851bf869680f + # via h3-image-mlx +mlx-metal==0.32.4 \ + --hash=sha256:514df92d41a286895d2564b4b18f4da45096bd7a4a0c47e1042f345ad5a7f936 \ + --hash=sha256:8019b2db622599267d66cc168b2f0dbf5af929790a6c3b3913e00eabc42a7947 \ + --hash=sha256:9f0a3cc26d89724434d9684932fc6f3e4e83669d2a895d858ed2c8a55eb84e8b + # via mlx +numpy==2.5.5 \ + --hash=sha256:08f1b9abf1707fa89c125aaa17e78389c063fb20ce37a141b47821e996f4a1db \ + --hash=sha256:095113ee2ceab6a9501b184eff5ea806973d3a63d74a8cbc15e4911e754da9c1 \ + --hash=sha256:10396f7c5ebc37d8f3cbdec44e3313912ccc2dc5841cc905de5de54ebbe8e2d3 \ + --hash=sha256:178cb1eaed819b2cb4e398c554b0776d1499f307e30cb58b9bae1921de35dae6 \ + --hash=sha256:1c24be6a82f5f257afc4dbefde4c3b56dee02146dfed2be2811940e79576b237 \ + --hash=sha256:20145b11776d2f7570cd61351b156a51d3a341822282095baa819d87272bc710 \ + --hash=sha256:228e3d90e967495d61ddc79dd64e95267aae3bcf1b1c516a6186429106a0b444 \ + --hash=sha256:229743571f901a082f031f511dc4f926b4b4a714075d98b1ff2af62d836365ac \ + --hash=sha256:263b2aa236d752b18f90c5107137d24b2e3856d7db37725609f0ab5bcdb58881 \ + --hash=sha256:2a9c502cdb9a3050ac1686774624cc278658b11f72e11b971a3a8542d6ded357 \ + --hash=sha256:2abd39cfbb3d2af11e9bc8cc92b08cd089b0975fe9b1a30c8b7c740c67d397ce \ + --hash=sha256:2efb2ae4e0414b6bd636dde7235c158cd65dd52891ff64a320a4847a8ce7400f \ + --hash=sha256:31e5be6cd4b896004cb9e416741612ade530fc9a04bceca5219cf66a675113b4 \ + --hash=sha256:32dce94d74bb4d5bb058d65b0d9dad7fa61d07ff9375fd7695d8aa7ea82ee73d \ + --hash=sha256:3cedc2980b45794a6a2cfee9c8c3a80f04517082cc1d387e4cc895506c481696 \ + --hash=sha256:3d59ab8f6bfc4ffd29b0f558450e17922c1bc88459882e37726fbcd5834afbfd \ + --hash=sha256:410eab02c6718cb42d06ccbb8604659f3522d2ce06ae70cacd5042092659f5af \ + --hash=sha256:4302902ebf82d37f446664757be59db53587822c8b35f16368ca69fe66ec4315 \ + --hash=sha256:479e43c183049ec1a820eeb36549e493924f56b3e893a1d5865d0fff12abad47 \ + --hash=sha256:567994389edd2963b643d63d826138402a63401176f1daf84dbb3204eb838b39 \ + --hash=sha256:5cddc243c75114ba845f01b1f87aca1572dbf7b6c2d88636ed3e1d2bccd7f1bf \ + --hash=sha256:5e202d5facc9c0681834018062466d0b3eabd48c540c3570f72905c97f641a90 \ + --hash=sha256:704d819265e5d1064d932968e9ee85fff2103ccc78c05b878c06943ba27b8507 \ + --hash=sha256:7ca51125c76817de53473dae31ddc17213776472761bea9cca68a1a0037a4827 \ + --hash=sha256:7da9a248f149cfbb220c6da964a59c8d051d516704f7758acfb81eb382a05d97 \ + --hash=sha256:7e71ac4284c700afa654e2d15b1b174166710dca932f24045e5dc92001b5bda0 \ + --hash=sha256:7fb87c4bcc73850ef433a0c42f096b010d3d3d284e9d00028bb030b43df3d078 \ + --hash=sha256:824025655df929268bfe6b47ed91a00d14209a6f760847cf150be446829e1ce4 \ + --hash=sha256:84dfb1611993a3525b250c955b1e2ebab6ce0ed36e4ab4dd5746432dd362fb5d \ + --hash=sha256:86868185bf4b6c4e5a8628ac42cfa165cd9530266c731f7dd1d11b4ad7e7cd1c \ + --hash=sha256:919eb420662b0b4ba34889df503f3d5329775b0c1d5f7e5f5af4fba8315b1e30 \ + --hash=sha256:9c3e1ac3cd5d3329f4d38709ff4c21f0621bbe8779c094d6de8ec8347246fcdc \ + --hash=sha256:9f44875964889bd9088cf838d191b58c04088d10b4dc9b140e9da2431ecfbb60 \ + --hash=sha256:a0750f2156d53446caca85663d0b65d67214e1664b9050454a731ea1418d176a \ + --hash=sha256:a207eb88a18e30add597c366c1db7e79f48fc94084b8e7dbd0eefb95a645db12 \ + --hash=sha256:a3856a97e48ed8371c680fb04120b99fbcc29f2076ebe6dc3deb34f77947c5ca \ + --hash=sha256:ab3ff087826c49d07953d0219eb00663ce5b1a0ef0a6b757e1ac041b09387428 \ + --hash=sha256:ac910558645a4b006f70596b450712b8564730c1b2ac10291fcedd656d321ec0 \ + --hash=sha256:ad0c8b963f9281f2eb118e283eb61964c716c8e344ed8e8c309b49c586d41ed1 \ + --hash=sha256:ae2b8285d0b4eed24739c3ca9ec0fa424a0247489c01e1d5fe2815a599e11d33 \ + --hash=sha256:ae9cfe4e985139c5f2db69d4310de7348bd0abc02cfdc06991c4419065f6fdca \ + --hash=sha256:b3d328eebe0056c634878c251131d73d74e0c4af317a3aea718816d6fa0bb963 \ + --hash=sha256:b5d08742de581c9eb61102768ccca125a2982913de399611b56981a07278de74 \ + --hash=sha256:b6e30929e3443f46aa7be2749fb003fefbbad6b6a1e2168bf8850a55b657914a \ + --hash=sha256:b6ecbc1ff292c6799067d8064a4dd35cd25ba9d1a24aa41dd635d701691a49b5 \ + --hash=sha256:b7dd0287b6cdd35a27d5678a56b1bc508ff206c2b78b30b4821dd5c3197b393a \ + --hash=sha256:b96e9ee49ccbdb5676359f852a4497f7a9c5df6c377d8877f5330d6fd3ff42e4 \ + --hash=sha256:bea7de36bb304a850710c1dfbb35e7cdb9a005928106a3adfc6dc3a753469dec \ + --hash=sha256:bf6fa5a4d73b3a9699a57b8824d4863acde7241808a5305882222843537f02a2 \ + --hash=sha256:c48960d420e90cf305cb1fde0d4e6082cc90512cda87a9acf0b6e04e91cf4abe \ + --hash=sha256:cc6eb7502facce90349b4097a26821af224aaa0ab36e78304711cdb544352882 \ + --hash=sha256:d0c7c0dfabdcb7cde080b7c9ef301c7533e90110198b39965141a903c7dddcf8 \ + --hash=sha256:d64daa409e9b1ac818b0c59e47b005f802e130c8281e40c6a2f7e70c43f75e0f \ + --hash=sha256:d7d9be35d50366fe5ac28188364154c9e1e22ad1b977a06c9465c0680c8eeefe \ + --hash=sha256:dec156cda7322bcb1479ca992794705fe226a911b0ffebe13bff97fa1f3be63c \ + --hash=sha256:e0608d1585557b68dcb6a70a41654f7536567960afad79d91752d2863b242b68 \ + --hash=sha256:e0b87886bb45621d9279dad4ab9f2d154b5db0b019d378c107b8f71527b06a4a \ + --hash=sha256:e0cf407a83118faf0463ade48a4533982f1737c7c58aac29e08855f7d9ad2977 \ + --hash=sha256:e10e81d1db6c8fa507f61bebfd1ea383971dbc40c2005ed4db88fac5538b1ef6 \ + --hash=sha256:e99bf8a3d54693f2063fa6c7d13955d460a9f543d9dbc80e69a92da288259b28 \ + --hash=sha256:ef2a874cc70e2132c1c499268bdc34e211a715e481bc33c97b8a0190f2559295 \ + --hash=sha256:f5e8603f0892d1b848e12124863b5b29af72383ee9b25ddc6fe4967d4c1ee6ef \ + --hash=sha256:f6622e32cb46c60bee3b2c7dd7f5c22bdc86fcb8630336b4822ec81c3986111a \ + --hash=sha256:f82a7567c590ff266f8c18fd527a0662edde074de11be256541a656e274f2b05 \ + --hash=sha256:fd47c92e0d1e53f9498b1a30305072434fbae6b5a305cbcab514f959e9ce0fab \ + --hash=sha256:ff5c1ab54a637c0adcdbb69ad10e5c4f1c4dedba69c0d1de383249b70c36908f + # via h3-image-mlx +packaging==26.3 \ + --hash=sha256:94edc256424af38762eb31306eed28beb9f0efc50a8837492c9d6fd6004aed79 \ + --hash=sha256:d7193f7c8e4e93f444fde0262bf90af30e16fa0ad0ad44cb553c87339b23cd1c + # via huggingface-hub +pillow==13.0.0 \ + --hash=sha256:02464da86f561f410e13b061ec37c3068a9cb557a095494157742d07b3c24a27 \ + --hash=sha256:04a63720f79e22fd54d897c233a68314c50ca0603360f54ce2bd5db8f0f43782 \ + --hash=sha256:05cd2cd39055d0b9650060e4513ef4a9a0aea870083950bd046a0d6490f93a22 \ + --hash=sha256:06903aac074d00c988e77a1fc435286dc498506d4ca8d6f69df9babddf4ecc15 \ + --hash=sha256:08b826a9bf1265c76de04a42061d61ea6b109418b7826f28ff1ecdfaa26c5502 \ + --hash=sha256:0d1a9cf7bc6917538b20f8d06b9ab2147e542f68849e96fc58eb66bdf6acc692 \ + --hash=sha256:10b5019883c98f1dd819ca48ffc6f33a91cee04948fe637c605f4345c7cafd6f \ + --hash=sha256:12b0fa15879fe5a9d9eebe66e4e2d74128a773b1a4448010c9c714f45e04b9d8 \ + --hash=sha256:12fbb851cf323cc19aac3eea1df5ad17b57e91e9fe3cfd06100dba7bb8208c13 \ + --hash=sha256:149a1c323ba366f90b48e6f1a6db6582eb50512df374588de56fc909abc0f0f3 \ + --hash=sha256:19b66ca0a4d25cc0200b381ce824c7ea090db61427315e73cfb05dbf1b35c369 \ + --hash=sha256:1c774b9c0ba0d0b356f71530677b39028878a2cae5a93e0a13779cfd17120f88 \ + --hash=sha256:20722cd5375533ad754053363a80b8fb30c79d37930a6f7228030e237ce3bd5d \ + --hash=sha256:20822140c9a2ba9c5e42df342b0a892ab2e102fc0e3db967a133bb9ce3f898bb \ + --hash=sha256:21c32061a5512dc13f87cc7303e120e4d77c2f70df89a35af0e3ce246e5ac57f \ + --hash=sha256:2310e2adfc13c6d457d7d0f2ffdd5c56a74a317650cf765887df8d515a647ac0 \ + --hash=sha256:23edf4ec4b6f4f240e8df6e4985e9ee2ced86474632433e55fb1e2548744bf40 \ + --hash=sha256:2d50500a4a3bc6469adcdb319cf05d688b08ca3bf0f22a05339f3b25b433a599 \ + --hash=sha256:2e31c4e68cffd7b1f116127626813b82fcba19edf6b940a7b0c266d6484d0055 \ + --hash=sha256:34fb3db1149c879343861831728c243c432d4a5afc8f1878ca7612ef8de2a033 \ + --hash=sha256:37290fbef0c73e2d51d594eb78fded7dc7170d1c3ad0a890269e6fd8c8c4e061 \ + --hash=sha256:405be6058e206a86fedce2f715ecc2343f94072d7925251632dffa2c05f70dca \ + --hash=sha256:40a266371ece581e5de13b6635ef78d7487824af80561b6ca27694a88c19bc0f \ + --hash=sha256:42d63be3af4f9b951b199b0a9d23365d37ab14687e6d77b74940432c8515c4ca \ + --hash=sha256:44629d4498c9cb6b2051806155f22141df0d8a929c56134b166655232dfb2f8c \ + --hash=sha256:49c12af515073e9bf511e4ef736743bf70d531a643668722279314b937742ba4 \ + --hash=sha256:4a25756244bdcce3b50580baadf320fa48297f0eeb8e114ba64139a40d4d0fc8 \ + --hash=sha256:4bd024d567eca931b668978d672dba914d4b8e2628e2c3073a2ad178de8a2620 \ + --hash=sha256:4f8db54177035a2b5f717f94475b74907e12a96dc74f6d487f3966b0a4694071 \ + --hash=sha256:51ebb529fc5e8abdd55302f6c3f8943037348ec2384329a3e55677f69ae2fdfc \ + --hash=sha256:567f20f1c75897d7663830da6ea8af719e03d712b1d9ee7f813319f9ece42e5a \ + --hash=sha256:5933fcea5a5ba64c686f55c886a115cbfd92f2900460784a1e79909fdbafd7b6 \ + --hash=sha256:5bdb38ba220b61b4ec31dd1046dea6b016d3c6850a23f43ed8b58332b2fc668e \ + --hash=sha256:5f56499c1a74d2b862beb0c33b8016f99d095858455df9d21583bbbc1c15b582 \ + --hash=sha256:67871a13cf47275201553b536c025da777f997fa562a19eb798af4ad4b97c18f \ + --hash=sha256:67c8d44ad89fa7eb88de5d6ef6199b1e03dd24974f85a67639fc8badb801fe79 \ + --hash=sha256:6a0920cb55df5a4d3f6862964908078c0bd59332bdd1bcd20d14e8c70ef27cc5 \ + --hash=sha256:6bce6a29c3898191f4c9998e4d4e8f69790caeabde46e54da4bc235ce5bde683 \ + --hash=sha256:6f38f3f885a09cafc93fd667b1173a92f379e43785d635e7983c893f0da319fb \ + --hash=sha256:73ee25cf8cf8b75d5a5aeed7cb6588f5e5dbfbb0fde51707b630bbb23897645c \ + --hash=sha256:7b999816b5850a35ada08443e6e03945f1f6488144a83afe2d37b240a552aafa \ + --hash=sha256:7c88c10dd432f3b39ccdafc9ed81d0c21b8fd634502574da76d1bfa4fe2c76d0 \ + --hash=sha256:7d5e097eabd5d4915c27ac9f6e9325bb1e01a7c94d7348b5c4451d3fc30e8521 \ + --hash=sha256:7e91e97a929232cdb828889ee6ad0e48d7f40f4ec38818f4e4a8968b2b1af22e \ + --hash=sha256:7f6299e494e46253d40c34653cac369412f44ca53b5f85d848d3f95b1ed0546c \ + --hash=sha256:816752a5ef76a80484c8c441c85593b7ea9304f6231fc5776ad1fbff7e773058 \ + --hash=sha256:83b37abd87b590acd8f47ca8a61f70893322b11834d36e07c2298dacad4d14d2 \ + --hash=sha256:8619685cad8efc4c38c66d3b36aad854523297c43d748b3b6f0cc03c90ba3463 \ + --hash=sha256:8bf295fe459343bc6093c8e5e0df60bfa189e0fcb775a22e2c2488fdeccc6c0d \ + --hash=sha256:8e459b613cf31f8980f584387b4fe47bf08e076e288d61aa8eba1f7fd4ddbb81 \ + --hash=sha256:8f36aa77f74b14a2103622b196402c71330e4e7cf4122ee45c854e9a01e0eecf \ + --hash=sha256:93ff9c9c3663ce23aaa5d0b6b6abac55359e2a0c06c7e30f3771829af816be63 \ + --hash=sha256:9a635068d9793c7f0d929f39f18b58f1bd86c236e8e7b64167b86af9232ebca0 \ + --hash=sha256:9dda0788a9932776a75d8bcc020076edc308ce2508b51f6739a45e3158b3fc42 \ + --hash=sha256:a192360d512305fe92d3053e4f7627bbad1f7708f1f4ad38cccd9336acabe9ad \ + --hash=sha256:a2a14cd73d5e6c927f644b0110ee81f59c4ef506259ec9183904747f2caacc81 \ + --hash=sha256:a625df9a2a5597fa5e5266e01aefc82604bb85d291e3547981e863560d75da6c \ + --hash=sha256:a6aaa7871aebca081eb5c45f83e845bbd9712ae99fa9286dbfdcee835e63f4b4 \ + --hash=sha256:aa694c49787040943570d61c9b8fc01271bd2a2cfdd55f0d896f8aecdce1a981 \ + --hash=sha256:adb3c2124c68e480f4632d06cb7caa3b48a51678475f483b4edb1c6dee29ea43 \ + --hash=sha256:b84be41387fc00db28c13c02e30d42b02d8d8f6a4a741a1aee6012ca7f1f6039 \ + --hash=sha256:bf97ba1b5542050e9b0c74e632323b6d8136cc99d64e193abebee22fe6013c76 \ + --hash=sha256:c3bc8ee0271387e0b1e3ad0ff893645990a656e79bf9c42f4f734a3642b11d51 \ + --hash=sha256:c50c80e3591e5cf9a8dfa6007d4f10732f02e32263850999286e56ccd650cfb2 \ + --hash=sha256:c6fd031333dedcad7ce3e03d244093f43504f209e86925ebdb2b868fa4037630 \ + --hash=sha256:c87a04e7f152ee4db5dbe15f0bfa3fe628a1aeedbe66b81c43b87f52c813f9ac \ + --hash=sha256:cdcd1ba258178f7356d74170c9a81ba4eab6a5d55748bc402a5a2a6fe6be3510 \ + --hash=sha256:d4737f50d23ddd11d6685faacbb9252887dde0bc7997127757247983d74399d6 \ + --hash=sha256:d7710eb676e9bb68965cb045be0d333b4c0d7f9dfbaa7fbf121385b1588683d3 \ + --hash=sha256:d9b0a2bee3f3e03e9f29057aedb807dbf1e1d96ee1b9d0f422d9db6c8583271d \ + --hash=sha256:e65dd6e75de67b2362a4fa3e16aa627595f65054dc4ec73d64680c84d592fa61 \ + --hash=sha256:e892354a424b1e82a78ba16785822bdd40de06f19446a3d4a28047df1a4f8932 \ + --hash=sha256:e8ca8f69b7c77fa96dad99f8638c1fc4f1c0bed4acaa1baf7a3c31bdb80a0ab1 \ + --hash=sha256:e91c2b1cbeae768c98752e67e717e283d68dae45717b41f2d91eaee648e37b7d \ + --hash=sha256:e98b4f91f99b24b1da72e10621ba181f7281922384a7403094debb4199de6c00 \ + --hash=sha256:ef5fe6b7db3f501c56000ba8fe7c7e1a35ca1d45824fbeb95a67daa85cff4dbe \ + --hash=sha256:f11a3c1358bb3c68012a7b1f41b223c3db9f7bfde90b481df028cfe1c3363313 \ + --hash=sha256:f391dc92a015c478745192fe4f2e120c2af2aba18d9fe0616341cbf537599806 \ + --hash=sha256:f7cbb7a64e7ec664775195e4f81923bc8a93d9451b963f844e59118f63147a7a \ + --hash=sha256:f9bd7d260d986f3553518c5d723544346fa48031f8aef3265d786aeb59845bc0 \ + --hash=sha256:fc481f742ccda20e9ed760b8f978dff50f2a4e9bc253ac167fb0a05b0783ef52 \ + --hash=sha256:ff3fe9eb621fbb9db4c4be33ab946f6bac5f98ab50ca8d3260503653656c961b \ + --hash=sha256:ffea6b2986a797c84b6d1d27d4f43e0b83c73fc16281a930891cd237cf0d08fe + # via h3-image-mlx +pyyaml==6.0.3 \ + --hash=sha256:00c4bdeba853cc34e7dd471f16b4114f4162dc03e6b7afcc2128711f0eca823c \ + --hash=sha256:0150219816b6a1fa26fb4699fb7daa9caf09eb1999f3b70fb6e786805e80375a \ + --hash=sha256:02893d100e99e03eda1c8fd5c441d8c60103fd175728e23e431db1b589cf5ab3 \ + --hash=sha256:02ea2dfa234451bbb8772601d7b8e426c2bfa197136796224e50e35a78777956 \ + --hash=sha256:0f29edc409a6392443abf94b9cf89ce99889a1dd5376d94316ae5145dfedd5d6 \ + --hash=sha256:10892704fc220243f5305762e276552a0395f7beb4dbf9b14ec8fd43b57f126c \ + --hash=sha256:16249ee61e95f858e83976573de0f5b2893b3677ba71c9dd36b9cf8be9ac6d65 \ + --hash=sha256:1d37d57ad971609cf3c53ba6a7e365e40660e3be0e5175fa9f2365a379d6095a \ + --hash=sha256:1ebe39cb5fc479422b83de611d14e2c0d3bb2a18bbcb01f229ab3cfbd8fee7a0 \ + --hash=sha256:214ed4befebe12df36bcc8bc2b64b396ca31be9304b8f59e25c11cf94a4c033b \ + --hash=sha256:2283a07e2c21a2aa78d9c4442724ec1eb15f5e42a723b99cb3d822d48f5f7ad1 \ + --hash=sha256:22ba7cfcad58ef3ecddc7ed1db3409af68d023b7f940da23c6c2a1890976eda6 \ + --hash=sha256:27c0abcb4a5dac13684a37f76e701e054692a9b2d3064b70f5e4eb54810553d7 \ + --hash=sha256:28c8d926f98f432f88adc23edf2e6d4921ac26fb084b028c733d01868d19007e \ + --hash=sha256:2e71d11abed7344e42a8849600193d15b6def118602c4c176f748e4583246007 \ + --hash=sha256:34d5fcd24b8445fadc33f9cf348c1047101756fd760b4dacb5c3e99755703310 \ + --hash=sha256:37503bfbfc9d2c40b344d06b2199cf0e96e97957ab1c1b546fd4f87e53e5d3e4 \ + --hash=sha256:3c5677e12444c15717b902a5798264fa7909e41153cdf9ef7ad571b704a63dd9 \ + --hash=sha256:3ff07ec89bae51176c0549bc4c63aa6202991da2d9a6129d7aef7f1407d3f295 \ + --hash=sha256:41715c910c881bc081f1e8872880d3c650acf13dfa8214bad49ed4cede7c34ea \ + --hash=sha256:418cf3f2111bc80e0933b2cd8cd04f286338bb88bdc7bc8e6dd775ebde60b5e0 \ + --hash=sha256:44edc647873928551a01e7a563d7452ccdebee747728c1080d881d68af7b997e \ + --hash=sha256:4a2e8cebe2ff6ab7d1050ecd59c25d4c8bd7e6f400f5f82b96557ac0abafd0ac \ + --hash=sha256:4ad1906908f2f5ae4e5a8ddfce73c320c2a1429ec52eafd27138b7f1cbe341c9 \ + --hash=sha256:501a031947e3a9025ed4405a168e6ef5ae3126c59f90ce0cd6f2bfc477be31b7 \ + --hash=sha256:5190d403f121660ce8d1d2c1bb2ef1bd05b5f68533fc5c2ea899bd15f4399b35 \ + --hash=sha256:5498cd1645aa724a7c71c8f378eb29ebe23da2fc0d7a08071d89469bf1d2defb \ + --hash=sha256:5cf4e27da7e3fbed4d6c3d8e797387aaad68102272f8f9752883bc32d61cb87b \ + --hash=sha256:5e0b74767e5f8c593e8c9b5912019159ed0533c70051e9cce3e8b6aa699fcd69 \ + --hash=sha256:5ed875a24292240029e4483f9d4a4b8a1ae08843b9c54f43fcc11e404532a8a5 \ + --hash=sha256:5fcd34e47f6e0b794d17de1b4ff496c00986e1c83f7ab2fb8fcfe9616ff7477b \ + --hash=sha256:5fdec68f91a0c6739b380c83b951e2c72ac0197ace422360e6d5a959d8d97b2c \ + --hash=sha256:6344df0d5755a2c9a276d4473ae6b90647e216ab4757f8426893b5dd2ac3f369 \ + --hash=sha256:64386e5e707d03a7e172c0701abfb7e10f0fb753ee1d773128192742712a98fd \ + --hash=sha256:652cb6edd41e718550aad172851962662ff2681490a8a711af6a4d288dd96824 \ + --hash=sha256:66291b10affd76d76f54fad28e22e51719ef9ba22b29e1d7d03d6777a9174198 \ + --hash=sha256:66e1674c3ef6f541c35191caae2d429b967b99e02040f5ba928632d9a7f0f065 \ + --hash=sha256:6adc77889b628398debc7b65c073bcb99c4a0237b248cacaf3fe8a557563ef6c \ + --hash=sha256:79005a0d97d5ddabfeeea4cf676af11e647e41d81c9a7722a193022accdb6b7c \ + --hash=sha256:7c6610def4f163542a622a73fb39f534f8c101d690126992300bf3207eab9764 \ + --hash=sha256:7f047e29dcae44602496db43be01ad42fc6f1cc0d8cd6c83d342306c32270196 \ + --hash=sha256:8098f252adfa6c80ab48096053f512f2321f0b998f98150cea9bd23d83e1467b \ + --hash=sha256:850774a7879607d3a6f50d36d04f00ee69e7fc816450e5f7e58d7f17f1ae5c00 \ + --hash=sha256:8d1fab6bb153a416f9aeb4b8763bc0f22a5586065f86f7664fc23339fc1c1fac \ + --hash=sha256:8da9669d359f02c0b91ccc01cac4a67f16afec0dac22c2ad09f46bee0697eba8 \ + --hash=sha256:8dc52c23056b9ddd46818a57b78404882310fb473d63f17b07d5c40421e47f8e \ + --hash=sha256:9149cad251584d5fb4981be1ecde53a1ca46c891a79788c0df828d2f166bda28 \ + --hash=sha256:93dda82c9c22deb0a405ea4dc5f2d0cda384168e466364dec6255b293923b2f3 \ + --hash=sha256:96b533f0e99f6579b3d4d4995707cf36df9100d67e0c8303a0c55b27b5f99bc5 \ + --hash=sha256:9c57bb8c96f6d1808c030b1687b9b5fb476abaa47f0db9c0101f5e9f394e97f4 \ + --hash=sha256:9c7708761fccb9397fe64bbc0395abcae8c4bf7b0eac081e12b809bf47700d0b \ + --hash=sha256:9f3bfb4965eb874431221a3ff3fdcddc7e74e3b07799e0e84ca4a0f867d449bf \ + --hash=sha256:a33284e20b78bd4a18c8c2282d549d10bc8408a2a7ff57653c0cf0b9be0afce5 \ + --hash=sha256:a80cb027f6b349846a3bf6d73b5e95e782175e52f22108cfa17876aaeff93702 \ + --hash=sha256:b30236e45cf30d2b8e7b3e85881719e98507abed1011bf463a8fa23e9c3e98a8 \ + --hash=sha256:b3bc83488de33889877a0f2543ade9f70c67d66d9ebb4ac959502e12de895788 \ + --hash=sha256:b865addae83924361678b652338317d1bd7e79b1f4596f96b96c77a5a34b34da \ + --hash=sha256:b8bb0864c5a28024fac8a632c443c87c5aa6f215c0b126c449ae1a150412f31d \ + --hash=sha256:ba1cc08a7ccde2d2ec775841541641e4548226580ab850948cbfda66a1befcdc \ + --hash=sha256:bdb2c67c6c1390b63c6ff89f210c8fd09d9a1217a465701eac7316313c915e4c \ + --hash=sha256:c1ff362665ae507275af2853520967820d9124984e0f7466736aea23d8611fba \ + --hash=sha256:c2514fceb77bc5e7a2f7adfaa1feb2fb311607c9cb518dbc378688ec73d8292f \ + --hash=sha256:c3355370a2c156cffb25e876646f149d5d68f5e0a3ce86a5084dd0b64a994917 \ + --hash=sha256:c458b6d084f9b935061bc36216e8a69a7e293a2f1e68bf956dcd9e6cbcd143f5 \ + --hash=sha256:d0eae10f8159e8fdad514efdc92d74fd8d682c933a6dd088030f3834bc8e6b26 \ + --hash=sha256:d76623373421df22fb4cf8817020cbb7ef15c725b9d5e45f17e189bfc384190f \ + --hash=sha256:ebc55a14a21cb14062aa4162f906cd962b28e2e9ea38f9b4391244cd8de4ae0b \ + --hash=sha256:eda16858a3cab07b80edaf74336ece1f986ba330fdb8ee0d6c0d68fe82bc96be \ + --hash=sha256:ee2922902c45ae8ccada2c5b501ab86c36525b883eff4255313a253a3160861c \ + --hash=sha256:efd7b85f94a6f21e4932043973a7ba2613b059c4a000551892ac9f1d11f5baf3 \ + --hash=sha256:f7057c9a337546edc7973c0d3ba84ddcdf0daa14533c2065749c9075001090e6 \ + --hash=sha256:fa160448684b4e94d80416c0fa4aac48967a969efe22931448d853ada8baf926 \ + --hash=sha256:fc09d0aa354569bc501d4e787133afc08552722d3ab34836a80547331bb5d4a0 + # via huggingface-hub +safetensors==0.8.0 \ + --hash=sha256:040070828e36dc8e122178bbbd5830ff9e97920affb84cbe0f46442497bed358 \ + --hash=sha256:096ec1a98435df7beb08853bb5aa9081a84f23d0adc67ed1a0a10550f608373f \ + --hash=sha256:2ddf52eac562eda224f99acfa7889d02968c1fd59a5b011ae7d8137c37e9c02d \ + --hash=sha256:3ae091f16662658bdc019a4ff6cb4c085bb7d725eb5978b183ffd265863b6d2d \ + --hash=sha256:4124502b78f03534117c848f87a39b8f31e577b15eff423bf8bfb95f2a8c30d0 \ + --hash=sha256:4a95ae2b05d7726d751da4ebf626a2ca782b706e101bd894c95bc2450b1cffcc \ + --hash=sha256:7a46e5ff292c356d6991e60942ba7f79817682d3a2cef0702136448cb9c4d235 \ + --hash=sha256:7bc0a787ba8a35be368ee3574edfa2b1ad389eebd0a72e482ae275490e3f6c98 \ + --hash=sha256:87eec7ffed2b809f05a398a8becb7d013f19f7837cd15d9748580d6cf30dbaf4 \ + --hash=sha256:8e080062fcde23be189565e1c3305d16751a218ecf9412c8601e64204eb6f846 \ + --hash=sha256:8e9f537aa183a38ace122d27303dcd986b26bd2a7591f9181d7f0c396f4677ca \ + --hash=sha256:c554f85858e05226d3c2828e32395e677434685d6d94594a41643361c5e837f0 \ + --hash=sha256:c80201d22cbf405b80647a60ada77bba06c8fba2da2743ba1e89cdcc39a81f25 \ + --hash=sha256:f7838e5135a406ad3e02efdcb8cf2e5397d368b0154537c4fec682dbc544d452 \ + --hash=sha256:fabaf3e0f18a6618d9b36560682562157f77c2b71fcffc7b432be2baed9d753d \ + --hash=sha256:fcdd41ec4628fee5799f807c73c353629130fbd942aa23d83c623dd6c9d52d78 \ + --hash=sha256:fd6f3f93c9a0a7cc2788ee63fb763353d4bd2e89b0751bc78fcf7dda00bea774 + # via h3-image-mlx +tokenizers==0.23.3 \ + --hash=sha256:114e2b55ed177179d59f4ab98200a4471e11e78f9e4b5a922d146740f96fcf52 \ + --hash=sha256:1554a6eed34d9d6a78d23360f4e06df8dffab1ae08c7e8488e0b3e3b36cc266f \ + --hash=sha256:1ebf28794e7e4954e20a7f70fbea410b2d1f0418f7dbbca97ca384fcfef38c25 \ + --hash=sha256:1f0823bb00c5fdc98e487354d54dd55a03848d61a1a0bf29a68c77f24f3b26c3 \ + --hash=sha256:2a89614730d7b80940a5d2ed9320e1ec8add5a745c6151d8d05071b7215505b6 \ + --hash=sha256:376851d22bcf9d650a5c3090bb83e6cf9e895fbf0595369fa4cd43c1f69b5f87 \ + --hash=sha256:5cc24bb457dd4a8af89c8fcb40074d570129ec473df2a866c276ee55db4749d7 \ + --hash=sha256:68649e97d5b43c44c031d8d848874a6eecae8f8fe40ea989aa777a5a83aca716 \ + --hash=sha256:7e48734d2de9260d86f03ab056d2cfeeff3869f61dbd49aaa15a2793b5f3458b \ + --hash=sha256:82eb480f6f1c21cea3349dec32cf1a6384c6c1e775f00f83b0d51197bc013687 \ + --hash=sha256:84513ef0aeb8bf8f4ea11a2e8a7ac163ec5288aa115e649a59b470ac5c3107df \ + --hash=sha256:9d2b5c97daf61688c2ad1803ca851800feaba50fb68d5821779e9ea5880d968c \ + --hash=sha256:a4fbb3662f9f59d199d61338e54b4bcc11d07ebbb1aeb3540dacb2be9c521cb7 \ + --hash=sha256:acd5c57b4bd3e56e246e2731a3a3a6825a7a7d89b7e3b761ba80bc521710f04b \ + --hash=sha256:bf501c40b72d2d5c8623620210430e9cac1ce47a46e45b34107b70a1557d46b0 \ + --hash=sha256:c64a0713180ff16829d4e7f39a658b77ea11443af4e1aa46523692943c9b1414 \ + --hash=sha256:cded33237c77caeef62944d32aa9a7ef42bdce2b3497e18d137e072a8c4be438 \ + --hash=sha256:d3407fb7b9c4d75dd68850ffd7180bc0a5d2dbaf0762d888e612f31fec3f9c6b \ + --hash=sha256:ddedfd4b3b4be6be24ff6ca645c4a37fddfd305f6f3e354c54cf10b715c48215 \ + --hash=sha256:de536665495cb4b409d25bade41963f801aff4225c19a6b804b048f7d14e34c7 \ + --hash=sha256:e05ab7baf7f47b406a95fea6f3b0a484b2ddcd9e1d14b68844c457eb755085a3 \ + --hash=sha256:e88646b8580c5ad7f4361477f1298e9cc01771a1ee9aecfe32c47b8ff614cc38 \ + --hash=sha256:ec82e80e65a862275b97c3d90b7a523df8d9519ee48aeb4e9625b2cc909274e0 \ + --hash=sha256:efa3d7318406b4d115dce61ad5061953f1f44b128e79c020ce4615d763e23b6e + # via h3-image-mlx +tqdm==4.70.1 \ + --hash=sha256:c293e525e6fef9c20e8728fd4612df02a0aa31bb5fe91ecd93e123b1b7bffa73 \ + --hash=sha256:cefd0eca11b2a37a3aee776544d4f4ae913f02688135b5556b8788dfa474afc4 + # via huggingface-hub +truststore==0.10.5 \ + --hash=sha256:30d36967ccaded5cbb38d602c433f53600036c79d502f4533a49b60a03bbefcd \ + --hash=sha256:9aaaedaefaf06d8b206278cf8b5012bc897f485a874503501e12d776df78951c + # via + # httpcore2 + # httpx2 +typing-extensions==4.16.0 \ + --hash=sha256:481caa481374e813c1b176ada14e97f1f67a4539ce9cfeb3f350d78d6370c2e8 \ + --hash=sha256:dc983d19a509c94dba722ee6abd33940f7c05a89e243c47e907eb4db6f1a43e5 + # via + # anyio + # httpx2 + # huggingface-hub diff --git a/scripts/benchmark_video_backends.py b/scripts/benchmark_video_backends.py new file mode 100644 index 0000000..7a02488 --- /dev/null +++ b/scripts/benchmark_video_backends.py @@ -0,0 +1,95 @@ +#!/usr/bin/env python3 +"""Run real local video jobs through OpenMagia without changing the active project. + +Outputs and raw logs stay in ignored projects/fastvideo-benchmark-2026-10-26. +Resume skips completed cases. Execute only one copy and no other generation. +""" +import argparse +import json +from pathlib import Path +import sys +import time + +ROOT = Path(__file__).resolve().parents[1] +sys.path.insert(0, str(ROOT)) +import server + +PROMPT = ('A small red tin toy robot stands on a pale wooden table against a plain teal backdrop. ' + 'The robot slowly raises its right arm, waves twice, then lowers it. ' + 'One continuous locked-off medium shot, soft studio light, clear natural motion, ' + 'no text, no cuts. Quiet mechanical clicks, no speech or music.') +SLUG = 'fastvideo-benchmark-2026-10-26' + + +def main(): + parser = argparse.ArgumentParser() + parser.add_argument('--backends', nargs='+', default=['h3-metal', 'h3mlx', 'fastvideo']) + parser.add_argument('--force', action='store_true', help='Rerun completed cases without deleting project media') + args = parser.parse_args() + directory = server.proj_dir(SLUG) + directory.mkdir(parents=True, exist_ok=True) + (directory / 'media').mkdir(exist_ok=True) + (directory / 'uploads').mkdir(exist_ok=True) + if not (directory / 'project.json').exists(): + p = server.new_project() + p.update(slug=SLUG, name='Video backend benchmark · 26 October 2026') + server.save_project(p) + report_path = directory / 'benchmark.json' + results = json.loads(report_path.read_text()) if report_path.exists() else [] + for backend in args.backends: + server.H3_BIN = str({'h3-metal':Path(server.DEFAULTS['h3_bin']), + 'h3mlx':server.H3MLX_BIN, 'fastvideo':server.fast_video.PYTHON}[backend]) + for mode in ['text', 'image']: + case = backend + '-' + mode + if not args.force and any(r['case'] == case and r.get('status') == 'ready' for r in results): + continue + project = server.load_project_slug(SLUG) + reference = directory / 'uploads/reference.png' + if mode == 'image' and not reference.exists(): + raise RuntimeError('The common reference image must come from the first text render.') + if mode == 'image' and not any(m['id'] == 'benchmark-reference' for m in project['media']): + media = server.add_media(project, reference, 'Common robot reference', 'image', 'upload') + media['id'] = 'benchmark-reference' + scene = {'id':case, 'name':case, 'prompt':PROMPT, 'generation_type':'video', + 'character_ids':[], 'reference_media_ids':['benchmark-reference'] if mode == 'image' else [], + 'style_profile':{}, 'use_project_style':False, 'status':'queued', + 'optimize_references':False, + 'params':{'width':512, 'height':512, 'frames':120, 'steps':20, + 'layers':35 if backend == 'h3mlx' else 45, 'reuse':2, + 'seed':20261026, 'audio_mode':'effects', 'quality':'balanced'}} + project['scenes'] = [s for s in project['scenes'] if s['id'] != case] + [scene] + server.save_project(project) + original_monitor = server.monitor_h3_process + log_path = directory / (case + '.log') + with log_path.open('a') as log: + log.write('\nRUN ' + time.strftime('%Y-%m-%dT%H:%M:%SZ', time.gmtime()) + '\n') + def monitor(*a, **kw): + with log_path.open('a') as log: + for line in original_monitor(*a, **kw): + log.write(line + '\n'); log.flush() + yield line + server.monitor_h3_process = monitor + server.active_job = case + start = time.perf_counter() + print('START', case, flush=True) + server.run_job_guarded(case, project) + elapsed = time.perf_counter() - start + server.monitor_h3_process = original_monitor + project = server.load_project_slug(SLUG) + scene = next(s for s in project['scenes'] if s['id'] == case) + output = directory / 'media' / ('gen-' + case + '.mp4') + record = {'case':case, 'status':scene['status'], 'wall_seconds':round(elapsed, 3), + 'params':scene['params'], 'prompt':PROMPT, + 'execution_prompt':scene.get('execution_prompt'), 'error':scene.get('error'), + 'output':str(output), 'probe':server.nle.probe(output) if output.exists() else None} + if mode == 'text' and backend == 'h3-metal' and scene['status'] == 'ready' and not reference.exists(): + server.nle.extract_frame(output, reference, 'first') + results = [r for r in results if r['case'] != case] + [record] + report_path.write_text(json.dumps(results, indent=2) + '\n') + print('RESULT', json.dumps({k:v for k,v in record.items() if k not in ('prompt','execution_prompt')}), flush=True) + if scene['status'] != 'ready': + raise RuntimeError(scene.get('error') or 'Generation failed') + + +if __name__ == '__main__': + main() diff --git a/scripts/package_video_benchmark.py b/scripts/package_video_benchmark.py new file mode 100644 index 0000000..c15ebeb --- /dev/null +++ b/scripts/package_video_benchmark.py @@ -0,0 +1,92 @@ +#!/usr/bin/env python3 +"""Package measured video outputs and a portable, local comparison report.""" +import csv +import hashlib +import html +import json +import platform +from pathlib import Path +import shutil +import subprocess +import sys + +ROOT = Path(__file__).resolve().parents[1] +PROJECT = ROOT / 'projects/fastvideo-benchmark-2026-10-26' +OUT = ROOT / 'benchmarks/2026-10-26-fastvideo' +NAMES = {'h3-metal':'h3.c', 'h3mlx':'H3MLX', 'fastvideo':'FastVideo'} + + +def main(): + raw = json.loads((PROJECT / 'benchmark.json').read_text()) + if len(raw) != 6 or any(r.get('status') != 'ready' for r in raw): + raise RuntimeError('All six real generations must succeed before packaging.') + project = json.loads((PROJECT / 'project.json').read_text()) + statuses={s['id']:s['status'] for s in project['scenes']} + if any(statuses.get(r['case']) != 'ready' for r in raw): + raise RuntimeError('A benchmark scene is still running or failed.') + OUT.mkdir(parents=True, exist_ok=True) + shutil.copy2(PROJECT / 'uploads/reference.png', OUT / 'reference.png') + results = [] + attention_provenance = None + for backend in NAMES: + for mode in ('text', 'image'): + case = backend + '-' + mode + r = next(r for r in raw if r['case'] == case) + filename = case + '.mp4' + shutil.copy2(r['output'], OUT / filename) + generation=next((m.get('generation',{}) for m in project['media'] if m.get('scene_id')==case),{}) + runtime=generation.get('runtime') or {} + peaks=runtime.get('peak_memory_gib') or {} + if runtime.get('attention_provenance'):attention_provenance=runtime['attention_provenance'] + results.append({'backend':NAMES[backend], 'mode':mode, + 'wall_seconds':r['wall_seconds'], 'duration_seconds':r['probe']['duration'], + 'width':r['probe']['w'], 'height':r['probe']['h'], + 'audio':r['probe']['hasAudio'], 'requested_frames':120, + 'passes':8 if backend == 'fastvideo' else 20, + 'layers':None if backend == 'fastvideo' else r['params']['layers'], + 'reuse':None if backend == 'fastvideo' else r['params']['reuse'], + 'seed':20261026, 'output':filename, + 'model':runtime.get('model') or ('MiniMax-H3 Ref2VA' if mode=='image' else 'MiniMax-H3 FL2VA'), + 'attention':runtime.get('attention_backend') or 'native Metal', + 'peak_mlx_gib':round(max(peaks.values()),3) if peaks else None, + 'sha256':hashlib.sha256((OUT / filename).read_bytes()).hexdigest()}) + revisions={} + for name,path in [('h3.c',ROOT/'h3.c'),('H3MLX',ROOT/'addons/h3mlx'),('FastVideo',ROOT/'addons/fastvideo/source')]: + revisions[name]=subprocess.run(['git','-C',str(path),'rev-parse','HEAD'],capture_output=True,text=True,check=True).stdout.strip() + document = {'source_revisions':revisions, 'fastvideo_attention_provenance':attention_provenance, 'hardware':'Apple M5 Max, 128 GB unified memory', + 'date':'2026-10-26', 'os':'macOS '+platform.mac_ver()[0], + 'run_order':['FastVideo text','FastVideo image','h3.c text','h3.c image','H3MLX text','H3MLX image'], 'method':'One serial process-per-job generation per case. All final timings exclude concurrent model downloads.', + 'prompt':raw[0]['prompt'], 'reference_sha256':hashlib.sha256((OUT / 'reference.png').read_bytes()).hexdigest(), + 'results':results} + (OUT / 'results.json').write_text(json.dumps(document, indent=2)+'\n') + with (OUT / 'results.csv').open('w', newline='') as f: + writer=csv.DictWriter(f,fieldnames=list(results[0]));writer.writeheader();writer.writerows(results) + rows=[] + cards=[] + for mode in ('text','image'): + cards.append('

'+('Text to video' if mode=='text' else 'One image + text')+'

') + for r in results: + if r['mode'] != mode:continue + minutes, seconds=divmod(round(r['wall_seconds']),60) + label=f'{minutes}m {seconds:02d}s' + cards.append(f'

{html.escape(r["backend"])} {label}

{r["passes"]} passes · {r["duration_seconds"]:.2f}s output

') + rows.append(f'| {r["backend"]} | {mode} | {r["wall_seconds"]:.3f} | {r["duration_seconds"]:.2f} | {r["passes"]} |') + cards.append('
') + caveat=('Single-run measurements of different app presets and distilled models, not equal computational work. ' + 'The reference image comes from the original h3.c text output, which may favor that model’s appearance. ' + 'The first exploratory native timings were discarded and rerun without downloads. ' + 'OS file and shader caches may be warm. Run order: FastVideo text/image, h3.c text/image, then H3MLX text/image. Timings include process startup, conditioning, denoising, decoding and media registration. ' + 'FastVideo uses Trim INT6 for text and Omni INT6 for references, with M5 NAX attention and reference pixels capped to the output area. No temporal interpolation or spatial upscaling was enabled. FastVideo memory figures are peak MLX allocations, not total RAM; native peak memory was not measured.') + report='''OpenMagia video benchmark +

OpenMagia video benchmark

Apple M5 Max · 128 GB · 26 October 2026
512 × 512 · approximately five seconds · seed 20261026

'''+''.join(cards)+f'

Common reference

Red toy robot benchmark reference
Prompt and method
{html.escape(document["prompt"])}

{html.escape(caveat)}

CSV · JSON and file hashes

' + (OUT / 'comparison.html').write_text(report) + markdown='# OpenMagia video benchmark — 26 October 2026\n\nApple M5 Max, 128 GB unified memory. 512×512, approximately five seconds, seed 20261026.\n\n| Backend | Input | Wall seconds | Output seconds | Passes |\n|---|---|---:|---:|---:|\n'+'\n'.join(rows)+'\n\n'+caveat+'\n\nPrompt:\n\n> '+document['prompt']+'\n\nOpen [comparison.html](comparison.html) locally to play the six videos. [CSV](results.csv) · [JSON](results.json).\n' + (OUT / 'README.md').write_text(markdown) + audit=ROOT / 'addons/fastvideo/dependency-audit-minimal.json' + if audit.exists():shutil.copy2(audit,OUT / 'dependency-audit.json') + print(OUT) + + +if __name__ == '__main__': + main() diff --git a/server.py b/server.py index c7852a1..1dcae6b 100644 --- a/server.py +++ b/server.py @@ -8,6 +8,8 @@ import atexit import continuity_repair import qwen_image +import h3_image +import fast_video from model_readiness import partition_ready import hashlib import json @@ -162,6 +164,12 @@ def _load_config(): "summary":"Experimental Apple Silicon engine with alternate Metal kernels and few-step Frontier sampling. Reuses the installed MiniMax H3 weights.", "source":"https://github.com/robzombai/h3mlx", "supports":["t2va","fl2va","ref2va","audio-references"], "media":"video", "role":"video_generation"}, + {"id":"fastvideo", "name":"FastVideo · FastH3", "provider":"Hao AI Lab", + "platforms":["darwin-arm64"], "memory_min":36, "disk_gb":170, + "stability":"experimental", "install_component":"fastvideo", + "summary":"Text and image-reference video with eight-pass FastH3 models. Requires separate weights.", + "source":"https://github.com/hao-ai-lab/FastVideo", "supports":["t2va","ref2va"], + "media":"video", "role":"video_generation"}, {"id":"yue2", "name":"YuE 2 · music", "provider":"m-a-p", "platforms":["darwin-arm64","darwin","linux","win32"], "memory_min":16, "disk_gb":12, "stability":"stable", "install_component":"yue", "media":"music", "role":"music_generation", @@ -169,6 +177,12 @@ def _load_config(): "source":"https://github.com/multimodal-art-projection/YuE", "supports":["lyrics","instrumental","style-tags","abc-score","seed","loras"], "sizes_gb":[7.3, 0.53]}, + {"id":"h3-image", "name":h3_image.NAME, "provider":"MiniMax", + "platforms":["darwin-arm64"], "disk_gb":52, "stability":"experimental", + "install_component":"h3-image", "media":"image", "role":"image_generation", + "summary":"Local image generation and editing · six steps · INT8 MLX", + "source":"https://huggingface.co/MiniMaxAI/MiniMax-H3-Image", + "supports":["text-to-image","image-editing","image-references"]}, {"id":"qwen-image", "name":"Qwen-Image-2.1-Turbo", "provider":"Qwen", "platforms":["darwin-arm64","linux","win32"], "memory_min":32, "disk_gb":35, "stability":"experimental", "install_component":"qwen-image", @@ -574,6 +588,17 @@ def model_management_state(): "engine_path":str(H3MLX_BIN.resolve()), "managed":True, "receipt":[str(H3MLX_ROOT.resolve())], "imported":True, "media":"video"} installations.append(h3mlx_install); _save_model_registry(registry) + fv_install = next((item for item in installations if item.get("backend_id") == "fastvideo"), None) + if fast_video.state().get("present") and not fv_install: + installations.append({"id":"install-fastvideo-managed", "backend_id":"fastvideo", + "name":"FastVideo · FastH3", "path":str(fast_video.HOME), + "managed":True, "receipt":[str(fast_video.HOME)], "media":"video"}) + _save_model_registry(registry) + if h3_image.state()["present"] and not any(x.get("backend_id") == "h3-image" for x in installations): + installations.append({"id":"install-h3-image-managed", "backend_id":"h3-image", + "name":h3_image.NAME, "path":str(h3_image.HOME), "managed":True, + "receipt":[str(h3_image.HOME)], "media":"image"}) + _save_model_registry(registry) local_music = yue_local_runtime() image_install = next((item for item in installations if item.get("backend_id") == "qwen-image"), None) if qwen_image.state()["ready"] and not image_install: @@ -603,10 +628,11 @@ def model_management_state(): "receipt":[str(formatter_root)], "imported":True, "media":"refinement"} installations.append(formatter_install); _save_model_registry(registry) for item in installations: - item["active"] = ((item.get("backend_id") == "yue2" and yue_selection()["mode"] == "local") or + item["active"] = ((item.get("backend_id") == "fastvideo" and using_fastvideo()) or + (item.get("backend_id") == "yue2" and yue_selection()["mode"] == "local") or (item.get("backend_id") == "h3mlx" and str(Path(H3_BIN).expanduser().resolve()) == str(H3MLX_BIN.resolve())) or - (item.get("backend_id") == "h3-metal" and item.get("path") == active_path and + (item.get("backend_id") == "h3-metal" and not using_fastvideo() and item.get("path") == active_path and str(Path(H3_BIN).expanduser().resolve()) != str(H3MLX_BIN.resolve())) or (item.get("backend_id") == "qwen2.5-7b" and Path(item.get("path") or "").resolve() == formatter_root and @@ -614,8 +640,15 @@ def model_management_state(): item["available"] = Path(item.get("path") or "").exists() if item.get("backend_id") == "h3-metal": item["available"] = _h3_model_valid(item.get("path") or "") + if item.get("backend_id") == "fastvideo": + item["available"] = fast_video.state()["ready"] + item["present"] = fast_video.state().get("present", False) if item.get("backend_id") == "qwen-image": item["available"] = qwen_image.state()["ready"] + if item.get("backend_id") == "h3-image": + item.update(available=h3_image.state()["ready"], present=h3_image.state()["present"]) + if item.get("backend_id") in IMAGE_MODULES: + item["active"] = item["available"] and active_image_model() == item["backend_id"] hw = hardware_profile(); platform_id = hw["platform"] catalog = [] for raw in MODEL_BACKENDS: @@ -642,6 +675,33 @@ def uninstall_managed_model(installation_id): registry = _load_model_registry(); items = registry.get("installations") or [] item = next((x for x in items if x.get("id") == installation_id), None) if not item: raise ValueError("Managed installation not found.") + if item.get("backend_id") == "fastvideo": + if active_job or queue or model_installs.get("fastvideo", {}).get("status") == "running": + raise ValueError("Wait for generation and FastVideo installation to finish before removing it.") + target = fast_video.managed_home() + if not item.get("managed") or Path(item.get("path") or "").absolute() != target or str(target) not in (item.get("receipt") or []): + raise ValueError("OpenMagia has no safe managed FastVideo installation receipt.") + was_active = using_fastvideo() + if was_active: + H3_BIN = str(DEFAULTS["h3_bin"]) + _saved_model_sources.pop("h3_bin", None) + MODEL_SOURCE_FILE.write_text(json.dumps(_saved_model_sources, indent=2) + "\n") + if target.exists(): + shutil.rmtree(target) + registry["installations"] = [x for x in items if x.get("id") != installation_id] + _save_model_registry(registry) + return {"ok":True, "removed":str(target), "active_removed":was_active} + if item.get("backend_id") == "h3-image": + if active_job or queue or model_installs.get("h3-image", {}).get("status") == "running": + raise ValueError("Wait for generation and installation to finish.") + target = h3_image.managed_home() + if not item.get("managed") or item.get("path") != str(target) or str(target) not in item.get("receipt", []) or not h3_image.state()["present"]: + raise ValueError("No safe managed H3 Image installation receipt.") + was_active = active_image_model() == "h3-image" + shutil.rmtree(target) + registry["installations"] = [x for x in items if x.get("id") != installation_id] + _save_model_registry(registry) + return {"ok":True, "removed":str(target), "active_removed":was_active} if item.get("backend_id") == "qwen-image": target = Path(item.get("path") or "").resolve() allowed = qwen_image.HOME.resolve() @@ -1312,24 +1372,50 @@ def add(item): pass return found +IMAGE_MODULES = {"qwen-image": qwen_image, "h3-image": h3_image} + + +def active_image_model(): + chosen = _saved_model_sources.get("image_model", "h3") + module = IMAGE_MODULES.get(chosen) + return chosen if module and module.state()["ready"] else "h3" + + def select_model_source(kind, path="", endpoint="", model_id="", role="", token=""): global H3_BIN, H3_MODEL, FORMATTER_MODEL, FORMATTER_ENDPOINT, FORMATTER_MODEL_ID supplied = Path(path).expanduser() candidate = supplied.resolve() music_kinds = {"yue_local", "yue_worker", "yue_off"} expected_role = "video_generation" if kind in {"h3", "h3_backend"} else ( - "music_generation" if kind in music_kinds else "prompt_refinement") + "music_generation" if kind in music_kinds else "image_generation" if kind == "image_backend" else "prompt_refinement") if role and role != expected_role: raise ValueError("That model is not compatible with the selected OpenMagia role.") - if kind == "h3": + if kind == "image_backend": + if model_id != "h3" and (model_id not in IMAGE_MODULES or not IMAGE_MODULES[model_id].state()["ready"]): + raise ValueError("Install that image model before selecting it.") + _saved_model_sources["image_model"] = model_id + elif kind == "h3": + if using_fastvideo(): + if active_job or queue: + raise ValueError("Wait for queued generation to finish before switching video engines.") + native = Path(DEFAULTS["h3_bin"]) + if not native.is_file(): + raise ValueError("Install H3 to use these weights.") if not _h3_model_valid(candidate): raise ValueError("That folder is not a complete MiniMax H3 FL2VA + Ref2VA model.") + if using_fastvideo(): + H3_BIN = str(Path(DEFAULTS["h3_bin"]).resolve()) + _saved_model_sources["h3_bin"] = H3_BIN H3_MODEL = str(candidate); _saved_model_sources["h3_model"] = H3_MODEL elif kind == "h3_backend": backend = next((item for item in MODEL_BACKENDS if item.get("id") == model_id and item.get("media") == "video"), None) if not backend: raise ValueError("That video backend is not registered.") - engine = H3MLX_BIN if model_id == "h3mlx" else Path(DEFAULTS["h3_bin"]) + if active_job or queue: + raise ValueError("Wait for queued generation to finish before switching video engines.") + if model_id == "fastvideo" and not fast_video.state()["ready"]: + raise ValueError("Install FastVideo before selecting it.") + engine = fast_video.PYTHON if model_id == "fastvideo" else H3MLX_BIN if model_id == "h3mlx" else Path(DEFAULTS["h3_bin"]) if not engine.is_file(): raise ValueError("Install that video backend before selecting it.") - H3_BIN = str(engine.resolve()) + H3_BIN = str(engine.absolute() if model_id == "fastvideo" else engine.resolve()) _saved_model_sources["h3_bin"] = H3_BIN elif kind == "formatter_file": if not candidate.is_file() or supplied.suffix.lower() != ".gguf": raise ValueError("Prompt refinement requires a readable GGUF model file.") @@ -1426,6 +1512,10 @@ def safe_retry_params(params): return fallback +def using_fastvideo(): + return Path(H3_BIN).expanduser().absolute() == fast_video.PYTHON.absolute() + + def using_h3mlx(): """Return whether the optional H3MLX executable owns video generation.""" try: @@ -1453,6 +1543,10 @@ def h3mlx_generation_params(params): def parse_h3_progress_line(line): """Parse native H3/H3MLX progress, including carriage-return updates.""" clean = re.sub(r"\x1b\[[0-9;]*[A-Za-z]", "", str(line or "")) + fastvideo_step = re.search(r"H3 denoise step (\d+)/(\d+)", clean) + if fastvideo_step: + return {"phase":"denoising", "completed":int(fastvideo_step.group(1)), + "total":int(fastvideo_step.group(2))} # H3MLX renders "phase [bar] 10% (3/30)" while upstream H3 renders # "phase 3/30". Locate the counter first, then recover the phase from the # text before its progress bar. @@ -1564,10 +1658,19 @@ def model_update_fingerprint(component): def install_model_component(component, update=False): """Run an immutable snapshot of the idempotent installer in the background.""" model_installs[component] = {"status": "running", "message": "Preparing download…"} - if component == "qwen-image": + if component == "fastvideo": try: - qwen_image.install(lambda message: model_installs.update({component: {"status": "running", "message": message}})) - model_installs[component] = {"status": "ready", "message": "Qwen image installed"} + if active_job or queue: + raise ValueError("Wait for generation to finish before installing FastVideo.") + fast_video.install(lambda message: model_installs.update({component: {"status":"running", "message":message}})) + model_installs[component] = {"status":"current" if update else "ready", "message":"FastVideo is installed at the reviewed revision."} + except Exception as exc: + model_installs[component] = {"status":"error", "message":str(exc)} + return + if component in IMAGE_MODULES: + try: + IMAGE_MODULES[component].install(lambda message: model_installs.update({component: {"status": "running", "message": message}})) + model_installs[component] = {"status": "ready", "message": "Image model installed"} except Exception as exc: model_installs[component] = {"status": "error", "message": str(exc)} return @@ -2332,6 +2435,10 @@ def create_storyboard_batch(project, payload): if continuity_mode == "none": source_media_id = None params = clamp_generation_params({**shared_params, **dict(card.get("params") or {})}) + if using_fastvideo(): + if source_media_id and continuity_mode != "reference": + raise ValueError("FastVideo can’t use an opening frame. Switch to H3.") + params = fast_video.generation_params(params) prompt, timing_repaired = retime_cut_timeline(prompt, params["frames"]) proposed = {"character_ids": char_ids, "character_reference_ids": character_reference_ids if "character_reference_ids" in card else None, @@ -2694,13 +2801,18 @@ def clamp_generation_params(params, generation_type="video"): if generation_type == "music": return clamp_music_params(params) out = dict(params) + if generation_type == "image" and out.get("image_model") == "h3-image": + for axis in ("width", "height"): + out[axis] = max(256, min(4096, int(out.get(axis, 1024)) // 32 * 32)) + out.update(steps=6, frames=1) + return out if generation_type == "image" and out.get("image_model") == "qwen-image": for axis in ("width", "height"): out[axis] = max(256, min(2048, int(out.get(axis, 1024)) // 32 * 32)) out["steps"] = 8 out["frames"] = 1 return out - out["frames"] = 5 if generation_type == "image" else max(8, min(MAX_FRAMES, int(out.get("frames", 56)))) + out["frames"] = 22 if generation_type == "image" else max(8, min(MAX_FRAMES, int(out.get("frames", 56)))) # h3.c rejects fewer than two denoising steps, so clamp at the API # boundary instead of letting a queued job fail after process startup. out["steps"] = max(2, min(60, int(out.get("steps", 20)))) @@ -4986,9 +5098,10 @@ def run_music_job(scene_id, project): pump_queue(load_project_slug(project["slug"])) -def run_qwen_image_job(scene_id, project): +def run_dedicated_image_job(scene_id, project): global scene_proc, active_job scene = next(s for s in project["scenes"] if s["id"] == scene_id) + module = IMAGE_MODULES[scene.get("image_model", "qwen-image")] pdir = proj_dir(project["slug"]) output = pdir / "media" / f"gen-{scene_id}.png" output.parent.mkdir(parents=True, exist_ok=True) @@ -4996,16 +5109,21 @@ def run_qwen_image_job(scene_id, project): try: refs = scene_all_references(scene, project) paths = [str(p) for ref in refs for p in ref.get("paths", [])] - request_file.write_text(json.dumps({"prompt": ((scene.get("style_profile") or {}).get("prompt", "") + "\n" + scene["prompt"]).strip(), "references": paths, + request = {"prompt": ((scene.get("style_profile") or {}).get("prompt", "") + "\n" + scene["prompt"]).strip(), "references": paths, "width": scene["params"]["width"], "height": scene["params"]["height"], - "seed": scene["params"].get("seed", 42), "output": str(output)})) + "seed": scene["params"].get("seed", 42), "output": str(output)} + request_file.write_text(json.dumps(request)) + command = [str(qwen_image.PYTHON), str(ROOT / "qwen_image.py"), str(request_file)] + options = {} + if module is h3_image: + command = h3_image.command(request) + options = {"cwd": h3_image.HOME, "env": h3_image.environment()} with output.with_suffix(".log").open("w") as log: - scene_proc = subprocess.Popen([str(qwen_image.PYTHON), str(ROOT / "qwen_image.py"), str(request_file)], - stdout=log, stderr=subprocess.STDOUT, start_new_session=True) + scene_proc = subprocess.Popen(command, stdout=log, stderr=subprocess.STDOUT, start_new_session=True, **options) code = scene_proc.wait() if code or not output.is_file(): detail = output.with_suffix(".log").read_text()[-1800:] - raise RuntimeError("Qwen image failed: " + detail) + raise RuntimeError("Image generation failed: " + detail) with lock: latest = load_project_slug(project["slug"]) stored = next(s for s in latest["scenes"] if s["id"] == scene_id) @@ -5016,7 +5134,7 @@ def run_qwen_image_job(scene_id, project): media.update({"src": str(output.relative_to(pdir)), "kind": "image", "status": "ready", "duration": 0, "hasAudio": False, "w": stored["params"]["width"], "h": stored["params"]["height"], "thumb": f"/media/gen-{scene_id}.png"}) - media["generation"] = {"model": qwen_image.MODEL_ID, "prompt": stored["prompt"], "type": "image", "params": stored["params"]} + media["generation"] = {"model": module.MODEL_ID, "prompt": stored["prompt"], "type": "image", "params": stored["params"]} stored.update({"status": "ready", "error": None, "mediaId": media["id"], "media": media_url(media)}) save_project(latest) except Exception as exc: @@ -5049,6 +5167,9 @@ def run_job(scene_id, project): scene["error"] = None scene["params"] = clamp_generation_params( scene.get("params") or {}, scene.get("generation_type", "video")) + fastvideo_job = scene.get("generation_type", "video") == "video" and using_fastvideo() + if fastvideo_job: + scene["params"] = fast_video.generation_params(scene["params"]) if scene.get("generation_type", "video") == "video" and using_h3mlx(): scene["params"] = h3mlx_generation_params(scene["params"]) pending = next((x for x in project.get("media", []) if x.get("scene_id") == scene_id), None) @@ -5061,18 +5182,20 @@ def run_job(scene_id, project): if music_scene: return run_music_job(scene_id, project) - if scene.get("generation_type") == "image" and scene.get("image_model") == "qwen-image": - return run_qwen_image_job(scene_id, project) + if scene.get("generation_type") == "image" and scene.get("image_model") in IMAGE_MODULES: + return run_dedicated_image_job(scene_id, project) pdir = proj_dir(project["slug"]) pdir.mkdir(parents=True, exist_ok=True) is_image = scene.get("generation_type") == "image" out = pdir / "media" / f"gen-{scene_id}.png" if is_image else pdir / "media" / f"gen-{scene_id}.mp4" frames_dir = pdir / "media" / f".image-frames-{scene_id}" - ref2va = ref2va_available() + ref2va = fastvideo_job or ref2va_available() chars = scene_all_references(scene, project) # "continue from previous": open this shot on the previous shot's last frame source_frame = selected_source_frame(scene, project) or (prev_scene_last_frame(scene_id, project) if scene.get("chain") else None) + if fastvideo_job and source_frame and scene.get("continuity_mode") != "reference": + raise ValueError("FastVideo can’t use an opening frame. Switch to H3.") hybrid_continuity = bool(source_frame and scene.get("continuity_mode") == "reference") chain_frame = None if hybrid_continuity else source_frame image_idea = str(scene.get("prompt") or "").strip() @@ -5118,7 +5241,8 @@ def run_job(scene_id, project): if stored.get("prompt_skill_id"): stored["skill_compilation"] = compile_skill_contract(stored["prompt_skill_id"]) save_project(latest) - cmd = [H3_BIN, "-d", H3_MODEL, "-p", prompt, + native_bin = str(DEFAULTS["h3_bin"]) if using_fastvideo() else H3_BIN + cmd = [native_bin, "-d", H3_MODEL, "-p", prompt, "-o", "" if is_image else str(out), "--width", str(scene["params"]["width"]), "--height", str(scene["params"]["height"]), @@ -5153,13 +5277,30 @@ def run_job(scene_id, project): # memory traffic without changing the requested frames or geometry. cmd += ["--use-int8-row-fc2"] + fastvideo_request = None + if fastvideo_job: + refs = [] + for group in generation_refs: + kind = {"video_reference":"video", "audio_reference":"audio"}.get(group.get("kind"), "image") + refs.extend({"type":kind, "path":str(path)} for path in group.get("paths", [])) + cmd, fastvideo_request = fast_video.command(prompt, out, scene["params"], refs) + progress[scene_id] = {"phase": "loading model and references", "completed": 0, "total": 1, "started_at": time.time(), "first_step_at": None} try: - proc = subprocess.Popen(cmd, stdout=subprocess.DEVNULL, stderr=subprocess.PIPE, - text=True, bufsize=1, cwd=str(Path(H3_BIN).parent), + proc = subprocess.Popen(cmd, stdout=subprocess.PIPE if fastvideo_job else subprocess.DEVNULL, + stderr=subprocess.STDOUT if fastvideo_job else subprocess.PIPE, + stdin=subprocess.PIPE if fastvideo_job else subprocess.DEVNULL, + env=fast_video.environment(offline=True) if fastvideo_job else None, + text=True, bufsize=1, cwd=str(ROOT) if fastvideo_job else str(Path(native_bin).parent), start_new_session=(os.name != "nt")) scene_proc = proc + if fastvideo_request is not None: + proc.stdin.write(json.dumps(fastvideo_request)) + proc.stdin.close() + # The existing cancellation/stall monitor reads stderr. + proc.stderr = proc.stdout + fastvideo_result = None tail = [] long_native = bool(scene.get("params", {}).get("stability_adjusted")) for line in monitor_h3_process( @@ -5167,7 +5308,11 @@ def run_job(scene_id, project): stall_timeout=10800 if long_native else H3_STALL_TIMEOUT, hard_timeout=H3_HARD_TIMEOUT): line = line.rstrip("\n") + if line.startswith("OPENMAGIA_RESULT "): + fastvideo_result = json.loads(line.split(" ", 1)[1]) parsed = parse_h3_progress_line(line) + if fastvideo_job and parsed and parsed.get("phase") == "denoising" and parsed["completed"] == parsed["total"]: + parsed = {"phase":"decoding video and audio", "completed":0, "total":0} if parsed: previous = progress.get(scene_id, {}) progress[scene_id] = {**parsed, @@ -5178,11 +5323,11 @@ def run_job(scene_id, project): rc = proc.wait() if rc != 0: detail = " | ".join(clean_h3_output(t) for t in tail if clean_h3_output(t))[-800:] - raise RuntimeError(f"h3 exited with code {rc}: {detail}") + raise RuntimeError(f"{'FastVideo' if fastvideo_job else 'H3'} exited with code {rc}: {detail}") if is_image: frames = sorted(frames_dir.glob("frame-*.ppm")) if not frames: - raise RuntimeError("H3 finished without writing the five experimental image frames") + raise RuntimeError("H3 finished without writing the image frames") chosen = frames[len(frames) // 2] converted = subprocess.run(["ffmpeg", "-y", "-v", "error", "-i", str(chosen), "-frames:v", "1", str(out)], capture_output=True, text=True) @@ -5245,8 +5390,12 @@ def run_job(scene_id, project): m["generation"] = {"prompt": scene.get("prompt", ""), "params": dict(scene.get("params") or {}), "prompt_skill_id": scene.get("prompt_skill_id"), "type": scene.get("generation_type", "video"), - "frame_strategy": "middle_of_5" if is_image else None} + "frame_strategy": "middle_frame" if is_image else None} m["status"] = "ready" + if fastvideo_job: + m.setdefault("generation", {}).update({"backend":"fastvideo", "runtime":fastvideo_result, + "model":fast_video.MODELS["reference" if fastvideo_request["references"] else "text"][0], + "params":dict(scene["params"]), "execution_prompt":prompt}) if thumb_url: m["thumb"] = thumb_url scene["first_frame"] = first_url @@ -5270,7 +5419,7 @@ def run_job(scene_id, project): failed_scene = next((s for s in latest["scenes"] if s["id"] == scene_id), None) pending = next((x for x in latest["media"] if x.get("scene_id") == scene_id), None) retry_stall = (isinstance(e, GenerationStalled) and failed_scene and - int(failed_scene.get("stall_retries", 0)) < 1) + int(failed_scene.get("stall_retries", 0)) < 1 and not fastvideo_job) if retry_stall: failed_scene["stall_retries"] = int(failed_scene.get("stall_retries", 0)) + 1 failed_scene["params"] = safe_retry_params(failed_scene.get("params")) @@ -5400,7 +5549,7 @@ def enqueue(scene_id, project): "generation": {"prompt": scene.get("prompt", ""), "params": dict(scene.get("params") or {}), "prompt_skill_id": scene.get("prompt_skill_id"), "type": scene.get("generation_type", "video"), - "frame_strategy": "middle_of_5" if scene.get("generation_type") == "image" else None}, + "frame_strategy": "middle_frame" if scene.get("generation_type") == "image" and scene.get("image_model", "h3") == "h3" else None}, }) save_project(project) if active_job is None: @@ -5509,7 +5658,13 @@ def run_sheet_job(sheet_id, project): references=[r["keep"] for r in refs], recipe=sheet.get("recipe", "turn-6"), style=sheet.get("style", "match")) - cmd = [H3_BIN, "-d", H3_MODEL, "-p", prompt, "-o", str(out), + # Character sheets use the native Ref2VA command and extraction + # pipeline. The FastVideo selector stores a Python interpreter, + # which cannot accept these native H3 arguments. + sheet_bin = Path(DEFAULTS["h3_bin"] if using_fastvideo() else H3_BIN).expanduser().resolve() + if not sheet_bin.is_file() or not os.access(sheet_bin, os.X_OK): + raise ValueError("Compose Character requires native MiniMax H3. Install it in Settings → Models, then retry.") + cmd = [str(sheet_bin), "-d", H3_MODEL, "-p", prompt, "-o", str(out), "--width", str(params["width"]), "--height", str(params["height"]), "--frames", str(params["frames"]), "--steps", str(params["steps"]), "--layers", str(params["layers"]), "--reuse", str(params["reuse"]), @@ -5519,7 +5674,7 @@ def run_sheet_job(sheet_id, project): sheet_progress[sheet_id] = {"phase": "starting", "completed": 0, "total": 1} proc = subprocess.Popen(cmd, stdout=subprocess.DEVNULL, stderr=subprocess.PIPE, - text=True, cwd=str(Path(H3_BIN).parent), + text=True, cwd=str(sheet_bin.parent), start_new_session=(os.name != "nt")) sheet_proc = proc tail = [] @@ -5881,11 +6036,16 @@ def do_GET(self): out["projects"] = list_projects() out["engine"] = { "app_version": APP_IDENTITY["version"], "app_build": APP_IDENTITY["build"], - "h3_bin": H3_BIN, "h3_bin_ok": Path(H3_BIN).exists(), - "h3_backend": "h3mlx" if using_h3mlx() else "h3-metal", + "h3_bin": H3_BIN, "h3_bin_ok": fast_video.state()["ready"] if using_fastvideo() else Path(H3_BIN).exists(), + "h3_backend": "fastvideo" if using_fastvideo() else "h3mlx" if using_h3mlx() else "h3-metal", + "fastvideo": fast_video.state(), + "video_backends": [ + {"id":"h3-metal", "ready":Path(DEFAULTS["h3_bin"]).is_file() and partition_ready(H3_MODEL,"FL2VA")}, + {"id":"h3mlx", "ready":H3MLX_BIN.is_file() and partition_ready(H3_MODEL,"FL2VA")}, + {"id":"fastvideo", "ready":fast_video.state()["ready"]}], "model_root": H3_MODEL, "fl2va": partition_ready(H3_MODEL, "FL2VA"), - "ref2va": ref2va_available(), + "ref2va": fast_video.state()["ready"] if using_fastvideo() else ref2va_available(), "media_dir": str(proj_dir(proj["slug"]) / "media"), "timeline_end": round(timeline_end(proj), 3), "formatter": formatter_available(), @@ -5897,6 +6057,8 @@ def do_GET(self): "can_undo": bool(undo_stacks.get(proj.get("slug"), [])), "music": yue_music_state(), "qwen_image": qwen_image.state(), + "h3_image": h3_image.state(), + "image_model": active_image_model(), } return self._json(out) if p == "/api/prompt/templates": @@ -5995,10 +6157,12 @@ def do_POST(self): if p == "/api/models/install": b = self._body() component = str(b.get("component") or "") - if component not in ("h3", "h3mlx", "formatter", "runtime", "yue", "qwen-image"): + if component not in ("h3", "h3mlx", "formatter", "runtime", "yue", "qwen-image", "fastvideo", "h3-image"): return self._json({"error": "unknown model component"}, 400) - if component in ("h3", "h3mlx") and not b.get("accepted_license"): + if component in ("h3", "h3mlx", "fastvideo") and not b.get("accepted_license"): return self._json({"error": "Accept the MiniMax H3 license before downloading."}, 400) + if component == "h3-image" and not b.get("accepted_license"): + return self._json({"error":"Accept the MiniMax H3 Image license before downloading."}, 400) if component == "qwen-image" and not b.get("accepted_license"): return self._json({"error": "Accept the Qwen Research License before downloading."}, 400) with model_install_lock: @@ -6521,16 +6685,25 @@ def do_POST(self): requested_type = str(b.get("generation_type") or "video") generation_type = ("music" if requested_type == "music" else "image" if requested_type == "image" else "video") - image_model = str(b.get("image_model") or "h3") - if generation_type == "image" and image_model not in ("h3", "qwen-image"): + if generation_type == "video" and using_fastvideo(): + if not fast_video.state()["ready"]: + return self._json({"error":"Install FastVideo in Settings first."}, 400) + if not 120 <= int((b.get("params") or {}).get("frames", 56)) <= 360: + return self._json({"error":"FastVideo generates 5–15 seconds."}, 400) + if b.get("source_media_id") or b.get("chain"): + return self._json({"error":"FastVideo can’t use an opening frame. Switch to H3."}, 400) + if model_installs.get("fastvideo", {}).get("status") == "running": + return self._json({"error":"Wait for FastVideo installation to finish."}, 400) + image_model = str(b.get("image_model") or active_image_model()) + if generation_type == "image" and image_model != "h3" and image_model not in IMAGE_MODULES: return self._json({"error": "Unknown image model"}, 400) - if generation_type == "image" and image_model == "qwen-image": + if generation_type == "image" and image_model in IMAGE_MODULES: if b.get("source_media_id") or b.get("chain"): - return self._json({"error": "For Qwen image, add a still-image reference instead of video continuation."}, 400) - if not qwen_image.state()["ready"]: - return self._json({"error": "Install Qwen-Image-2.1-Turbo in Settings first."}, 400) + return self._json({"error": "Add a still-image reference instead of video continuation."}, 400) + if model_installs.get(image_model, {}).get("status") == "running" or not IMAGE_MODULES[image_model].state()["ready"]: + return self._json({"error": "Install the selected image model in Settings first."}, 400) if any(item.get("kind") in ("video_reference", "audio_reference") for item in selected_refs): - return self._json({"error": "Qwen image accepts image references only."}, 400) + return self._json({"error": "This model accepts image references only."}, 400) if generation_type == "music" and (char_ids or reference_media_ids or b.get("source_media_id")): # YuE 2 has no reference-audio or image argument; saying so here # beats queueing a song that silently ignores the artist's work. @@ -6555,7 +6728,7 @@ def do_POST(self): "character_ids": char_ids, "character_reference_ids": character_reference_ids, "reference_media_ids": reference_media_ids, "params": params, "guide_answers": dict(b.get("guide_answers") or {}), "template_id": b.get("template_id"), "generation_type": generation_type, - "image_model": str(b.get("image_model") or "h3"), + "image_model": str(b.get("image_model") or active_image_model()), "prompt_skill_id": b.get("prompt_skill_id"), "skill_customization": str(b.get("skill_customization") or "")[:500], "style_profile": dict(proj.get("style_profile") or {}) if use_project_style else {}, diff --git a/style.css b/style.css index 072292b..95148d7 100644 --- a/style.css +++ b/style.css @@ -16,6 +16,7 @@ --serif:"Fraunces",Georgia,serif; } *{box-sizing:border-box;margin:0;padding:0} +[hidden]{display:none!important} html,body{width:100%;max-width:100%;height:100%;overflow:hidden} body{font-family:var(--font);background:var(--bg);color:var(--ink);display:flex;flex-direction:column;overflow:hidden;-webkit-font-smoothing:antialiased;font-size:14px;line-height:1.5} button{font:inherit;color:inherit;background:none;border:0;cursor:pointer} @@ -396,7 +397,7 @@ body.nav-collapsed .sideNav{align-items:center;margin-top:14px}body.nav-collapse /* MiniMax-style H3 composer */ .projectStyleCard{margin:2px 0 12px;border:1px solid #2d2d32;border-radius:10px;background:#131315}.projectStyleTop{display:flex;width:100%;min-height:62px;align-items:center;justify-content:space-between;gap:10px;padding:11px;color:#71717a;text-align:left}.projectStyleTop>span:first-child{display:grid;gap:3px}.projectStyleTop small{color:#71717a;font-size:10px;font-weight:500;letter-spacing:0}.projectStyleTop:hover{color:#d4d4d8}.projectStyleCard.expanded .projectStyleTop{border-bottom:1px solid #27272a}.sharedStyleChevron{display:block;flex:0 0 16px;width:16px;height:16px;align-self:center;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8;transform-origin:50% 50%;transition:transform .15s ease}.projectStyleCard.expanded .sharedStyleChevron{transform:rotate(180deg)}.projectStyleBody{padding:0 11px 11px}.projectStyleBody>p{margin:9px 0 0!important;color:#71717a!important;font-size:10px!important;line-height:1.45}.scopeLabel{font-size:12px;font-weight:750;letter-spacing:.1em;color:currentColor}.projectStyleCard textarea{min-height:52px;margin-top:9px;font-size:12px;line-height:1.45} .styleComposerBar{display:flex;align-items:center;gap:5px;margin:9px -11px -11px;padding:8px 11px;border-top:1px solid #27272a}.styleComposerBar .refineAction{min-height:27px;height:27px;padding:5px 8px;border:1px solid #34343a;border-radius:6px;background:#1d1d21;color:#a1a1aa;font:500 12px/1 var(--font)}.styleComposerBar .refineAction:hover{border-color:#52525b;color:#fff} -.h3Composer{position:relative;border:1px solid #3a3a40;border-radius:13px;background:#151517;box-shadow:0 8px 28px rgba(0,0,0,.2);overflow:hidden}.h3Composer:focus-within{border-color:#626269;box-shadow:0 0 0 2px rgba(124,92,255,.12)}.h3Composer textarea{min-height:132px!important;max-height:280px;border:0!important;border-radius:0;background:transparent!important;padding:14px 14px 6px;font-size:13px;box-shadow:none!important}.activePromptSkills{display:flex;gap:6px;flex-wrap:wrap;padding:10px 10px 0}.activePromptSkills:empty{display:none}.activeSkillChip{display:flex;gap:7px;align-items:center;padding:5px 7px;border-radius:6px;background:#29253d;color:#ddd6fe;font-size:12px}.activeSkillChip b{color:#8b8797}.composerMeta{display:flex;gap:6px;padding:5px 11px 7px;color:#71717a;font-size:12px}.composerMeta span{padding:3px 5px;border:1px solid #2d2d32;border-radius:5px}.composerBar{display:flex;align-items:center;gap:5px;padding:8px;border-top:1px solid #27272a}.composerTool{padding:7px 9px;border-radius:7px;color:#b4b4bc;font-size:12px}.composerTool:hover{background:#27272a;color:#fff}.composerSend{width:34px;height:34px;border-radius:50%;background:#f4f4f5;color:#18181b;font-size:20px;font-weight:700;display:grid;place-items:center}.composerSend:hover{background:#fff;transform:translateY(-1px)} +.h3Composer{position:relative;border:1px solid #3a3a40;border-radius:13px;background:#151517;box-shadow:0 8px 28px rgba(0,0,0,.2);overflow:hidden}.h3Composer:focus-within{border-color:#626269;box-shadow:0 0 0 2px rgba(124,92,255,.12)}.h3Composer textarea{min-height:132px!important;max-height:280px;border:0!important;border-radius:0;background:transparent!important;padding:14px 14px 6px;font-size:13px;box-shadow:none!important}.activePromptSkills{display:flex;gap:6px;flex-wrap:wrap;padding:10px 10px 0}.activePromptSkills:empty{display:none}.activeSkillChip{display:flex;gap:7px;align-items:center;padding:5px 7px;border-radius:6px;background:#29253d;color:#ddd6fe;font-size:12px}.activeSkillChip b{color:#8b8797}.composerMeta{display:flex;gap:6px;padding:5px 11px 7px;color:#71717a;font-size:12px}.composerMeta span{padding:3px 5px;border:1px solid #2d2d32;border-radius:5px}.composerBar{display:flex;flex-wrap:wrap;align-items:center;gap:5px;padding:8px;border-top:1px solid #27272a}.composerTool{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:0 0 auto;white-space:nowrap;padding:7px 9px;border-radius:7px;color:#b4b4bc;font-size:12px}.composerTool:hover{background:#27272a;color:#fff}.composerSend{width:34px;height:34px;border-radius:50%;background:#f4f4f5;color:#18181b;font-size:20px;font-weight:700;display:grid;place-items:center}.composerSend:hover{background:#fff;transform:translateY(-1px)} .composerPromptLabel{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:11px 13px 0;color:#71717a}.composerPromptLabel span{font-size:12px;font-weight:750;letter-spacing:.1em}.h3Composer .composerPromptLabel+ .activePromptSkills{padding-top:8px} .generationOptions{margin-top:20px;padding-top:17px;border-top:1px solid #27272a}.sectionLabel{margin-bottom:14px;color:#71717a;font-size:12px;font-weight:750;letter-spacing:.11em;text-transform:uppercase}.generationOptions>.field{margin-bottom:17px}.generationOptions>.field:last-child{margin-bottom:0} #composerPicker{position:fixed;inset:0;z-index:75;visibility:hidden;overflow:hidden;pointer-events:none}#composerPicker.on{visibility:visible;pointer-events:auto}#composerPicker.on .sheetScrim{opacity:1}.pickerPanel{position:absolute;right:0;top:0;bottom:0;width:min(480px,94vw);padding:22px;background:#111113;border-left:1px solid #27272a;box-shadow:-16px 0 48px rgba(0,0,0,.38);transform:translateX(100%);transition:transform .22s ease;display:flex;flex-direction:column;gap:14px}#composerPicker.on .pickerPanel{transform:translateX(0)}#composerPickerSearch{height:38px}.pickerPanel>.filterTabs{padding:0}.pickerList{display:flex;flex-direction:column;gap:6px;overflow:auto;padding-bottom:22px}.pickerRow{width:100%;display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:11px;padding:11px;border:1px solid transparent;border-radius:9px;text-align:left;color:#d4d4d8}.pickerRow:hover:not(:disabled){background:#1c1c20;border-color:#303036}.pickerRow.on{background:rgba(124,92,255,.11);border-color:#5b4aaa}.pickerRow:disabled{opacity:.45;cursor:not-allowed}.pickerIcon{width:32px;height:32px;display:grid;place-items:center;border-radius:7px;background:#27272a;color:#a78bfa}.pickerRow>span:nth-child(2){display:grid;gap:4px;min-width:0}.pickerRow strong{font-size:12px;color:#f4f4f5}.pickerRow strong code{margin-left:5px;color:#8b8b94;font-size:12px}.pickerRow small{color:#8b8b94;font-size:12px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pickerRow em{color:#71717a;font-size:12px;font-style:normal;text-transform:uppercase;letter-spacing:.06em} @@ -419,7 +420,7 @@ body.nav-collapsed .sideNav{align-items:center;margin-top:14px}body.nav-collapse /* Generate composer hierarchy */ #rightCol[data-tab="generate"]{align-content:start}#rightCol[data-tab="generate"]>#generate{box-sizing:border-box;width:100%;max-width:none;margin-top:0!important;align-self:stretch} .styleActions{display:flex!important;gap:5px}.styleActions #styleRefineBtn,.styleActions #templateBtn{height:30px;padding:0 10px;background:#222226;border:1px solid #34343a;color:#d4d4d8;border-radius:7px}.styleActions #styleRefineBtn:hover,.styleActions #templateBtn:hover{background:#2b2b30;border-color:#4a4a52;color:#fff} -.composerContext{display:flex;align-items:center;align-content:flex-start;justify-content:flex-start;gap:6px;flex-wrap:wrap;padding:5px 10px 8px;text-align:left}.contextChips{display:contents}.contextChips button,.contextAdd{min-height:27px;padding:5px 8px;border:1px solid #34343a;border-radius:6px;background:#1d1d21;color:#a1a1aa;font-size:12px}.contextChips button::before{content:"○";margin-right:5px;color:#71717a}.contextChips button.on{background:#29253d;border-color:#51466f;color:#ddd6fe}.contextChips button.on::before{content:"✓";color:#c4b5fd}.contextAdd:hover,.contextChips button:hover{border-color:#52525b;color:#fff}.contextAdd.on{background:#202b2d;border-color:#36565c;color:#b7e2e8} +.composerContext{display:flex;align-items:center;align-content:flex-start;justify-content:flex-start;gap:6px;flex-wrap:wrap;padding:5px 10px 8px;text-align:left}.contextChips{display:contents}.contextChips button,.contextAdd{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;min-height:27px;padding:5px 8px;border:1px solid #34343a;border-radius:6px;background:#1d1d21;color:#a1a1aa;font-size:12px}.contextChips button::before{content:"○";margin-right:5px;color:#71717a}.contextChips button.on{background:#29253d;border-color:#51466f;color:#ddd6fe}.contextChips button.on::before{content:"✓";color:#c4b5fd}.contextAdd:hover,.contextChips button:hover{border-color:#52525b;color:#fff}.contextAdd.on{background:#202b2d;border-color:#36565c;color:#b7e2e8} .composerContext>button,.composerContext>.sourceContext{flex:0 0 auto}.composerContext .sourceContext{margin-right:auto} .sourceContext{display:flex}.sourceContext .contextAdd.on{border-radius:6px 0 0 6px}.sourceContext #sourceClearBtn{display:none;width:26px;border:1px solid #36565c;border-left:0;border-radius:0 6px 6px 0;background:#202b2d;color:#7faab0}.sourceContext #sourceClearBtn.on{display:block}.sourceContext #sourceClearBtn:hover{color:#fff;background:#29383b} .generationOptions{container-type:inline-size;margin-top:16px;padding-top:0;border-top:1px solid #27272a} @@ -758,8 +759,10 @@ footer.maximized{left:82px} #generate>.chead{flex:0 0 auto} .generateScroll{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;padding-bottom:14px} .generateFooter{position:relative;z-index:4;flex:0 0 auto;margin:0 -14px;padding:12px 14px;border-top:1px solid #303036;background:#0d0d0f;box-shadow:0 -12px 30px rgba(9,9,11,.72)} -#generate .h3Composer{border-radius:13px 13px 0 0;margin-bottom:0} -#generate .generationOptions{margin-top:0;padding:14px;border:1px solid #3a3a40;border-top:0;border-radius:0 0 13px 13px;background:#151517} +#videoGenerationControls{border:1px solid #3a3a40;border-radius:13px;background:#151517;overflow:hidden} +#generate #videoGenerationControls .h3Composer{border:0;border-radius:0;margin-bottom:0;box-shadow:none!important} +#videoGenerationControls:focus-within{border-color:#6256a3} +#generate .generationOptions{margin-top:0;padding:14px;border:0;border-top:1px solid #27272a;border-radius:0;background:transparent} .generatePrimary{display:flex;width:100%;min-height:46px;align-items:center;justify-content:space-between;margin:0;padding:0 16px;border-radius:9px;background:#f4f4f5;color:#18181b;font-size:13px;font-weight:750;text-align:left} .generatePrimary:hover{background:#fff;transform:translateY(-1px)} .generatePrimary:disabled{cursor:wait;opacity:.55;transform:none} @@ -769,7 +772,7 @@ footer.maximized{left:82px} /* Compact composer tools use the same quiet outlined treatment as Add cast and Add references. */ -.composerTool,.projectStyleTop button.refineAction{box-sizing:border-box!important;min-height:27px!important;height:27px!important;padding:5px 8px!important;border:1px solid #34343a!important;border-radius:6px!important;background:#1d1d21!important;color:#a1a1aa!important;font:500 12px/1 var(--font)!important} +.composerTool,.projectStyleTop button.refineAction{box-sizing:border-box!important;min-height:27px!important;height:auto!important;padding:6px 8px!important;border:1px solid #34343a!important;border-radius:6px!important;background:#1d1d21!important;color:#a1a1aa!important;font:500 12px/1 var(--font)!important} .composerTool:hover,.projectStyleTop button.refineAction:hover{border-color:#52525b!important;background:#1d1d21!important;color:#fff!important} .outputGrid{grid-template-columns:repeat(3,minmax(0,1fr))} @@ -1073,3 +1076,14 @@ footer.maximized{left:82px} .assetVideoPreview{position:relative;padding-bottom:40px;background:#0d0d10}.assetVideoPreview>video{width:100%;height:100%;object-fit:contain}.assetVideoPreview .assetAudioControls{bottom:5px}.assetAssignmentsLabel{font-size:10px;color:#71717a;margin:14px 0 7px}.assetAssignments{margin-top:0} .continuityFixToggle{display:flex!important;align-items:center;gap:10px;margin:15px 0!important;color:#e4e4e7!important}.continuityFixToggle input{width:16px!important;height:16px;accent-color:#a78bfa}.continuityIssue pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.6 var(--font);color:#d4d4d8;background:#111113;padding:14px;border-radius:8px;margin:10px 0}.continuityIssue summary{cursor:pointer;color:#a1a1aa;font-size:12px} + +.modelCapabilityNotice{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin:4px 0 12px;padding:0;color:var(--muted,#a1a1aa);font-size:12px;line-height:1.5;font-weight:400}.actionLink{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:2px 0;border:0;border-radius:3px;background:transparent;color:#a1a1aa;font:500 12px/1.5 var(--font);white-space:nowrap;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.actionLink:hover{color:#f4f4f5;background:transparent}.actionLink:disabled{opacity:.5;cursor:wait}.actionLink:focus-visible,.composerTool:focus-visible{outline:2px solid #a78bfa;outline-offset:3px}.modelCapabilityNotice[hidden]{display:none} + +.optionalStyle{margin:0;padding:10px 12px 12px;border-top:1px solid #27272a}.optionalStyleToggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;font-size:12px}.optionalStyleToggle .sharedStyleChevron{display:block;flex:0 0 12px;width:12px;height:12px;align-self:center}.optionalStyleToggle[aria-expanded="true"] .sharedStyleChevron{transform:rotate(180deg)}.optionalStyleToggle svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.5}.optionalStyle .projectStyleBody{padding:10px 0 0;border:0}.optionalStyle .styleComposerBar{margin:8px 0 0;padding:8px 0 0}.optionalStyle #genStyle{box-sizing:border-box;resize:vertical;max-height:50vh}.optionalStyleEnabled{display:flex;align-items:center;gap:7px;font-size:12px;color:#a1a1aa;margin:10px 0}.optionalStyle textarea{min-height:90px;width:100%}.storyboardStyleSection{background:none;border:0;padding:0}.generateFooter[hidden]{display:none} + +.modelGroup + .modelGroup{margin-top:22px} +.modelGroup > h3{margin:12px 0 6px;font-size:12px;font-weight:600;color:#a1a1aa} + +#mediaGrid .mediaEmpty{grid-column:1/-1;display:grid;justify-items:center;gap:8px;padding:36px 12px;text-align:center;color:var(--muted);font-size:12px;line-height:1.5} +.mediaEmptyGlyph{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:rgba(255,255,255,.05);color:var(--ink-2);font-size:16px} +.mediaEmpty strong{color:var(--ink);font-size:13px;font-weight:600}.mediaEmpty p{max-width:22ch;margin:0} diff --git a/tests/fastvideo-browser.cjs b/tests/fastvideo-browser.cjs new file mode 100644 index 0000000..75c9aa4 --- /dev/null +++ b/tests/fastvideo-browser.cjs @@ -0,0 +1,82 @@ +// Run against an isolated UI fixture, never a user's active project. +const assert=require('node:assert/strict'); +const {chromium}=require(process.env.PLAYWRIGHT_MODULE||'playwright'); +const BASE=process.env.OPENMAGIA_TEST_URL||'http://127.0.0.1:8732'; +(async()=>{ + const browser=await chromium.launch({headless:true,...(process.env.CHROME_PATH?{executablePath:process.env.CHROME_PATH}:{})}); + const page=await browser.newPage({viewport:{width:1440,height:1050}}); + const errors=[];page.on('pageerror',e=>errors.push(e.message)); + const activate=await page.request.post(BASE+'/api/models/select',{data:{kind:'h3_backend',model_id:'fastvideo',role:'video_generation'}});assert.equal(activate.ok(),true); + await page.goto(BASE);await page.waitForTimeout(800); + await page.evaluate(()=>setHubView('editor')); + await page.locator('#mediaGrid .mediaEmpty').getByText('Start with some media').waitFor(); + assert.equal(await page.locator('#mediaGrid .mediaEmpty').evaluate(el=>getComputedStyle(el).textAlign),'center'); + await page.locator('[data-inspector-tab=generate]').click(); + await page.locator('#genType').selectOption('video'); + await page.locator('#modelCapabilityNotice').waitFor({state:'visible'}); + assert.match(await page.locator('#modelCapabilityNotice').innerText(),/FastVideo needs at least 5 seconds/); + const links=page.locator('#modelCapabilityNotice .actionLink'); + assert.equal(await links.count(),2); + const treatment=async locator=>locator.evaluate(el=>{const s=getComputedStyle(el);return [s.color,s.backgroundColor,s.borderColor,s.padding,s.font,s.textDecorationLine]}); + assert.deepEqual(await treatment(links.nth(0)),await treatment(links.nth(1))); + await links.nth(0).hover();const firstHover=await treatment(links.nth(0)); + await links.nth(1).hover();assert.deepEqual(firstHover,await treatment(links.nth(1))); + await page.mouse.move(0,0); + for(const width of [280,330,400]){ + await page.evaluate(w=>document.querySelector('main').style.gridTemplateColumns='250px minmax(200px,1fr) '+w+'px',width); + const layout=await page.locator('.composerBar').first().evaluate(el=>[...el.querySelectorAll('button')].filter(b=>!b.hidden).every(b=>{const r=b.getBoundingClientRect(),p=el.getBoundingClientRect();return b.scrollHeight<=b.clientHeight+1&&b.scrollWidth<=b.clientWidth+1&&r.right<=p.right+1})); + assert.equal(layout,true,'Toolbar fits at '+width); + } + await page.evaluate(()=>document.querySelector('main').style.gridTemplateColumns=''); + const chevronCentered=await page.locator('#sharedStyleExpand').evaluate(el=>{const a=el.getBoundingClientRect(),b=el.querySelector('svg').getBoundingClientRect();return Math.abs((a.top+a.bottom-b.top-b.bottom)/2)<1}); + assert.equal(chevronCentered,true); + assert.equal(await page.locator('#videoGenerationControls').evaluate(el=>getComputedStyle(el).borderRadius),'13px'); + assert.equal(await page.locator('#genSteps').isVisible(),false); + assert.match(await page.locator('#modelPickerBtn').innerText(),/FastVideo/); + await page.getByRole('button',{name:'Use 5 seconds',exact:true}).click(); + assert.equal(await page.locator('#genFrames').inputValue(),'120'); + assert.equal(await page.locator('#modelCapabilityNotice').isVisible(),false); + await page.evaluate(()=>{sourceSelection={mediaId:'test',frame:'last',name:'Test clip'};renderSourceContext();}); + assert.match(await page.locator('#modelCapabilityNotice').innerText(),/FastVideo can’t use an opening frame/); + await page.screenshot({path:'/tmp/openmagia-fastvideo-capability.png'}); + await page.getByRole('button',{name:'Switch to H3',exact:true}).click(); + await page.waitForFunction(()=>engine.h3_backend==='h3-metal'); + assert.equal(await page.locator('#modelCapabilityNotice').isVisible(),false); + assert.equal(await page.locator('#genSteps').isVisible(),true); + await page.locator('#modelPickerBtn').click(); + await page.locator('#composerPickerList .pickerRow').filter({hasText:'H3MLX'}).click(); + await page.locator('#pickerApply').click(); + await page.waitForFunction(()=>engine.h3_backend==='h3mlx'); + assert.match(await page.locator('#modelPickerBtn').innerText(),/H3MLX/); + await page.locator('#genType').selectOption('image'); + assert.equal(await page.locator('#imageModel').count(),0); + assert.equal(await page.locator('#modelPickerBtn').isVisible(),true); + await page.locator('#modelPickerBtn').click();assert.equal(await page.locator('#composerPickerList .pickerRow').filter({hasText:'FastVideo'}).count(),0);assert.equal(await page.locator('#composerPickerList .pickerRow').filter({hasText:'MiniMax H3 Images'}).isDisabled(),!await page.evaluate(()=>engine.h3_image.ready));await page.locator('#composerPickerList .pickerRow').filter({hasText:'Qwen-Image-2.1-Turbo'}).click();await page.locator('#pickerApply').click();await page.waitForFunction(()=>engine.image_model==='qwen-image'); + await page.locator('#sharedStyleExpand').click(); + assert.equal(await page.locator('#sharedStyleBody').isVisible(),true); + await page.locator('#genStyle').fill('Warm natural light'); + await page.locator('#sharedStyleEnabled').check(); + await page.locator('#sharedStyleEnabled').uncheck(); + await page.locator('#sharedStyleExpand').click(); + assert.equal(await page.locator('#sharedStyleBody').isVisible(),false); + assert.equal(await page.locator('#genStyle').inputValue(),'Warm natural light'); + await page.screenshot({path:'/tmp/openmagia-image-composer.png'}); + await page.locator('#genType').selectOption('storyboard'); + assert.equal(await page.locator('#genBtn').isVisible(),false); + await page.locator('#openStoryboardBtn').click(); + assert.equal(await page.locator('#storyboardStyleBody').isVisible(),false); + await page.locator('#storyboardStyleExpand').click(); + assert.equal(await page.locator('#storyboardStyleBody').isVisible(),true); + await page.screenshot({path:'/tmp/openmagia-storyboard-style.png'}); + await page.locator('#storyboardClose').click(); + await page.evaluate(()=>setHubView('settings')); + await page.locator('[data-model-pane=installed] .modelGroup').first().waitFor(); + const groups=await page.locator('[data-model-pane=installed] .modelGroup > h3').allTextContents(); + assert.deepEqual(groups.slice(0,2),['Video','Image']); + if(!await page.evaluate(()=>engine.h3_image.present))assert.equal(await page.locator('[data-model-pane=installed]').getByText('MiniMax H3 Images',{exact:true}).count(),0); + await page.getByRole('button',{name:'Available',exact:true}).click(); + assert.match(await page.locator('#settingsBody').innerText(),/FastVideo/); + await page.screenshot({path:'/tmp/openmagia-fastvideo-settings.png'}); + assert.deepEqual(errors,[]); + await browser.close();console.log('FastVideo capability messages, model switch and Settings passed.'); +})().catch(e=>{console.error(e);process.exit(1);}); diff --git a/tests/qwen-image-browser.cjs b/tests/qwen-image-browser.cjs index 3c5f306..5764b36 100644 --- a/tests/qwen-image-browser.cjs +++ b/tests/qwen-image-browser.cjs @@ -1,7 +1,7 @@ const BASE=process.env.OPENMAGIA_TEST_URL||'http://127.0.0.1:8732'; const {chromium}=require(process.env.PLAYWRIGHT_MODULE || 'playwright'); const fs=require('fs'); -(async()=>{const b=await chromium.launch({headless:true});const p=await b.newPage({viewport:{width:1440,height:1000}});p.on('pageerror',e=>console.log('PAGE ERROR',e.message));await p.goto(BASE);await p.waitForTimeout(1000);await p.evaluate(()=>setHubView('editor'));await p.locator('[data-inspector-tab=generate]').click();await p.locator('#genType').selectOption('image');await p.locator('#imageModel').selectOption('qwen-image');await p.locator('#genResolution').selectOption('preview'); +(async()=>{const b=await chromium.launch({headless:true});const p=await b.newPage({viewport:{width:1440,height:1000}});p.on('pageerror',e=>console.log('PAGE ERROR',e.message));await p.goto(BASE);await p.waitForTimeout(1000);await p.evaluate(()=>setHubView('editor'));await p.locator('[data-inspector-tab=generate]').click();await p.locator('#genType').selectOption('image');await p.locator('#modelPickerBtn').click();await p.locator('#composerPickerList .pickerRow').filter({hasText:'Qwen-Image-2.1-Turbo'}).click();await p.locator('#pickerApply').click();await p.waitForFunction(()=>engine.image_model==='qwen-image');await p.locator('#genResolution').selectOption('preview'); while(!(await (await p.request.get(BASE+'/api/state')).json()).engine.qwen_image.ready)await new Promise(r=>setTimeout(r,5000)); await p.locator('#genPrompt').fill('A small red ceramic teapot on a white table, studio product photograph, soft shadows, no writing.');const before=await(await p.request.get(BASE+'/api/state')).json();const existing=new Set(before.scenes.map(s=>s.id));const started=Date.now();await p.locator('#genBtn').click();let sc; for(let i=0;i<240;i++){const s=await(await p.request.get(BASE+'/api/state')).json();sc=s.scenes.find(x=>x.image_model==='qwen-image'&&!existing.has(x.id));if(sc&&['ready','error'].includes(sc.status))break;await new Promise(r=>setTimeout(r,5000));} diff --git a/tests/test_fast_video.py b/tests/test_fast_video.py new file mode 100644 index 0000000..71f155d --- /dev/null +++ b/tests/test_fast_video.py @@ -0,0 +1,152 @@ +import json +from pathlib import Path +import tempfile +import unittest +from unittest import mock + +import fast_video +import server + + +class FastVideoTests(unittest.TestCase): + def test_fixed_schedule_records_temporal_padding(self): + params = fast_video.generation_params({'frames':120, 'steps':50, 'width':512, 'seed':9}) + self.assertEqual((params['steps'], params['frames'], params['requested_frames']), (8,124,120)) + self.assertEqual(fast_video.generation_params(params), params) + self.assertEqual(params['seed'],9) + + def test_progress_uses_the_eight_forward_schedule(self): + parsed = server.parse_h3_progress_line('INFO H3 denoise step 3/8 (sigma_video=0.9) in 14.0s') + self.assertEqual(parsed, {'phase':'denoising','completed':3,'total':8}) + + def test_runtime_lock_excludes_unused_training_and_web_servers(self): + lock = (fast_video.ROOT / 'requirements-fastvideo.lock').read_text().lower() + for package in ('torch==', 'gradio==', 'accelerate==', 'starlette=='): + self.assertNotIn(package, lock) + self.assertIn('--hash=sha256:', lock) + + def test_unsupported_duration_is_explicit(self): + for frames in (56, 119, 363): + with self.assertRaisesRegex(ValueError, '5–15 seconds'): + fast_video.generation_params({'frames':frames}) + + def test_command_keeps_prompt_out_of_shell_arguments(self): + prompt = 'wave; $(touch /tmp/should-not-exist) `whoami`' + with mock.patch.object(fast_video, 'state', return_value={'ready':True}): + cmd, request = fast_video.command(prompt, '/tmp/out file.mp4', {'frames':122}) + self.assertNotIn(prompt, cmd) + self.assertEqual(request['prompt'], prompt) + self.assertEqual(request['output'], '/tmp/out file.mp4') + + def test_offline_worker_and_all_caches_are_managed(self): + env = fast_video.environment(offline=True) + self.assertEqual(env['HF_HUB_OFFLINE'],'1') + self.assertEqual(env['TRANSFORMERS_OFFLINE'],'1') + self.assertNotIn('PYTHONPATH',env) + for key in ('HF_HOME','XDG_CACHE_HOME','UV_CACHE_DIR','UV_PYTHON_INSTALL_DIR'): + self.assertTrue(Path(env[key]).is_relative_to(fast_video.HOME)) + + def test_partial_install_is_not_ready(self): + with tempfile.TemporaryDirectory() as td: + root = Path(td).resolve(); home = root / 'addons/fastvideo'; home.mkdir(parents=True) + (home / 'installed.json').write_text(json.dumps({'revision':fast_video.REVISION})) + with mock.patch.object(fast_video,'ROOT',root), mock.patch.object(fast_video,'HOME',home): + self.assertFalse(fast_video.state()['ready']) + + def test_incomplete_owned_download_remains_visible_for_removal(self): + with tempfile.TemporaryDirectory() as td: + root=Path(td).resolve(); home=root / 'addons/fastvideo'; home.mkdir(parents=True) + (home / '.openmagia-managed').touch() + with mock.patch.object(fast_video,'ROOT',root), mock.patch.object(fast_video,'HOME',home): + state=fast_video.state() + self.assertTrue(state['present']) + self.assertFalse(state['ready']) + + def test_connecting_base_h3_weights_switches_away_from_fastvideo(self): + with tempfile.TemporaryDirectory() as td: + root=Path(td).resolve(); native=root / 'h3'; native.touch() + with mock.patch.object(server,'H3_BIN',str(fast_video.PYTHON)), \ + mock.patch.object(server,'H3_MODEL','original-model'), \ + mock.patch.object(server,'_h3_model_valid',return_value=True), \ + mock.patch.object(server,'DEFAULTS',dict(server.DEFAULTS,h3_bin=str(native))), \ + mock.patch.object(server,'MODEL_SOURCE_FILE',root / 'sources.json'), \ + mock.patch.object(server,'_saved_model_sources',{}), \ + mock.patch.object(server,'active_job',None), mock.patch.object(server,'queue',[]): + server.select_model_source('h3',path=str(root / 'weights'),role='video_generation') + self.assertEqual(server.H3_BIN,str(native)) + self.assertEqual(server.H3_MODEL,str(root / 'weights')) + + def test_symlink_install_is_rejected(self): + with tempfile.TemporaryDirectory() as td: + root = Path(td).resolve(); outside = root / 'outside'; outside.mkdir() + home = root / 'addons/fastvideo'; home.parent.mkdir(); home.symlink_to(outside) + with mock.patch.object(fast_video,'ROOT',root), mock.patch.object(fast_video,'HOME',home): + with self.assertRaisesRegex(ValueError,'symlink'): + fast_video.managed_home() + self.assertFalse(fast_video.state()['ready']) + + def test_selecting_fastvideo_preserves_weights_and_venv_path(self): + with tempfile.TemporaryDirectory() as td: + root = Path(td).resolve(); python = root / 'runtime/bin/python'; python.parent.mkdir(parents=True) + python.symlink_to('/usr/bin/python3') + with mock.patch.object(server.fast_video,'PYTHON',python), \ + mock.patch.object(server.fast_video,'state',return_value={'ready':True}), \ + mock.patch.object(server,'H3_BIN',server.H3_BIN), \ + mock.patch.object(server,'MODEL_SOURCE_FILE',root / 'sources.json'), \ + mock.patch.object(server,'_saved_model_sources',{}), \ + mock.patch.object(server,'active_job',None), mock.patch.object(server,'queue',[]): + weights = server.H3_MODEL + server.select_model_source('h3_backend', model_id='fastvideo', role='video_generation') + self.assertEqual(server.H3_BIN,str(python)) + self.assertTrue(server.using_fastvideo()) + self.assertEqual(server.H3_MODEL,weights) + + def test_switching_during_generation_is_rejected(self): + with mock.patch.object(server,'active_job','running-scene'): + with self.assertRaisesRegex(ValueError,'finish'): + server.select_model_source('h3_backend',model_id='fastvideo') + + def test_uninstall_removes_only_its_receipted_tree_and_falls_back(self): + with tempfile.TemporaryDirectory() as td: + root = Path(td).resolve(); home=root / 'addons/fastvideo'; home.mkdir(parents=True) + sentinel = root / 'models/h3.safetensors'; sentinel.parent.mkdir(); sentinel.write_bytes(b'keep') + registry = root / 'registry.json' + registry.write_text(json.dumps({'installations':[{'id':'fv','backend_id':'fastvideo', + 'path':str(home),'managed':True,'receipt':[str(home)]}]})) + with mock.patch.object(fast_video,'ROOT',root), mock.patch.object(fast_video,'HOME',home), \ + mock.patch.object(server,'MODEL_REGISTRY_FILE',registry), \ + mock.patch.object(server,'MODEL_SOURCE_FILE',root / 'sources.json'), \ + mock.patch.object(server,'H3_BIN',str(fast_video.PYTHON)), \ + mock.patch.object(server,'_saved_model_sources',{}), \ + mock.patch.object(server,'active_job',None), mock.patch.object(server,'queue',[]), \ + mock.patch.object(server,'model_installs',{}): + result=server.uninstall_managed_model('fv') + self.assertTrue(result['active_removed']) + self.assertEqual(server.H3_BIN,server.DEFAULTS['h3_bin']) + self.assertFalse(home.exists()) + self.assertEqual(sentinel.read_bytes(),b'keep') + self.assertEqual(json.loads(registry.read_text())['installations'],[]) + + def test_forged_uninstall_receipt_cannot_remove_outside_tree(self): + with tempfile.TemporaryDirectory() as td: + root=Path(td).resolve(); outside=root / 'keep'; outside.mkdir() + registry=root / 'registry.json' + registry.write_text(json.dumps({'installations':[{'id':'fv','backend_id':'fastvideo', + 'path':str(outside),'managed':True,'receipt':[str(outside)]}]})) + with mock.patch.object(server,'MODEL_REGISTRY_FILE',registry), \ + mock.patch.object(server,'active_job',None), mock.patch.object(server,'queue',[]), \ + mock.patch.object(server,'model_installs',{}): + with self.assertRaisesRegex(ValueError,'safe managed'): + server.uninstall_managed_model('fv') + self.assertTrue(outside.exists()) + + def test_uninstall_during_install_is_rejected(self): + with mock.patch.object(server,'_load_model_registry',return_value={'installations':[{'id':'fv','backend_id':'fastvideo'}]}), \ + mock.patch.object(server,'active_job',None), mock.patch.object(server,'queue',[]), \ + mock.patch.object(server,'model_installs',{'fastvideo':{'status':'running'}}): + with self.assertRaisesRegex(ValueError,'finish'): + server.uninstall_managed_model('fv') + + +if __name__ == '__main__': + unittest.main() diff --git a/tests/test_generation_queue.py b/tests/test_generation_queue.py index d884c9e..7ce273c 100644 --- a/tests/test_generation_queue.py +++ b/tests/test_generation_queue.py @@ -7,6 +7,30 @@ class GenerationQueueTests(unittest.TestCase): + def test_fastvideo_selection_uses_native_h3_for_character_sheet(self): + sheet = {"id": "ruby", "references": [{"mediaId": "portrait"}]} + project = {"slug": "test", "sheets": [sheet], + "media": [{"id": "portrait", "kind": "image", "src": "portrait.png"}]} + with tempfile.TemporaryDirectory() as folder: + root = Path(folder) + native = root / "h3" + native.touch(mode=0o755) + process = mock.Mock(stderr=[]) + process.wait.return_value = 1 + with mock.patch.object(server, "H3_BIN", str(server.fast_video.PYTHON)), \ + mock.patch.dict(server.DEFAULTS, {"h3_bin": str(native)}), \ + mock.patch.object(server, "load_project_slug", return_value=project), \ + mock.patch.object(server, "save_project"), \ + mock.patch.object(server, "proj_dir", return_value=root), \ + mock.patch.object(server, "abs_media", return_value=root / "portrait.png"), \ + mock.patch.object(server, "pump_sheet_queue"), \ + mock.patch.object(server.subprocess, "Popen", return_value=process) as spawn: + server.run_sheet_job("ruby", project) + command = spawn.call_args.args[0] + self.assertEqual(str(native.resolve()), command[0]) + self.assertEqual(str(native.resolve().parent), spawn.call_args.kwargs["cwd"]) + self.assertEqual(str(root / "portrait.png"), command[command.index("--ref-image") + 1]) + def test_sheet_completion_during_recovery_cannot_be_resurrected(self): import copy persisted = {"slug": "test", "scenes": [], "media": [], diff --git a/tests/test_h3_image.py b/tests/test_h3_image.py new file mode 100644 index 0000000..895d962 --- /dev/null +++ b/tests/test_h3_image.py @@ -0,0 +1,42 @@ +import json +import tempfile +import unittest +from pathlib import Path +from unittest.mock import patch + +import h3_image +import server + + +class H3ImageTests(unittest.TestCase): + def test_image_selection_requires_install_and_persists_independently(self): + with tempfile.TemporaryDirectory() as temp: + settings = Path(temp) / "model-sources.json" + with patch.object(server, "MODEL_SOURCE_FILE", settings), patch.object( + server, "_saved_model_sources", {"h3_bin": "/video/engine"} + ), patch.object(h3_image, "state", return_value={"ready": False}) as state: + with self.assertRaises(ValueError): + server.select_model_source("image_backend", model_id="h3-image", role="image_generation") + state.return_value = {"ready": True} + server.select_model_source("image_backend", model_id="h3-image", role="image_generation") + self.assertEqual(json.loads(settings.read_text()), { + "h3_bin": "/video/engine", "image_model": "h3-image", + }) + self.assertEqual(server.active_image_model(), "h3-image") + state.return_value = {"ready": False} + self.assertEqual(server.active_image_model(), "h3") + + def test_render_contract_preserves_order_and_uses_native_schedule(self): + params = server.clamp_generation_params({ + "image_model": "h3-image", "width": 4097, "height": 2304, + "seed": 7, "steps": 30, "frames": 56, + }, "image") + self.assertEqual((params["width"], params["height"], params["steps"], params["frames"]), + (4096, 2304, 6, 1)) + cmd = h3_image.command({ + **params, "prompt": "- Edit ", "references": ["/a.png", "/b.png"], + "output": "/out.png", + }) + self.assertIn("--prompt=- Edit ", cmd) + self.assertEqual(cmd[-4:], ["--reference", "/a.png", "--reference", "/b.png"]) + self.assertNotIn("--steps", cmd) diff --git a/tests/test_model_management.py b/tests/test_model_management.py index bbdc7c9..9cc2b64 100644 --- a/tests/test_model_management.py +++ b/tests/test_model_management.py @@ -43,6 +43,7 @@ def test_empty_registry_does_not_mark_recommendation_installed(self): mock.patch.object(server, "H3MLX_BIN", Path(td) / "missing-h3mlx"), \ mock.patch.object(server, "FORMATTER_MODEL", str(Path(td) / "missing-formatter.gguf")), \ mock.patch.object(server.qwen_image, "state", return_value={"ready": False}), \ + mock.patch.object(server.fast_video, "state", return_value={"ready": False}), \ mock.patch.object(server, "yue_local_runtime", return_value={ "installed": False, "present": False, "ready": False, "device": "", "reason": "not installed", @@ -55,10 +56,10 @@ def test_empty_registry_does_not_mark_recommendation_installed(self): self.assertTrue(next(item for item in state["catalog"] if item["recommended"])["installed"] is False) def test_only_integrated_backend_is_advertised_as_installable(self): - self.assertEqual([item["id"] for item in server.MODEL_BACKENDS], ["h3-metal", "h3mlx", "yue2", "qwen-image"]) + self.assertEqual([item["id"] for item in server.MODEL_BACKENDS], ["h3-metal", "h3mlx", "fastvideo", "yue2", "h3-image", "qwen-image"]) # Every advertised backend states which medium it actually produces, and # nothing is offered as installable without an execution path behind it. - self.assertEqual([item.get("media") for item in server.MODEL_BACKENDS], ["video", "video", "music", "image"]) + self.assertEqual([item.get("media") for item in server.MODEL_BACKENDS], ["video", "video", "video", "music", "image", "image"]) self.assertTrue(all(item.get("install_component") for item in server.MODEL_BACKENDS)) self.assertEqual(server.MODEL_BACKENDS[0]["install_component"], "h3") self.assertEqual(server.MODEL_BACKENDS[1]["install_component"], "h3mlx") diff --git a/tests/test_music_generation.py b/tests/test_music_generation.py index 3aec20f..2dcad67 100644 --- a/tests/test_music_generation.py +++ b/tests/test_music_generation.py @@ -340,7 +340,7 @@ def test_unsupported_controls_are_listed_rather_than_built(self): def test_music_is_installable_from_the_shared_models_endpoint(self): source = Path(server.__file__).read_text(encoding="utf-8") - self.assertIn('(\"h3\", \"h3mlx\", \"formatter\", \"runtime\", \"yue\", \"qwen-image\")', source) + self.assertIn('(\"h3\", \"h3mlx\", \"formatter\", \"runtime\", \"yue\", \"qwen-image\", \"fastvideo\", \"h3-image\")', source) def test_generate_and_cast_are_sibling_panels(self): html = (Path(server.__file__).parent / "index.html").read_text(encoding="utf-8") diff --git a/tests/test_nle_timeline.py b/tests/test_nle_timeline.py index e15cfae..c48a5a2 100644 --- a/tests/test_nle_timeline.py +++ b/tests/test_nle_timeline.py @@ -689,10 +689,10 @@ def test_scene_can_explicitly_ignore_saved_project_style(self): self.assertNotIn("PROJECT_STYLE_SHOULD_NOT_LEAK", prompt) self.assertNotIn("LEGACY_STYLE_SHOULD_NOT_LEAK", prompt) - def test_image_generation_uses_exact_five_frame_minimum(self): + def test_image_generation_uses_decoder_frame_minimum(self): params = server.clamp_generation_params({"width": 768, "height": 768, "frames": 56, "steps": 30, "layers": 50, "reuse": 1}, "image") - self.assertEqual(params["frames"], 5) + self.assertEqual(params["frames"], 22) self.assertEqual(server.next_image_name({"scenes": [{"name": "Image 1"}, {"name": "Scene 1"}]}), "Image 2") def test_generation_clamps_to_h3_minimum_denoising_steps(self): diff --git a/tests/test_prompt_composer_ui.py b/tests/test_prompt_composer_ui.py index 6fd4518..7e68370 100644 --- a/tests/test_prompt_composer_ui.py +++ b/tests/test_prompt_composer_ui.py @@ -8,13 +8,14 @@ class PromptComposerUiTests(unittest.TestCase): def test_shared_style_is_collapsed_and_distinct_from_scene_prompt(self): html = (ROOT / "index.html").read_text(encoding="utf-8") - self.assertIn('
', html) - self.assertIn('SHARED STYLE', html) + self.assertIn('
', html) + self.assertIn('id="sharedStyleEnabled"', html) + self.assertLess(html.index('id="genPrompt"'), html.index('id="sharedStyleDetails"')) self.assertIn('PROMPT', html) self.assertNotIn('SCENE PROMPT', html) video_composer = html[html.index('id="videoGenerationControls"'):html.index('id="musicGenerationControls"')] self.assertNotIn('DIRECTION', video_composer) - self.assertIn('Applied to every scene', html) + self.assertIn('Apply to this project', html) self.assertNotIn('Refine shared style', html) self.assertNotIn('id="projectStyleToggle"', html) self.assertIn('id="sharedStyleBody" hidden', html) diff --git a/tests/test_qwen_image.py b/tests/test_qwen_image.py index 308de9c..b08cdb0 100644 --- a/tests/test_qwen_image.py +++ b/tests/test_qwen_image.py @@ -40,10 +40,10 @@ def test_qwen_dimensions_and_schedule_survive_worker_normalization(self): self.assertEqual(params,server.clamp_generation_params(params,'image')) def test_failed_qwen_job_marks_media_and_releases_queue(self): - project={'slug':'test','scenes':[{'id':'q','prompt':'test','params':{'width':512,'height':512}}], 'media':[{'scene_id':'q'}]} + project={'slug':'test','scenes':[{'id':'q','image_model':'qwen-image','prompt':'test','params':{'width':512,'height':512}}], 'media':[{'scene_id':'q'}]} with tempfile.TemporaryDirectory() as temp, mock.patch.object(server,'proj_dir',return_value=Path(temp)), mock.patch.object(server,'scene_all_references',side_effect=ValueError('missing image')), mock.patch.object(server,'load_project_slug',return_value=project), mock.patch.object(server,'save_project'), mock.patch.object(server,'pump_queue') as pump: server.active_job='q' - server.run_qwen_image_job('q',project) + server.run_dedicated_image_job('q',project) self.assertIsNone(server.active_job) self.assertEqual(project['media'][0]['status'],'error') self.assertIn('missing image',project['scenes'][0]['error'])