From ff69a75f7288fc36a8551dcfe3e4b4ed8df7da68 Mon Sep 17 00:00:00 2001 From: Mikei386 <44135113+Mikei386@users.noreply.github.com> Date: Tue, 6 Oct 2026 18:41:57 +0200 Subject: [PATCH] Add Seed-VC singing conversion runtime and studio --- BACKUP.md | 5 + app.js | 1 + backup.py | 28 +++-- catalog.py | 2 +- deploy/Dockerfile | 4 +- deploy/NATIVE_INSTALL_REQUIREMENTS.md | 6 ++ deploy/docker_backup.py | 23 ++-- deploy/install.py | 2 + deploy/prepare_seed_vc.py | 50 +++++++++ deploy/scheduled_backup.py | 2 +- deploy/seed-vc-requirements.lock | 144 ++++++++++++++++++++++++++ deploy/seed-vc-web/Dockerfile | 6 ++ deploy/seed-vc-web/README.md | 77 ++++++++++++++ deploy/seed-vc-web/native_ui.py | 92 ++++++++++++++++ deploy/seed-vc-web/proxy.py | 24 +++++ deploy/setup_docker_helper.py | 1 + docker-ui.js | 1 + docs/CURRENT_SYSTEM.md | 9 ++ endpoint.py | 3 +- execution_setup.py | 11 ++ index.html | 2 +- profiles.py | 4 + seed-vc-ui.js | 10 ++ seed_vc.py | 45 ++++++++ seed_vc_runtime.py | 74 +++++++++++++ seed_vc_sources.json | 74 +++++++++++++ server.py | 26 ++++- studio.js | 5 +- test_backup.py | 8 ++ test_seed_vc.py | 43 ++++++++ 30 files changed, 754 insertions(+), 28 deletions(-) create mode 100644 deploy/prepare_seed_vc.py create mode 100644 deploy/seed-vc-requirements.lock create mode 100644 deploy/seed-vc-web/Dockerfile create mode 100644 deploy/seed-vc-web/README.md create mode 100644 deploy/seed-vc-web/native_ui.py create mode 100644 deploy/seed-vc-web/proxy.py create mode 100644 seed-vc-ui.js create mode 100644 seed_vc.py create mode 100644 seed_vc_runtime.py create mode 100644 seed_vc_sources.json create mode 100644 test_seed_vc.py diff --git a/BACKUP.md b/BACKUP.md index af993dc..e672e36 100644 --- a/BACKUP.md +++ b/BACKUP.md @@ -73,3 +73,8 @@ Automatische Tests decken Verschlüsselung, Manipulation, Dekompressionsgrenzen, Der zweimal tägliche Host-Zeitplan sichert das bestehende `.adbackup`-Format und zusätzlich die privaten Nutzdaten verschlüsselt. Zeiten, Aufbewahrung, Schlüsselkopie, Migration und Wiederherstellung: [Automatische Sicherung](docs/SCHEDULED_BACKUP.md). + +Seed-VC Gesang: `seed_vc-data/settings.json`, Modell-/Profilmetadaten und das +geprüfte Laufzeit-/Proxy-Rezept werden im Konfigurationsbackup erfasst. Eigene +Referenzen und WAV-Ergebnisse unter `seed_vc-data` liegen in der separaten +verschlüsselten Nutzdatensicherung. Details: [Seed-VC](deploy/seed-vc-web/README.md). diff --git a/app.js b/app.js index 6e1a3cf..2d9243d 100644 --- a/app.js +++ b/app.js @@ -25,6 +25,7 @@ function appearancePage(){ } async function refresh(){if(refreshing)return;refreshing=true;const page=location.hash.slice(1)||'dashboard';document.querySelectorAll('nav a').forEach(a=>a.classList.toggle('active',a.hash==='#'+page));try{error.textContent='';let html; if(['separator-runtime','separator-test','separation'].includes(page)){SeparatorUI.render(page!=='separator-runtime');return;} +if(page==='seed-vc-runtime'){SeedVCUI.render();return;} if(page==='xvc-runtime'){XVCUI.render();return;} if(page==='applio-runtime'){ApplioUI.render();return;} if(page==='acestep-runtime'){AceStepUI.render();return;} diff --git a/backup.py b/backup.py index 44e32ad..ae5a121 100644 --- a/backup.py +++ b/backup.py @@ -7,7 +7,7 @@ from auth import atomic_write,validate_record from backup_codec import seal,open_backup from catalog import repo_id,file_role,KINDS from profiles import SCHEMAS,CHAT_GPU_DEFAULTS,chat_parameters,FLOAT_PARAMETERS,ACE_COMPONENTS -SETTINGS=('xvc-data/settings.json','applio-data/settings.json','separator-profiles.json','profiles.json','endpoint.json','audio-policy.json','video/comfy-selection.json','models/huggingface.json','video/comfy-client-token','video/original-work/settings.json') +SETTINGS=('seed_vc-data/settings.json','xvc-data/settings.json','applio-data/settings.json','separator-profiles.json','profiles.json','endpoint.json','audio-policy.json','video/comfy-selection.json','models/huggingface.json','video/comfy-client-token','video/original-work/settings.json') MAX_HISTORY=40*1024**2 VERSION=1 # Exact byte hash verified against official Hub metadata, not a filename heuristic. @@ -36,7 +36,7 @@ def validate(doc): repo_id(source['repo']);sf=source['file'] if not isinstance(source['revision'],str) or not re.fullmatch('[a-f0-9]{40}',source['revision']) or not isinstance(sf,str) or not sf or len(sf)>1024 or sf.startswith('/') or '..' in PurePosixPath(sf).parts or '\\' in sf or any(ord(c)<32 for c in sf):raise ValueError('Ungültige Ersatzquelle.') metadata=m.get('runtime_metadata') - if metadata is not None and metadata not in ({'architecture':'rvc'},{'architecture':'xvc'}):raise ValueError('Ungültige Stimm-Modellmetadaten.') + if metadata is not None and metadata not in ({'architecture':'rvc'},{'architecture':'xvc'},{'architecture':'seed_vc'}):raise ValueError('Ungültige Stimm-Modellmetadaten.') ids.add(m['id']) pids=set();names=set();api_names=set() for p in profiles: @@ -97,6 +97,9 @@ def validate(doc): if 'xvc-data/settings.json' in settings: v=settings['xvc-data/settings.json'] if not isinstance(v,dict) or set(v)!={'device'} or v['device'] not in ('3060','5080'):raise ValueError('Ungültige X-VC-GPU.') + if 'seed_vc-data/settings.json' in settings: + v=settings['seed_vc-data/settings.json'] + if not isinstance(v,dict) or set(v)!={'device'} or v['device'] not in ('3060','5080'):raise ValueError('Ungültige Seed-VC-GPU.') if 'applio-data/settings.json' in settings: v=settings['applio-data/settings.json'] if not isinstance(v,dict) or set(v)!={'device'} or v['device'] not in ('3060','5080'):raise ValueError('Ungültige Applio-GPU.') @@ -105,7 +108,7 @@ def validate(doc): validate_profiles(settings['separator-profiles.json']) validate_record(doc.get('credentials')) runtimes=doc.get('runtimes') - if not isinstance(runtimes,dict) or set(runtimes)-{'llama','llama_builds','image','tts','enhancers','swarm_nodes','ltx_original','audio_cpp','separator','voxcpm','omnivoice','acestep','applio','xvc','music_remix'} or not {'llama','llama_builds','image','tts','enhancers','swarm_nodes'}<=set(runtimes):raise ValueError('Ungültiges Laufzeitrezept.') + if not isinstance(runtimes,dict) or set(runtimes)-{'llama','llama_builds','image','tts','enhancers','swarm_nodes','ltx_original','audio_cpp','separator','voxcpm','omnivoice','acestep','applio','xvc','seed_vc','music_remix'} or not {'llama','llama_builds','image','tts','enhancers','swarm_nodes'}<=set(runtimes):raise ValueError('Ungültiges Laufzeitrezept.') if 'separator' in runtimes: from separator_runtime import MODELS value=runtimes['separator'] @@ -115,6 +118,7 @@ def validate(doc): if value['sources']!={name:SOURCES[name] for name in value['models']}:raise ValueError('Audio-Separator-Quellen stimmen nicht mit dem geprüften Rezept überein.') if 'music_remix' in runtimes and type(runtimes['music_remix']) is not bool:raise ValueError('Ungültige Audio-Remix-Laufzeit.') if 'xvc' in runtimes and type(runtimes['xvc']) is not bool:raise ValueError('Ungültige X-VC-Laufzeit.') + if 'seed_vc' in runtimes and type(runtimes['seed_vc']) is not bool:raise ValueError('Ungültige Seed-VC-Laufzeit.') if 'applio' in runtimes and type(runtimes['applio']) is not bool:raise ValueError('Ungültige Applio-Laufzeit.') if 'acestep' in runtimes and type(runtimes['acestep']) is not bool:raise ValueError('Ungültige ACE-Step-Laufzeit.') if 'omnivoice' in runtimes and type(runtimes['omnivoice']) is not bool:raise ValueError('Ungültige OmniVoice-Laufzeit.') @@ -170,7 +174,7 @@ class Backup: models=[] for m in s.catalog.status()['entries']: item={k:m[k] for k in ('id','repo','revision','file','size','sha256','kind')} - if (architecture:=(m.get('runtime_metadata') or {}).get('architecture')) in ('rvc','xvc'):item['runtime_metadata']={'architecture':architecture} + if (architecture:=(m.get('runtime_metadata') or {}).get('architecture')) in ('rvc','xvc','seed_vc'):item['runtime_metadata']={'architecture':architecture} if m['repo'].startswith('local/'): item['source']='local';item['download_source']=m.get('download_source') or LOCAL_SOURCES.get(m['sha256']) elif m.get('download_source'):item['download_source']=copy.deepcopy(m['download_source']) @@ -198,6 +202,9 @@ class Backup: if getattr(s,'xvc_runtime',None): from xvc_runtime import RECIPE_HASH document['runtimes']['xvc']=s.xvc_runtime.status()['installed'];document['runtime_versions']['xvc']=dict(code=s.xvc_runtime.status()['revision'],assets=RECIPE_HASH) + if getattr(s,'seed_vc_runtime',None): + from seed_vc_runtime import RECIPE_HASH + document['runtimes']['seed_vc']=s.seed_vc_runtime.status()['installed'];document['runtime_versions']['seed_vc']=dict(code=s.seed_vc_runtime.status()['revision'],assets=RECIPE_HASH) if getattr(s,'applio_runtime',None): document['runtimes']['applio']=s.applio_runtime.status()['installed'];document['runtime_versions']['applio']=s.applio_runtime.status()['revision'] if (self.root/'applio-data/logs').exists():document['warnings'].append('Eigene Applio-Stimmen und Trainingsdaten separat sichern. Dieses Konfigurationsbackup enthält sie nicht; nach Restore erst den Applio-Datenbestand zurückspielen.') @@ -263,10 +270,13 @@ class Backup: if versions.get('xvc'): from xvc_runtime import REVISION as XVC_REVISION,RECIPE_HASH if versions['xvc']!=dict(code=XVC_REVISION,assets=RECIPE_HASH):blockers.append('Backup verlangt eine andere X-VC-Version oder Komponentenquelle.') + if versions.get('seed_vc'): + from seed_vc_runtime import REVISION as SEED_VC_REVISION,RECIPE_HASH + if versions['seed_vc']!=dict(code=SEED_VC_REVISION,assets=RECIPE_HASH):blockers.append('Backup verlangt eine andere Seed-VC-Version oder Komponentenquelle.') if versions.get('applio'): from applio_runtime import REVISION as APPLIO_REVISION if versions['applio']!=APPLIO_REVISION:blockers.append('Backup verlangt eine andere Applio-Version.') - if versions and {k:v for k,v in versions.items() if k not in ('ltx_original','audio_cpp','separator','voxcpm','omnivoice','acestep','applio','xvc','music_remix')}!=dict(image=dict(comfy=s.image_runtime.status()['comfy_revision'],gguf=s.image_runtime.status()['gguf_revision']),tts=s.tts_runtime.status()['revision']):blockers.append('Backup verlangt andere Bild-/TTS-Laufzeitversionen. Passende Deck-Version oder geprüftes Runtime-Upgrade verwenden.') + if versions and {k:v for k,v in versions.items() if k not in ('ltx_original','audio_cpp','separator','voxcpm','omnivoice','acestep','applio','xvc','seed_vc','music_remix')}!=dict(image=dict(comfy=s.image_runtime.status()['comfy_revision'],gguf=s.image_runtime.status()['gguf_revision']),tts=s.tts_runtime.status()['revision']):blockers.append('Backup verlangt andere Bild-/TTS-Laufzeitversionen. Passende Deck-Version oder geprüftes Runtime-Upgrade verwenden.') for c in doc['services']: if not c.get('registry') and not c.get('build_recipe'):warnings.append(c['name']+': Image nur lokal vorhanden; Registry-/Buildquelle fehlt.') ports=s.endpoint.allowed_ports @@ -293,8 +303,9 @@ class Backup: s=self.server if getattr(getattr(s,'remix',None),'active',False):raise ValueError('Audio-Remix-Analyse zuerst abschließen.') if getattr(getattr(s,'xvc',None),'active',False):raise ValueError('X-VC-Auftrag zuerst abschließen.') + if getattr(getattr(s,'seed_vc',None),'active',False):raise ValueError('Seed-VC-Auftrag zuerst abschließen.') if getattr(getattr(s,'applio',None),'active',False):raise ValueError('Applio-Auftrag zuerst abschließen.') - if s.catalog.pending or s.catalog.job and s.catalog.job['state']=='downloading' or s.runtime.busy or any((getattr(o,'job',None) or {}).get('state')=='running' for o in (s.image_runtime,s.tts_runtime,s.ltx_original_runtime,getattr(s,'audio_cpp_runtime',None),getattr(s,'acestep_runtime',None),getattr(s,'applio_runtime',None),getattr(s,'xvc_runtime',None),getattr(s,'music',None),getattr(s,'remix_runtime',None),getattr(s,'remix',None),getattr(s,'separator_runtime',None),getattr(s,'separator_tests',None),s.prompt_enhancer,s.auto_tests,s.chat_tests,s.image_tests,s.tts_tests,s.stt)):raise ValueError('Zuerst laufende Downloads, Builds und Tests abschließen oder abbrechen.') + if s.catalog.pending or s.catalog.job and s.catalog.job['state']=='downloading' or s.runtime.busy or any((getattr(o,'job',None) or {}).get('state')=='running' for o in (s.image_runtime,s.tts_runtime,s.ltx_original_runtime,getattr(s,'audio_cpp_runtime',None),getattr(s,'acestep_runtime',None),getattr(s,'applio_runtime',None),getattr(s,'xvc_runtime',None),getattr(s,'seed_vc_runtime',None),getattr(s,'music',None),getattr(s,'remix_runtime',None),getattr(s,'remix',None),getattr(s,'separator_runtime',None),getattr(s,'separator_tests',None),s.prompt_enhancer,s.auto_tests,s.chat_tests,s.image_tests,s.tts_tests,s.stt)):raise ValueError('Zuerst laufende Downloads, Builds und Tests abschließen oder abbrechen.') self.cancel.clear();self.job=dict(id=secrets.token_hex(16),state='running',phase='Wiederherstellung vorbereiten',completed=0,total=len(doc['models'])+len(data['services'])+5,items=[],started_at=time.time(),theme=doc.get('theme','deck')) self._save();threading.Thread(target=self._restore,args=(copy.deepcopy(doc),data['services'],data['restore_credentials']),daemon=True).start();self.plan=None return self.status() @@ -322,6 +333,8 @@ class Backup: self._phase('TTS-Laufzeit und Zusatzdateien installieren');s.tts_runtime.start();self._wait(s.tts_runtime.status) if r.get('xvc') and not s.xvc_runtime.status()['installed']: self._phase('X-VC-Laufzeit und geprüfte Zusatzgewichte installieren');s.xvc_runtime.start();self._wait(s.xvc_runtime.status) + if r.get('seed_vc') and not s.seed_vc_runtime.status()['installed']: + self._phase('Seed-VC-Laufzeit und geprüfte Zusatzgewichte installieren');s.seed_vc_runtime.start();self._wait(s.seed_vc_runtime.status) if r.get('applio') and not s.applio_runtime.status()['installed']: self._phase('Applio-Laufzeit und Basisgewichte installieren');s.applio_runtime.start();self._wait(s.applio_runtime.status) if r.get('acestep') and not s.acestep_runtime.status()['installed']: @@ -364,6 +377,7 @@ class Backup: # Recovery key stays on this server in a separate protected file, never in status responses. (rollback.with_suffix('.key')).write_text(key);rollback.with_suffix('.key').chmod(0o600) if getattr(s,'xvc',None):s.xvc.unload_idle() + if getattr(s,'seed_vc',None):s.seed_vc.unload_idle() if getattr(s,'applio',None):s.applio.unload_idle() s.endpoint.close();s.video.close();s.tts_tests.stop();s.stt.stop() until=time.monotonic()+30 @@ -462,6 +476,7 @@ class Backup: path=self.root/name;path.parent.mkdir(parents=True,exist_ok=True);path.write_text(value+'\n');path.chmod(0o600) else:atomic_write(self.root/name,value) if getattr(s,'xvc',None):s.xvc.settings=copy.deepcopy(doc['settings'].get('xvc-data/settings.json',{'device':'5080'})) + if getattr(s,'seed_vc',None):s.seed_vc.settings=copy.deepcopy(doc['settings'].get('seed_vc-data/settings.json',{'device':'5080'})) if getattr(s,'applio',None):s.applio.settings=copy.deepcopy(doc['settings'].get('applio-data/settings.json',{'device':'3060'})) with s.profiles.lock: from profiles import migrate_api_ids @@ -496,6 +511,7 @@ class Backup: if getattr(self.server,'omnivoice_runtime',None):self.server.omnivoice_runtime.stop() if getattr(self.server,'voxcpm_runtime',None):self.server.voxcpm_runtime.stop() if getattr(self.server,'xvc_runtime',None):self.server.xvc_runtime.stop() + if getattr(self.server,'seed_vc_runtime',None):self.server.seed_vc_runtime.stop() if getattr(self.server,'applio_runtime',None):self.server.applio_runtime.stop() if getattr(self.server,'acestep_runtime',None):self.server.acestep_runtime.stop() if getattr(self.server,'audio_cpp_runtime',None):self.server.audio_cpp_runtime.stop() diff --git a/catalog.py b/catalog.py index 46fe8e9..ab8495c 100644 --- a/catalog.py +++ b/catalog.py @@ -224,7 +224,7 @@ class Catalog: name=f['rfilename'];p=PurePosixPath(name) from acestep_models import ACE_REPO,ACE_BASE_REPO,ACE_FILES,ACE_BASE_FILES recipe_file=(repo==ACE_REPO and name in ACE_FILES) or (repo==ACE_BASE_REPO and name in ACE_BASE_FILES) or (repo=='k2-fsa/OmniVoice' and name=='chat_template.jinja') - allowed=recipe_file or p.suffix.lower() in ('.gguf','.safetensors','.json','.tiktoken') or (repo=='openbmb/VoxCPM2' and name=='audiovae.pth') or (repo=='chenxie95/X-VC' and name=='xvc.pt') + allowed=recipe_file or p.suffix.lower() in ('.gguf','.safetensors','.json','.tiktoken') or (repo=='openbmb/VoxCPM2' and name=='audiovae.pth') or (repo=='chenxie95/X-VC' and name=='xvc.pt') or (repo=='Plachta/Seed-VC' and name=='DiT_seed_v2_uvit_whisper_base_f0_44k_bigvgan_pruned_ft_ema_v2.pth') if p.is_absolute() or '..' in p.parts or not allowed:continue size=f.get('size',f.get('lfs',{}).get('size')) if not isinstance(size,int) or size<1:continue diff --git a/deploy/Dockerfile b/deploy/Dockerfile index 79232b6..d3bf0e1 100644 --- a/deploy/Dockerfile +++ b/deploy/Dockerfile @@ -17,10 +17,12 @@ COPY deploy/image-requirements.lock /app/deploy/image-requirements.lock COPY deploy/acestep-requirements.lock /app/deploy/acestep-requirements.lock COPY deploy/tts-requirements.lock /app/deploy/tts-requirements.lock COPY deploy/ltx-original-requirements.lock /app/deploy/ltx-original-requirements.lock -COPY cuda_overlay.py remix.py remix_runtime.py remix_worker.py remix_sources.json clearvoice_worker.py xvc.py xvc_runtime.py xvc_sources.json xvc-ui.js applio.py applio_runtime.py applio_worker.py applio-ui.js acestep_models.py acestep.py acestep_worker.py acestep_runtime.py acestep-ui.js embeddings.py voxcpm_test.py voxcpm_worker.py voxcpm_runtime.py separator_sources.json separator.py separator_runtime.py separator_worker.py music.py audio_cpp_runtime.py ltx_original_runtime.py ltx_original_entry.py video_original.py backup.py backup_codec.py audio_policy.py prompt_enhancer.py prompt_enhancer_worker.py api_compat.py responses_compat.py stt.py execution_setup.py tts_runtime.py tts_test.py tts_worker.py auto_test.py chat_test.py endpoint.py inference.py docker_support.py image_encoder_node.py image_runtime.py image_test.py image_upload.py profiles.py capacity.py server.py runtime.py video.py video_proxy.py video_comfy.py video_comfy_node.py video_comfy_proxy.py catalog.py hub_auth.py auth.py collect_hardware.py dashboard_data.py dashboard_history.py /app/ +COPY seed_vc.py seed_vc_runtime.py seed_vc_sources.json seed-vc-ui.js cuda_overlay.py remix.py remix_runtime.py remix_worker.py remix_sources.json clearvoice_worker.py xvc.py xvc_runtime.py xvc_sources.json xvc-ui.js applio.py applio_runtime.py applio_worker.py applio-ui.js acestep_models.py acestep.py acestep_worker.py acestep_runtime.py acestep-ui.js embeddings.py voxcpm_test.py voxcpm_worker.py voxcpm_runtime.py separator_sources.json separator.py separator_runtime.py separator_worker.py music.py audio_cpp_runtime.py ltx_original_runtime.py ltx_original_entry.py video_original.py backup.py backup_codec.py audio_policy.py prompt_enhancer.py prompt_enhancer_worker.py api_compat.py responses_compat.py stt.py execution_setup.py tts_runtime.py tts_test.py tts_worker.py auto_test.py chat_test.py endpoint.py inference.py docker_support.py image_encoder_node.py image_runtime.py image_test.py image_upload.py profiles.py capacity.py server.py runtime.py video.py video_proxy.py video_comfy.py video_comfy_node.py video_comfy_proxy.py catalog.py hub_auth.py auth.py collect_hardware.py dashboard_data.py dashboard_history.py /app/ COPY voice-ui.js voxcpm-ui.js separator-ui.js music-ui.js audio-cpp-ui.js ltx-original-ui.js backup-ui.js video-ui.js stt-ui.js tts-ui.js auto-test-ui.js chat-test-ui.js endpoint-ui.js docker-ui.js image-test-ui.js profiles-ui.js dashboard-ui.js index.html app.js studio.js runtime-ui.js catalog-ui.js style.css dashboard.css themes.css login.html login.js access-ui.js network-ui.js /app/ COPY deploy/docker_backup.py /app/deploy/docker_backup.py COPY deploy/xvc-requirements.lock /app/deploy/xvc-requirements.lock +COPY deploy/seed-vc-requirements.lock /app/deploy/seed-vc-requirements.lock +COPY deploy/seed-vc-web /app/deploy/seed-vc-web COPY deploy/xvc-web /app/deploy/xvc-web COPY deploy/applio-requirements.lock /app/deploy/applio-requirements.lock COPY deploy/applio-web /app/deploy/applio-web diff --git a/deploy/NATIVE_INSTALL_REQUIREMENTS.md b/deploy/NATIVE_INSTALL_REQUIREMENTS.md index 4eb7607..5febd3d 100644 --- a/deploy/NATIVE_INSTALL_REQUIREMENTS.md +++ b/deploy/NATIVE_INSTALL_REQUIREMENTS.md @@ -135,3 +135,9 @@ mit eigener Deck-UID/GID und optional `--allow-install`. Dadurch kann Docker sp über Einstellungen nachinstalliert werden. Der Helfer bleibt ein separater, root-eigener Dienst mit festem Aktionsumfang. Kein Docker-Socket im Webserver. Siehe `docs/DOCKER_SERVICES.md`; frischer Debian-Ende-zu-Ende-Test noch erforderlich. + +Seed-VC Gesang benötigt eine eigene Python-venv, CUDA-12.8-PyTorch, FFmpeg und +libsndfile; Installation und Inferenz sind native Deck-Aufgaben. Alle Modell- +und Zusatzgewichte haben feste Originalquellen/Prüfsummen. Der optionale +Container ist ausschließlich ein CPU-Proxy. Kein Bootstrap aus dem alten Router. +Siehe [Seed-VC-Rezept](seed-vc-web/README.md). GPU-/Hörabnahme steht noch aus. diff --git a/deploy/docker_backup.py b/deploy/docker_backup.py index 61f9de2..d3ff292 100644 --- a/deploy/docker_backup.py +++ b/deploy/docker_backup.py @@ -53,7 +53,7 @@ def export(manager): try:relative=str(Path(source).relative_to(deck)) except ValueError:pass mounts.append(dict(index=i,target=m['Destination'],read_only=not m['RW'],deck_path=relative,files=config_files(source,m['Destination']),was_file=Path(source).is_file())) - result.append(dict(name=row['name'],image=c['Image'],registry=registry,application=c.get('Labels',{}).get(APP,''),labels={k:v for k,v in (c.get('Labels') or {}).items() if k.startswith('io.athena-deck.')},env=c.get('Env') or [],entrypoint=c.get('Entrypoint'),cmd=c.get('Cmd'),uid=app_uid(row['id'],c.get('User') or ''),user=c.get('User') or '',workdir=c.get('WorkingDir') or '',network=h['NetworkMode'],ports=h.get('PortBindings') or {},restart=h.get('RestartPolicy',{}).get('Name') or 'no',memory=h.get('Memory') or 0,nanocpus=h.get('NanoCpus') or 0,running=x['State']['Running'],mounts=mounts,build_recipe='swarm-ui' if row['name']=='athena-swarm-ui' else 'ladypoly' if row['name']=='athena-ladypoly' else 'separator-web' if row['name']=='athena-separator-web' else 'xvc-web' if row['name']=='athena-xvc-web' else 'applio-web' if row['name']=='athena-applio-web' else 'acestep-web' if row['name']=='athena-acestep-web' else 'voice-web' if row['name'] in ('athena-voxcpm2-web','athena-omnivoice-web') else None,unsupported=bool(h.get('Privileged') or h.get('DeviceRequests') or h.get('Devices') or h.get('CapAdd')))) + result.append(dict(name=row['name'],image=c['Image'],registry=registry,application=c.get('Labels',{}).get(APP,''),labels={k:v for k,v in (c.get('Labels') or {}).items() if k.startswith('io.athena-deck.')},env=c.get('Env') or [],entrypoint=c.get('Entrypoint'),cmd=c.get('Cmd'),uid=app_uid(row['id'],c.get('User') or ''),user=c.get('User') or '',workdir=c.get('WorkingDir') or '',network=h['NetworkMode'],ports=h.get('PortBindings') or {},restart=h.get('RestartPolicy',{}).get('Name') or 'no',memory=h.get('Memory') or 0,nanocpus=h.get('NanoCpus') or 0,running=x['State']['Running'],mounts=mounts,build_recipe='swarm-ui' if row['name']=='athena-swarm-ui' else 'ladypoly' if row['name']=='athena-ladypoly' else 'separator-web' if row['name']=='athena-separator-web' else 'seed-vc-web' if row['name']=='athena-seed-vc-web' else 'xvc-web' if row['name']=='athena-xvc-web' else 'applio-web' if row['name']=='athena-applio-web' else 'acestep-web' if row['name']=='athena-acestep-web' else 'voice-web' if row['name'] in ('athena-voxcpm2-web','athena-omnivoice-web') else None,unsupported=bool(h.get('Privileged') or h.get('DeviceRequests') or h.get('Devices') or h.get('CapAdd')))) return {'services':result,'configured':bool(deck)} def validate(c): @@ -61,8 +61,8 @@ def validate(c): if any(c.get('labels',{}).get(k)!=v for k,v in LABELS.items()):raise ValueError('Nur ausdrücklich Deck zugeordnete Anwendungscontainer erlaubt.') if c.get('unsupported'):raise ValueError('GPU-/privilegierter Container benötigt manuelle Einrichtung.') if c.get('network') not in ('bridge','default','host'):raise ValueError('Benutzerdefiniertes Docker-Netzwerk benötigt manuelle Einrichtung.') - if c.get('network')=='host' and c['name'] not in ('athena-swarm-ui','ltx-deskweb','athena-ladypoly','athena-separator-web','athena-voxcpm2-web','athena-omnivoice-web','athena-acestep-web','athena-applio-web','athena-xvc-web'):raise ValueError('Host-Netzwerk nur für bekannte Deck-Oberflächen erlaubt.') - recipes={'xvc-web':('athena-xvc-web','athena-xvc-web:0.1.0-deck1'),'applio-web':('athena-applio-web','athena-applio-web:3.6.5-deck1'),'acestep-web':('athena-acestep-web','athena-acestep-web:1.0.0'),'separator-web':('athena-separator-web','athena-separator-web:0.1.0'),'swarm-ui':('athena-swarm-ui','athena-swarm-ui:de7b834'),'ladypoly':('athena-ladypoly','athena-ladypoly:3960afc-deck1')} + if c.get('network')=='host' and c['name'] not in ('athena-swarm-ui','ltx-deskweb','athena-ladypoly','athena-separator-web','athena-voxcpm2-web','athena-omnivoice-web','athena-acestep-web','athena-applio-web','athena-xvc-web','athena-seed-vc-web'):raise ValueError('Host-Netzwerk nur für bekannte Deck-Oberflächen erlaubt.') + recipes={'seed-vc-web':('athena-seed-vc-web','athena-seed-vc-web:0.1.0-deck1'),'xvc-web':('athena-xvc-web','athena-xvc-web:0.1.0-deck1'),'applio-web':('athena-applio-web','athena-applio-web:3.6.5-deck1'),'acestep-web':('athena-acestep-web','athena-acestep-web:1.0.0'),'separator-web':('athena-separator-web','athena-separator-web:0.1.0'),'swarm-ui':('athena-swarm-ui','athena-swarm-ui:de7b834'),'ladypoly':('athena-ladypoly','athena-ladypoly:3960afc-deck1')} if c.get('build_recipe')=='voice-web' and c['name'] in ('athena-voxcpm2-web','athena-omnivoice-web') and c.get('image') in ('athena-voice-web:0.2.1-deck1','athena-voice-web:0.2.1-deck2'):pass elif c.get('build_recipe') is not None and recipes.get(c['build_recipe'])!=(c['name'],c.get('image')):raise ValueError('Unbekanntes Build-Rezept.') ref=c.get('registry') or c.get('image','') @@ -94,13 +94,14 @@ def validate(c): if m.get('index')!=i or type(m.get('read_only')) is not bool or type(m.get('was_file')) is not bool:raise ValueError('Ungültige Volume-Einstellung.') rel=m.get('deck_path') media={'video/original-work/remote-inputs/deskweb':('/data/inputs',False),'video/original-work/outputs':('/data/outputs',True)} + native_seed_vc=rel=='seed_vc-data/bridge-key' and c['name']=='athena-seed-vc-web' and target=='/run/secrets/seed-vc-bridge' and m['read_only'] and m['was_file'] native_xvc=rel=='xvc-data/bridge-key' and c['name']=='athena-xvc-web' and target=='/run/secrets/xvc-bridge' and m['read_only'] and m['was_file'] native_applio=rel=='applio-data/bridge-key' and c['name']=='athena-applio-web' and target=='/run/secrets/applio-bridge' and m['read_only'] and m['was_file'] native_media=rel in media and c['name']=='ltx-deskweb' and (target,m['read_only'])==media[rel] and not m['was_file'] - if rel is not None and not native_media and not native_applio and not native_xvc and (rel not in ('models','video/comfy-work/models','video/comfy-client-token') or not m['read_only']):raise ValueError('Deck-Volume nicht freigegeben; nur bekannte Modell-/Tokenpfade und LTX-Medienordner erlaubt.') + if rel is not None and not native_media and not native_applio and not native_xvc and not native_seed_vc and (rel not in ('models','video/comfy-work/models','video/comfy-client-token') or not m['read_only']):raise ValueError('Deck-Volume nicht freigegeben; nur bekannte Modell-/Tokenpfade und LTX-Medienordner erlaubt.') for name,data in m.get('files',{}).items(): allowed=('file','Settings.fds','Backends.fds') - if c['name'] in ('athena-ladypoly','athena-separator-web','athena-voxcpm2-web','athena-omnivoice-web','athena-acestep-web','athena-applio-web','athena-xvc-web') and m['target']=='/data':allowed+=('settings.json','deck-connection.json') + if c['name'] in ('athena-ladypoly','athena-separator-web','athena-voxcpm2-web','athena-omnivoice-web','athena-acestep-web','athena-applio-web','athena-xvc-web','athena-seed-vc-web') and m['target']=='/data':allowed+=('settings.json','deck-connection.json') if name not in allowed:raise ValueError('Unbekannte Konfigurationsdatei.') if not isinstance(data,str) or len(base64.b64decode(data,validate=True))>MAX_FILE:raise ValueError('Ungültige Konfigurationsdatei.') return c @@ -118,9 +119,9 @@ def restore(manager,c): # Never replace or restart an existing service during a restore. if x['Config']['Image'] not in (c['image'],c.get('registry')):raise ValueError('Vorhandener Container verwendet ein anderes Image; manuell prüfen.') return {'state':'reused','message':'Vorhandener markierter Container unverändert übernommen.'} - if c['name'] in ('athena-ladypoly','athena-separator-web','athena-voxcpm2-web','athena-omnivoice-web','athena-acestep-web','athena-applio-web','athena-xvc-web'): - with socket.socket() as probe:probe.bind(('127.0.0.1',{'athena-ladypoly':8127,'athena-separator-web':8128,'athena-voxcpm2-web':8129,'athena-omnivoice-web':8130,'athena-acestep-web':8131,'athena-applio-web':8132,'athena-xvc-web':8133}[c['name']])) - if c.get('build_recipe') in ('swarm-ui','ladypoly','separator-web','voice-web','acestep-web','applio-web','xvc-web'): + if c['name'] in ('athena-ladypoly','athena-separator-web','athena-voxcpm2-web','athena-omnivoice-web','athena-acestep-web','athena-applio-web','athena-xvc-web','athena-seed-vc-web'): + with socket.socket() as probe:probe.bind(('127.0.0.1',{'athena-ladypoly':8127,'athena-separator-web':8128,'athena-voxcpm2-web':8129,'athena-omnivoice-web':8130,'athena-acestep-web':8131,'athena-applio-web':8132,'athena-xvc-web':8133,'athena-seed-vc-web':8136}[c['name']])) + if c.get('build_recipe') in ('swarm-ui','ladypoly','separator-web','voice-web','acestep-web','applio-web','xvc-web','seed-vc-web'): source=Path(__file__).parent/c['build_recipe'] if not (source/'Dockerfile').is_file():raise ValueError('Gepinntes Swarm-Build-Rezept fehlt im Systemhelfer.') if c['build_recipe']=='voice-web': @@ -148,7 +149,7 @@ def restore(manager,c): if base.is_symlink():raise ValueError('Unsicheres Dienstverzeichnis.') base.mkdir(parents=True,exist_ok=True,mode=0o700) args=['create','--name',name,'--network',c['network'],'--restart',c['restart'],'--cap-drop','ALL','--security-opt','no-new-privileges:true','--pids-limit','256'] - if c['name'] in ('athena-ladypoly','athena-separator-web','athena-voxcpm2-web','athena-omnivoice-web','athena-acestep-web','athena-applio-web','athena-xvc-web'): + if c['name'] in ('athena-ladypoly','athena-separator-web','athena-voxcpm2-web','athena-omnivoice-web','athena-acestep-web','athena-applio-web','athena-xvc-web','athena-seed-vc-web'): args+=['--read-only','--tmpfs','/tmp:rw,noexec,nosuid,size='+('1g' if c['name']=='athena-separator-web' else '128m')+',uid=65534,gid=65534'] if c['memory']:args+=['--memory',str(c['memory'])] if c['nanocpus']:args+=['--cpus',str(c['nanocpus']/1e9)] @@ -164,10 +165,10 @@ def restore(manager,c): source=deck/m['deck_path'] if m['deck_path'] is not None else base/str(i) if source.is_symlink():raise ValueError('Unsicheres Volume-Verzeichnis.') if m['deck_path']: - if m['deck_path'] in ('video/comfy-client-token','applio-data/bridge-key','xvc-data/bridge-key') and not source.exists(): + if m['deck_path'] in ('video/comfy-client-token','applio-data/bridge-key','xvc-data/bridge-key','seed_vc-data/bridge-key') and not source.exists(): import secrets source.parent.mkdir(parents=True,exist_ok=True);source.write_text(secrets.token_urlsafe(48)+'\n');source.chmod(0o600);os.chown(source,65534,65534) - elif m['deck_path'] not in ('video/comfy-client-token','applio-data/bridge-key','xvc-data/bridge-key'): + elif m['deck_path'] not in ('video/comfy-client-token','applio-data/bridge-key','xvc-data/bridge-key','seed_vc-data/bridge-key'): source.mkdir(parents=True,exist_ok=True) if m['deck_path'].startswith('video/original-work/'): is_input=m['deck_path'].endswith('/deskweb');os.chown(source,1000 if is_input else 65534,65534);source.chmod(0o2770 if is_input else 0o2750) diff --git a/deploy/install.py b/deploy/install.py index a7c13af..4ca21aa 100644 --- a/deploy/install.py +++ b/deploy/install.py @@ -18,6 +18,8 @@ LABEL = 'de.casaderoll.athena-deck.standalone' FILES = ['assets/tts-presets/bundle.safetensors','assets/tts-presets/bundle.json','deploy/applio-requirements.lock','deploy/activate_applio.py','deploy/import_applio.py','deploy/backup_applio_data.py','applio.py','applio_runtime.py','applio_worker.py','applio-ui.js','deploy/activate_acestep.py','acestep_models.py','deploy/import_acestep.py','deploy/acestep-web/Dockerfile','deploy/acestep-web/app.py','deploy/acestep-web/index.html','acestep.py','acestep_worker.py','acestep_runtime.py','acestep-ui.js','deploy/acestep-requirements.lock','deploy/omnivoice-requirements.lock','omnivoice_runtime.py','omnivoice_worker.py','deploy/voice-web/Dockerfile','deploy/voice-web/base.Dockerfile','deploy/voice-web/bridge.py','deploy/patch_yue2_residency.py','embeddings.py','voxcpm_test.py','voxcpm_worker.py','voice-ui.js','voxcpm_runtime.py','voxcpm-ui.js','deploy/voxcpm-requirements.lock','network/native.py','deploy/setup_network_helper.py','separator_sources.json','deploy/separator-web/Dockerfile','deploy/separator-web/app.py','deploy/separator-web/index.html','separator.py','separator_runtime.py','separator_worker.py','separator-ui.js','deploy/ladypoly/Dockerfile','deploy/ladypoly/bridge.py','music.py','music-ui.js','audio_cpp_runtime.py','audio-cpp-ui.js','ltx_original_runtime.py','ltx_original_entry.py','video_original.py','ltx-original-ui.js','deploy/ltx-original-requirements.lock','backup.py','backup_codec.py','backup-ui.js','deploy/docker_backup.py','deploy/swarm-ui/Dockerfile','deploy/swarm-ui/patch-source.py','deploy/swarm-ui/proxy.py','deploy/swarm-ui/entrypoint.py','deploy/Dockerfile.app-update','video_comfy.py','video_comfy_node.py','video_comfy_proxy.py','prompt_enhancer.py','prompt_enhancer_worker.py','image_upload.py','audio_policy.py','deploy/tts-requirements.lock','stt.py','stt-ui.js','api_compat.py','responses_compat.py','execution_setup.py','tts_runtime.py','tts_test.py','tts_worker.py','tts-ui.js','auto_test.py','auto-test-ui.js','chat_test.py','chat-test-ui.js','endpoint.py','inference.py','endpoint-ui.js','docker_support.py','docker-ui.js','deploy/docker_helper.py','deploy/setup_docker_helper.py','image_encoder_node.py','image_runtime.py','image_test.py','image-test-ui.js','profiles.py','profiles-ui.js','capacity.py','runtime.py','runtime-ui.js','video.py','video_proxy.py','video-ui.js','catalog.py','hub_auth.py','catalog-ui.js','server.py','auth.py','collect_hardware.py','dashboard_data.py','dashboard_history.py','dashboard-ui.js','dashboard.css','themes.css','deploy/import_dashboard_history.py','index.html','app.js','studio.js','style.css','login.html','login.js','access-ui.js','network-ui.js','network/__init__.py','network/client.py','network/config.py','network/rpc.py','deploy/Dockerfile','deploy/image-requirements.lock'] +FILES += ['seed_vc.py','seed_vc_runtime.py','seed_vc_sources.json','seed-vc-ui.js','deploy/seed-vc-requirements.lock','deploy/prepare_seed_vc.py'] +FILES += sorted(str(p.relative_to(ROOT)) for p in (ROOT/'deploy/seed-vc-web').rglob('*') if p.is_file() and '__pycache__' not in p.parts) FILES += ['xvc.py','xvc_runtime.py','xvc_sources.json','xvc-ui.js','deploy/xvc-requirements.lock','deploy/prepare_xvc.py'] FILES += ['cuda_overlay.py','remix.py','remix_runtime.py','remix_worker.py','remix_sources.json','clearvoice_worker.py','deploy/ladypoly/patch_remix.py'] FILES += ['speech_text.py'] diff --git a/deploy/prepare_seed_vc.py b/deploy/prepare_seed_vc.py new file mode 100644 index 0000000..213f2da --- /dev/null +++ b/deploy/prepare_seed_vc.py @@ -0,0 +1,50 @@ +"""Prepare Seed-VC without starting services; merge its inactive profile only after Deck stops.""" +import hashlib,json,os,secrets,subprocess,sys,time,uuid +from pathlib import Path +sys.path.insert(0,str(Path(__file__).resolve().parent.parent)) +from catalog import Catalog +from seed_vc_runtime import SeedVCRuntime + +def prepare(state,create_container=True): + state=Path(state).resolve();runtime=SeedVCRuntime(state/'seed_vc-runtime',None) + python,source=runtime.paths() + # The venv interpreter targets Deck's bundled Python, which lives inside its image. + if not (python.exists() or python.is_symlink()) or not (source/'app_svc.py').is_file():raise ValueError('Seed-VC-Laufzeit zuerst installieren.') + from seed_vc_runtime import ASSETS,REPO,MODEL_REVISION + ident=hashlib.sha256((REPO+MODEL_REVISION+ASSETS[0]['file']).encode()).hexdigest();pending=state/'seed_vc-profile-pending.json' + if pending.exists(): + row=json.loads(pending.read_text()) + if row.get('model_id')!=ident or row.get('api_id')!='seed-vc-singing':raise ValueError('Abweichendes vorbereitetes Seed-VC-Profil prüfen.') + else: + row=dict(id=uuid.uuid4().hex,revision=1,name='Seed-VC Gesang',api_id='seed-vc-singing',api_aliases=[],kind='voice',model_id=ident,parameters={},components={},presets=[],prompt_enhancer=None,updated_at=time.time()) + pending.write_text(json.dumps(row,indent=2));os.chown(pending,65534,65534) + root=state/'seed_vc-data';root.mkdir(parents=True,exist_ok=True);os.chown(root,65534,65534) + settings=root/'settings.json' + if not settings.exists():settings.write_text(json.dumps({'device':'5080'}));os.chown(settings,65534,65534) + key=root/'bridge-key' + if not key.exists():key.write_text(secrets.token_urlsafe(48));key.chmod(0o600);os.chown(key,65534,65534) + if not create_container: + print('Seed-VC: inaktives Profil vorbereitet; kein Container gestartet oder registriert.');return + name='athena-seed-vc-web';found=subprocess.run(['docker','inspect',name],capture_output=True,text=True) + if found.returncode==0: + row=json.loads(found.stdout)[0];labels=row['Config'].get('Labels') or {} + if labels.get('io.athena-deck.managed')!='true' or labels.get('io.athena-deck.application')!='seed-vc-web':raise ValueError('Containername anderweitig belegt.') + if row['State']['Running']:raise ValueError('Vorhandene Seed-VC-UI läuft bereits; Vorbereitung verändert sie nicht.') + else: + subprocess.run(['docker','create','--name',name,'--network','host','--restart','unless-stopped','--label','io.athena-deck.managed=true','--label','io.athena-deck.role=application','--label','io.athena-deck.application=seed-vc-web','--read-only','--cap-drop','ALL','--security-opt','no-new-privileges:true','--pids-limit','128','--memory','512m','--cpus','1','--tmpfs','/tmp:rw,noexec,nosuid,size=128m,uid=65534,gid=65534','--mount','type=bind,src='+str(key)+',dst=/run/secrets/seed-vc-bridge,readonly','athena-seed-vc-web:0.1.0-deck1'],check=True,stdout=subprocess.DEVNULL) + print('Seed-VC: inaktives Profil vorbereitet, UI-Container gestoppt. Keine Endpunktfreigabe geändert.') + +def apply_profile(state,deck='athena-deck-dev'): + from profiles import Profiles + result=subprocess.run(['docker','inspect',deck],capture_output=True,text=True,check=True) + if json.loads(result.stdout)[0]['State']['Running']:raise ValueError('Deck läuft: Profil erst im späteren Wartungsfenster übernehmen.') + state=Path(state);SeedVCRuntime(state/'seed_vc-runtime',None).ensure_library();row=json.loads((state/'seed_vc-profile-pending.json').read_text());profiles=Profiles(state/'profiles.json',Catalog(state/'models')) + existing=next((p for p in profiles.rows if p.get('api_id')==row['api_id']),None) + if existing: + if existing['model_id']!=row['model_id']:raise ValueError('Seed-VC API-ID bereits anders belegt.') + else:profiles.save(dict(id=None,revision=0,name=row['name'],api_id=row['api_id'],kind='voice',model_id=row['model_id'],parameters={})) + os.chown(state/'profiles.json',65534,65534) + print('Inaktives Seed-VC-Profil übernommen; Betriebsart und Freigaben unverändert.') +if __name__=='__main__': + if '--apply-profile' in sys.argv:apply_profile(sys.argv[1]) + else:prepare(sys.argv[1],create_container='--no-container' not in sys.argv) diff --git a/deploy/scheduled_backup.py b/deploy/scheduled_backup.py index 1cb6da8..0b8e160 100644 --- a/deploy/scheduled_backup.py +++ b/deploy/scheduled_backup.py @@ -23,7 +23,7 @@ def key(): return KEY.read_bytes().strip()+b'\n' def sources(): - names=('legacy-userdata','applio-data','xvc-data','voice-tests','music-jobs','acestep-jobs','separator-tests','image-tests','tts-tests') + names=('seed_vc-data','legacy-userdata','applio-data','xvc-data','voice-tests','music-jobs','acestep-jobs','separator-tests','image-tests','tts-tests') roots=[(STATE/n,'deck/'+n) for n in names]+[(STATE/'video/original-work/outputs','deck/video/original-work/outputs'),(STATE/'video/original-work/remote-inputs','deck/video/original-work/remote-inputs'),(STATE/'video/original-work/deskweb','deck/video/original-work/deskweb'),(Path('/opt/athena-ladypoly/data'),'services/ladypoly'),(Path('/opt/athena-deck-docker-apps'),'services/web-studios')] # Private locally-trained voices have no public replacement source. for p in (STATE/'models').glob('*/entry.json'): diff --git a/deploy/seed-vc-requirements.lock b/deploy/seed-vc-requirements.lock new file mode 100644 index 0000000..bba9758 --- /dev/null +++ b/deploy/seed-vc-requirements.lock @@ -0,0 +1,144 @@ +absl-py==2.5.0 +aiofiles==24.1.0 +annotated-doc==0.0.5 +annotated-types==0.8.0 +anyio==4.15.1 +argbind==0.3.9 +asttokens==3.0.2 +audioread==3.1.0 +brotli==1.2.0 +certifi==2026.7.22 +cffi==2.1.1 +charset-normalizer==3.5.2 +click==8.5.0 +cloudpickle==3.1.2 +contourpy==1.3.3 +cycler==0.12.1 +decorator==5.3.1 +descript-audio-codec==1.0.0 +descript-audiotools==0.7.2 +docstring_parser==0.18.0 +einops==0.8.0 +executing==2.2.1 +fastapi==0.142.2 +ffmpy==1.0.0 +filelock==3.32.3 +fire==0.7.1 +flatten-dict==0.5.0 +fonttools==4.66.1 +fsspec==2026.7.0 +gradio==5.49.1 +gradio_client==1.13.3 +groovy==0.1.2 +grpcio==1.84.0 +h11==0.16.0 +hf-xet==1.6.0 +httpcore==1.0.9 +httpx==0.28.1 +huggingface-hub==0.36.0 +idna==3.20 +importlib_resources==7.1.0 +ipython==9.17.1 +ipython_pygments_lexers==1.1.1 +jedi==0.20.0 +Jinja2==3.1.6 +joblib==1.6.0 +julius==0.2.8 +kiwisolver==1.5.1 +lazy-loader==0.6 +librosa==0.10.2 +llvmlite==0.50.0 +Markdown==3.11 +markdown-it-py==4.2.0 +markdown2==2.5.5 +MarkupSafe==3.0.3 +matplotlib==3.9.4 +matplotlib-inline==0.2.2 +mdurl==0.1.2 +mpmath==1.3.0 +msgpack==1.2.3 +munch==4.0.0 +narwhals==2.26.0 +networkx==3.6.1 +numba==0.68.0 +numpy==1.26.4 +nvidia-cublas-cu12==12.8.4.1 +nvidia-cuda-cupti-cu12==12.8.90 +nvidia-cuda-nvrtc-cu12==12.8.93 +nvidia-cuda-runtime-cu12==12.8.90 +nvidia-cudnn-cu12==9.10.2.21 +nvidia-cufft-cu12==11.3.3.83 +nvidia-cufile-cu12==1.13.1.3 +nvidia-curand-cu12==10.3.9.90 +nvidia-cusolver-cu12==11.7.3.90 +nvidia-cusparse-cu12==12.5.8.93 +nvidia-cusparselt-cu12==0.7.1 +nvidia-nccl-cu12==2.27.3 +nvidia-nvjitlink-cu12==12.8.93 +nvidia-nvtx-cu12==12.8.90 +opentelemetry-api==1.45.0 +orjson==3.12.0 +packaging==26.3 +pandas==2.3.3 +parso==0.8.7 +pexpect==4.9.0 +pillow==11.3.0 +platformdirs==4.12.3 +pooch==1.9.0 +prompt_toolkit==3.0.53 +protobuf==3.19.6 +psutil==7.2.2 +ptyprocess==0.7.0 +pure_eval==0.2.4 +pycparser==3.0 +pydantic==2.11.10 +pydantic_core==2.33.2 +pydub==0.25.1 +Pygments==2.21.0 +pyloudnorm==0.2.0 +pyparsing==3.3.3 +pystoi==0.4.1 +python-dateutil==2.9.0.post0 +python-multipart==0.0.32 +pytz==2026.5 +PyYAML==6.0.2 +randomname==0.2.1 +regex==2026.9.29 +requests==2.34.2 +rich==15.0.0 +ruff==0.16.10 +safehttpx==0.1.7 +safetensors==0.8.0 +scikit-learn==1.9.1 +scipy==1.13.1 +semantic-version==2.10.0 +setuptools==78.1.0 +shellingham==1.5.4 +six==1.17.0 +soundfile==0.12.1 +soxr==1.1.0 +stack-data==0.6.3 +starlette==0.52.1 +sympy==1.14.0 +tensorboard==2.20.0 +tensorboard-data-server==0.7.2 +termcolor==3.3.0 +threadpoolctl==3.7.0 +tokenizers==0.20.3 +tomlkit==0.13.3 +torch==2.8.0+cu128 +torch-stoi==0.2.3 +torchaudio==2.8.0+cu128 +tqdm==4.70.1 +traitlets==5.16.1 +transformers==4.46.3 +triton==3.4.0 +typer==0.27.2 +typing-inspection==0.4.4 +typing_extensions==4.16.0 +tzdata==2026.5 +urllib3==2.8.0 +uvicorn==0.34.2 +wcwidth==0.9.2 +websockets==15.0.1 +Werkzeug==3.1.9 diff --git a/deploy/seed-vc-web/Dockerfile b/deploy/seed-vc-web/Dockerfile new file mode 100644 index 0000000..68555df --- /dev/null +++ b/deploy/seed-vc-web/Dockerfile @@ -0,0 +1,6 @@ +FROM python:3.12-slim-bookworm +RUN pip install --no-cache-dir fastapi==0.115.12 uvicorn==0.34.2 httpx==0.28.1 +WORKDIR /ui +COPY proxy.py ./ +USER 65534:65534 +CMD ["python","-m","uvicorn","proxy:app","--host","127.0.0.1","--port","8136","--no-access-log"] diff --git a/deploy/seed-vc-web/README.md b/deploy/seed-vc-web/README.md new file mode 100644 index 0000000..7f6f198 --- /dev/null +++ b/deploy/seed-vc-web/README.md @@ -0,0 +1,77 @@ +# Seed-VC Gesang + +Testintegration für reine Gesangsaufnahme plus Referenzstimme, ohne Training. +Code: https://github.com/Plachtaa/seed-vc (archiviert am 21. November 2025). +Verwendet ausschließlich das originale F0-konditionierte 44,1-kHz-Gesangsmodell, +nicht das V2-Sprach-/Akzentmodell. Quelle, Melodie und Timing stammen aus dem +Gesang; die Referenz liefert die Zielstimme. Qualität muss mit Nutzeraufnahmen +beurteilt werden; eine technische Prüfung ist kein Hörtest. + +## Native Ausführung + +Der Modellworker ist ein unprivilegierter Unterprozess von Deck. Kein Docker- +oder alter Router-Pfad ist für die Inferenz nötig. Die Umgebung enthält +PyTorch/Torchaudio 2.8.0 mit CUDA 12.8 für RTX 3060/5080 und das vollständige +Rezept in `deploy/seed-vc-requirements.lock`. Quellcode-Revision sowie neun +Gewichts-/Konfigurationsdateien mit Hub-Revision, Größe und Prüfsumme stehen +in `seed_vc_runtime.py` und `seed_vc_sources.json`. + +Voraussetzungen des nativen Debian-Dienstes: Git, Python mit venv/pip (getestete +Laufzeit Python 3.12), FFmpeg, libsndfile1, NVIDIA-Treiber mit CUDA-12.8-Support, +Schreibrechte für die konfigurierte Deck-Zustandswurzel. Einrichtung über +Laufzeiten → Seed-VC Gesang; alternativ als Dienstbenutzer aus dem Git-Checkout: + +```sh +python3 seed_vc_runtime.py --state-root /PFAD/ZUR/DECK-ZUSTANDSWURZEL +``` + +Die Installation nutzt keine GPU und startet kein Modell. 15 GiB freier Platz +werden vorab geprüft; gemessener Datenbedarf der ersten Umgebung ca. 10 GiB. +Inferenz liest ausschließlich die geprüften lokalen Dateien (Hub offline). +Der bestehende Gesamtinstaller ist weiterhin Docker-basiert; eine komplette +Neuinstallation als nativer Deck-Dienst bleibt offen, siehe +`deploy/NATIVE_INSTALL_REQUIREMENTS.md`. + +## Steuerung und Oberfläche + +Ein Profil `Seed-VC Gesang` vom Typ Stimmwerkzeug mit Architektur `seed_vc` und +API-ID `seed-vc-singing` anlegen. Nur das jeweils gewählte Stimmprofil wird +freigegeben. Kein TTS-Modell: es wird nicht in `/v1/audio/speech/models` angeboten. +Nach Aktivierung Steuerung → Stimmwerkzeuge starten. Erst bei einem Auftrag +wird eine GPU-Lease angefordert und das Modell geladen. Beim Moduswechsel +wird der Worker entladen. Keine parallele Umgehung von Decks GPU-Steuerung. + +Die kleine deutsche Gradio-Oberfläche bietet Gesang-/Referenz-Upload, Vorschau +und WAV-Download. Standard: 40 Diffusionsschritte, unveränderte Länge, CFG 0,7, +keine automatische F0-Anpassung, kein Tonhöhenversatz. Die Quelle wird vollständig +in Abschnitten verarbeitet. Wie im Original werden nur die ersten 25 Sekunden +der Referenz verwendet; die Oberfläche erklärt das ausdrücklich. + +Optionaler, CPU-only UI-Proxy als registrierter Container unter Weitere Dienste: +`athena-seed-vc-web`, Port 8136, Image `athena-seed-vc-web:0.1.0-deck1`. +Native interne Oberfläche Port 8137; per Brückenschlüssel geschützt. Container +enthält keine Gewichte und erhält keinen GPU-Zugriff. Falls die bestehende +Containerinstallation noch läuft, bereitet `deploy/prepare_seed_vc.py` nur ein +inaktives Profil und einen gestoppten Proxy vor. Mit `--no-container` wird auch die Registrierung des Proxys zurückgestellt, +damit ein noch nicht aktualisierter Backup-Helfer unverändert arbeiten kann. +Profilübernahme erst im +Wartungsfenster mit `--apply-profile`; laufende Profile werden nicht überschrieben. + +## Sicherung und Restore + +Konfigurationsbackup: GPU-Einstellung, Profil, Originalgewicht-Metadaten, +Quellcode-/Asset-Rezept und reproduzierbarer Proxy-Build. Eigene Referenzen und +Ergebnisse unter `seed_vc-data` gehören in die verschlüsselte Nutzdatensicherung. +`deploy/scheduled_backup.py` enthält diesen Ordner. Laufzeiten werden aus den +Originalquellen mit festen Revisionen wiederbeschafft. Brückenschlüssel wird +bei fehlendem Bestand lokal neu erzeugt. Auf dem Zielhost den Docker-Systemhelfer +mit `deploy/setup_docker_helper.py` aktualisieren, damit das Proxy-Rezept vorhanden +ist. Host-Pfade werden aus der Zustandswurzel abgeleitet. + +## Prüfstand + +Profil-, Lease-, Quellprüfsummen- und Restore-Tests in `test_seed_vc.py` und +`test_backup.py`. Offline-CPU-Ladetest prüft alle tatsächlich genutzten Modellparameter und +alle Zusatzmodelle. GPU- und Hörtest stehen bis zur bewussten Freigabe auf Athena +noch aus. Ein vorbereitetes App-Image darf den laufenden Deck-Dienst nicht +ungefragt ersetzen. diff --git a/deploy/seed-vc-web/native_ui.py b/deploy/seed-vc-web/native_ui.py new file mode 100644 index 0000000..190ccdb --- /dev/null +++ b/deploy/seed-vc-web/native_ui.py @@ -0,0 +1,92 @@ +"""Small singing UI: pinned upstream SVC, lazy GPU load under Deck's voice lease.""" +import json,os,secrets,socket,threading,time,uuid +from pathlib import Path +from types import SimpleNamespace +import gradio as gr +import numpy as np +import soundfile as sf +from fastapi import FastAPI,Request +from fastapi.responses import JSONResponse +import uvicorn + +LOCK=threading.RLock() +ENGINE=None +ASSETS=Path(os.environ['SEED_VC_ASSETS']) +OUTPUT=Path(os.environ['SEED_VC_OUTPUT']) + +def load_engine(device='cuda'): + import app_svc as engine + import torch,yaml + engine.device=torch.device(device) + original_load=engine.load_checkpoint + def verified_load(model,optimizer,path,**kwargs): + weights=torch.load(path,map_location='cpu',weights_only=True)['net'] + for key,module in model.items(): + saved={name.removeprefix('module.'):value for name,value in weights[key].items()} + invalid=[name for name,param in module.named_parameters() if name not in saved or saved[name].shape!=param.shape] + if invalid:raise RuntimeError('Seed-VC-Gewicht passt nicht zur Inferenzarchitektur: '+', '.join(invalid[:5])) + del weights + return original_load(model,optimizer,path,**kwargs) + engine.load_checkpoint=verified_load + # All model reads use the locally verified asset set, including auxiliary models. + def local_model(repo,model_filename='pytorch_model.bin',config_filename=None): + base=ASSETS/repo.replace('/','--') + return (str(base/model_filename),str(base/config_filename)) if config_filename else str(base/model_filename) + engine.load_custom_model_from_hf=local_model + main=ASSETS/'Plachta--Seed-VC' + config=yaml.safe_load((main/'config_dit_mel_seed_uvit_whisper_base_f0_44k.yml').read_text()) + config['model_params']['vocoder']['name']=str(ASSETS/'nvidia--bigvgan_v2_44khz_128band_512x') + config['model_params']['speech_tokenizer']['name']=str(ASSETS/'openai--whisper-small') + config_path=OUTPUT/'local-config.yml';config_path.write_text(yaml.safe_dump(config)) + args=SimpleNamespace(fp16=device.startswith('cuda'),checkpoint=str(main/'DiT_seed_v2_uvit_whisper_base_f0_44k_bigvgan_pruned_ft_ema_v2.pth'),config=str(config_path)) + (engine.model_f0,engine.semantic_fn,engine.vocoder_fn,engine.campplus_model, + engine.to_mel_f0,engine.mel_fn_args,engine.f0_fn)=engine.load_models(args) + engine.max_context_window=engine.sr//engine.hop_length*30 + engine.overlap_wave_len=engine.overlap_frame_len*engine.hop_length + return engine + +def convert(source,reference,steps=40,pitch=0,progress=gr.Progress()): + global ENGINE + if not source or not reference:raise gr.Error('Gesangsdatei und Referenzstimme hochladen.') + with LOCK: + connection=socket.socket(socket.AF_UNIX) + try: + connection.connect(os.environ['SEED_VC_LEASE_SOCKET']);connection.sendall(b'{"action":"reserve"}\n') + with connection.makefile('rb') as stream:reply=json.loads(stream.readline(8193)) + if not reply.get('ok'):raise gr.Error(reply.get('error','Deck-Ressourcen nicht verfügbar.')) + if reply['gpu']!=os.environ['CUDA_VISIBLE_DEVICES']:raise gr.Error('GPU-Auswahl geändert; Seed-VC erneut öffnen.') + progress(0,desc='Gesangsmodell laden') + if ENGINE is None:ENGINE=load_engine() + started=time.monotonic();result=None + progress(None,desc='Gesang umwandeln') + for _,wave in ENGINE.voice_conversion(source,reference,int(steps),1.0,0.7,False,int(pitch)): + if wave is not None:result=wave + if result is None:raise gr.Error('Seed-VC lieferte keine vollständige Audiodatei.') + sr,audio=result + if sr!=44100 or not np.isfinite(audio).all():raise gr.Error('Ungültige Seed-VC-Audioausgabe.') + path=OUTPUT/('Gesang-'+uuid.uuid4().hex[:12]+'.wav');sf.write(path,audio,sr,subtype='PCM_16') + return str(path),str(path),f'Fertig · 44,1 kHz WAV · {time.monotonic()-started:.1f} s Verarbeitung' + finally:connection.close() + +with gr.Blocks(title='Seed-VC · Gesang') as demo: + gr.Markdown('# Gesang mit deiner Referenzstimme\nGesangsdatei und Zielstimme hochladen. Melodie und Timing bleiben erhalten; kein Stimmtraining nötig. Die Qualität hängt von beiden Aufnahmen ab.') + with gr.Row(): + source=gr.Audio(label='Reiner Gesang',type='filepath',sources=['upload']) + reference=gr.Audio(label='Referenzstimme',type='filepath',sources=['upload','microphone']) + gr.Markdown('Die Referenz wird wie im Original auf die ersten 25 Sekunden begrenzt. Der vollständige Quellgesang wird in Abschnitten verarbeitet. Verwende eine klare Einzelstimme ohne Begleitmusik.') + run=gr.Button('Gesang umwandeln',variant='primary') + with gr.Accordion('Einstellungen',open=False): + steps=gr.Slider(1,200,value=40,step=1,label='Qualität / Diffusionsschritte') + pitch=gr.Slider(-24,24,value=0,step=1,label='Tonhöhe verschieben (Halbtöne)') + output=gr.Audio(label='Ergebnis',type='filepath');download=gr.File(label='WAV herunterladen');report=gr.Markdown() + run.click(convert,[source,reference,steps,pitch],[output,download,report],api_name='convert') +app=FastAPI() +@app.middleware('http') +async def protect(request:Request,call_next): + key=Path(os.environ['SEED_VC_BRIDGE_KEY_FILE']).read_text().strip() + if not secrets.compare_digest(request.headers.get('X-Seed-VC-Bridge',''),key):return JSONResponse({'detail':'Deck-Brücke erforderlich.'},status_code=403) + return await call_next(request) +@app.get('/health') +def health():return {'status':'ready','model_loaded':ENGINE is not None} +app=gr.mount_gradio_app(app,demo.queue(default_concurrency_limit=1),path='/',allowed_paths=[str(OUTPUT)]) +if __name__=='__main__':uvicorn.run(app,host='0.0.0.0',port=8137,access_log=False) diff --git a/deploy/seed-vc-web/proxy.py b/deploy/seed-vc-web/proxy.py new file mode 100644 index 0000000..11513f8 --- /dev/null +++ b/deploy/seed-vc-web/proxy.py @@ -0,0 +1,24 @@ +"""CPU-only forwarding UI; the native Deck backend owns model and GPU access.""" +from pathlib import Path +import httpx +from fastapi import FastAPI,Request +from fastapi.responses import JSONResponse,StreamingResponse +from starlette.background import BackgroundTask +app=FastAPI();KEY=Path('/run/secrets/seed-vc-bridge') +@app.api_route('/{path:path}',methods=['GET','POST','PUT','DELETE','PATCH','HEAD','OPTIONS']) +async def proxy(path:str,request:Request): + if request.method not in ('GET','HEAD','OPTIONS'): + origin=request.headers.get('origin','');host=request.headers.get('host','') + if origin.split('://',1)[-1]!=host and request.headers.get('X-SEED-VC-UI')!='1':return JSONResponse({'detail':'Same-origin control required.'},status_code=403) + if int(request.headers.get('content-length','0'))>512*1024**2:return JSONResponse({'detail':'Upload zu groß.'},status_code=413) + client=httpx.AsyncClient(timeout=180) + try: + headers={'X-SEED-VC-Bridge':KEY.read_text().strip(),'Host':request.headers.get('host','127.0.0.1:8136')} + if request.headers.get('content-type'):headers['Content-Type']=request.headers['content-type'] + req=client.build_request(request.method,'http://127.0.0.1:8137/'+path,params=request.query_params,headers=headers,content=request.stream()) + response=await client.send(req,stream=True) + async def close():await response.aclose();await client.aclose() + safe={k:v for k,v in response.headers.items() if k in ('content-type','content-length','location','content-disposition')};safe['Cache-Control']='no-store' + return StreamingResponse(response.aiter_raw(),status_code=response.status_code,headers=safe,background=BackgroundTask(close)) + except (OSError,httpx.HTTPError): + await client.aclose();return JSONResponse({'detail':'Seed-VC ist vorbereitet, aber noch nicht gestartet. In Deck ein Seed-VC-Profil aktivieren und Stimmwerkzeuge starten.'},status_code=503) diff --git a/deploy/setup_docker_helper.py b/deploy/setup_docker_helper.py index f770402..1ae1c2b 100644 --- a/deploy/setup_docker_helper.py +++ b/deploy/setup_docker_helper.py @@ -34,6 +34,7 @@ def main(): (base/'acestep-web').mkdir(exist_ok=True) for name in ('Dockerfile','app.py','index.html'): shutil.copyfile(Path(__file__).parent/'acestep-web'/name,base/'acestep-web'/name) + shutil.copytree(Path(__file__).parent/'seed-vc-web',base/'seed-vc-web',dirs_exist_ok=True,ignore=shutil.ignore_patterns('__pycache__')) shutil.copytree(Path(__file__).parent/'xvc-web',base/'xvc-web',dirs_exist_ok=True,ignore=shutil.ignore_patterns('__pycache__')) shutil.copytree(Path(__file__).parent/'applio-web',base/'applio-web',dirs_exist_ok=True,ignore=shutil.ignore_patterns('__pycache__')) (base/'voice-web').mkdir(exist_ok=True) diff --git a/docker-ui.js b/docker-ui.js index 1bf9ef2..0485720 100644 --- a/docker-ui.js +++ b/docker-ui.js @@ -3,6 +3,7 @@ window.DockerUI=(()=>{ const apps={ 'athena-voxcpm2-web':{title:'VoxCPM2 Studio',description:'Stimme erzeugen, gestalten und klonen; Ausführung über Decks Stimmworker.',port:8129,hint:'VoxCPM2-Profil in Deck aktivieren und Stimmwerkzeuge starten.'}, 'athena-omnivoice-web':{title:'OmniVoice Studio',description:'Bisherige OmniVoice-Weboberfläche; GPU-Aufträge laufen über Deck.',port:8130,hint:'OmniVoice-Profil in Deck aktivieren und Stimmwerkzeuge starten. Beim Klonen Referenztranskript eingeben.'}, + 'athena-seed-vc-web':{title:'Seed-VC Gesang',description:'Reiner Gesang und Referenzstimme → Gesang in der Zielstimme, ohne Training.',port:8136,hint:'Seed-VC-Profil aktivieren und Stimmwerkzeuge starten.'}, 'athena-xvc-web':{title:'X-VC Studio',description:'Vorhandene Sprachaufnahme in eine Referenzstimme umwandeln; optional Klang mit Resemble Enhance verbessern. Native Ausführung durch Deck.',port:8133,hint:'X-VC-Profil aktivieren und Stimmwerkzeuge starten; GPU unter Laufzeiten → X-VC einstellen.'}, 'athena-applio-web':{title:'Applio Studio',description:'Unsere eigene Oberfläche für RVC-Stimmumwandlung, Live und eigenes Stimmtraining. Native Applio-3.6.5-Laufzeit in Deck.',port:8132,hint:'Applio-Profil aktivieren und Stimmwerkzeuge starten; GPU unter Laufzeiten → Applio einstellen.'}, 'athena-acestep-web':{title:'ACE-Step Studio',description:'Musik und Songs mit ACE-Step XL-SFT und dem 1.7B-Musik-Sprachmodell; Ausführung und Gewichte in Deck.',port:8131,hint:'ACE-Step-Profil freigeben und in der Steuerung Musik starten.'}, diff --git a/docs/CURRENT_SYSTEM.md b/docs/CURRENT_SYSTEM.md index 72f4aa4..bdae803 100644 --- a/docs/CURRENT_SYSTEM.md +++ b/docs/CURRENT_SYSTEM.md @@ -89,3 +89,12 @@ sind historische Versuchsdokumentation, keine aktuelle Installationsanweisung. eigenen Browserpatch korrigiert. Die hier dokumentierte Aktualisierung ändert keine laufenden Dienste oder Profile. + +### Seed-VC Gesang (vorbereitet, noch nicht freigegeben) + +Originales 44,1-kHz-Gesangsmodell für reine Gesangs-WAV plus Referenzstimme, +ohne Training. Native Deck-Laufzeit mit geprüftem Komponentenpaket, inaktives +Profil und einfacher Oberfläche vorbereitet. Aktive Betriebsart unverändert; +GPU-/Hörtest und Produktivfreigabe stehen aus. Originalprojekt archiviert. +Einrichtung, native Voraussetzungen, Steuerung und Restore: +[Seed-VC Gesang](../deploy/seed-vc-web/README.md). diff --git a/endpoint.py b/endpoint.py index 6d5ec01..6482b04 100644 --- a/endpoint.py +++ b/endpoint.py @@ -173,7 +173,8 @@ class Endpoint: if kind=='voice': from applio import applio_model from xvc import xvc_model - if applio_model(p.get('model')) or xvc_model(p.get('model')):continue + from seed_vc import seed_vc_model + if applio_model(p.get('model')) or xvc_model(p.get('model')) or seed_vc_model(p.get('model')):continue row=dict(id='athena-image' if kind=='image' else p.get('api_id',p['name']),name=p['name'],display_name=p['name'],object='model',created=int(p['updated_at']),owned_by='athena-deck') if kind=='chat': params=p.get('parameters',{}) diff --git a/execution_setup.py b/execution_setup.py index 4398a5c..8e3f521 100644 --- a/execution_setup.py +++ b/execution_setup.py @@ -12,6 +12,11 @@ def _assess(model, installed, profile=None): if not file_role(filename)['profile_eligible']: result.update(state='component',label='Zusatzdatei',message='Diese Datei wird einem kompatiblen Modellprofil zugeordnet und benötigt keine eigene Laufzeit.') return result + from seed_vc import seed_vc_model + if seed_vc_model(model): + result.update(family='Seed-VC',evidence='Originales 44,1-kHz-Gesangsmodell',runtime='Seed-VC · Python/PyTorch',route='#seed-vc-runtime',installed=bool(installed.get('seed_vc')),state='ready' if installed.get('seed_vc') else 'setup',label='Seed-VC Gesang',message='Gesangsaufnahme und Referenzstimme verwenden; kein Stimmtraining nötig.') + if profile:result.update(state='ready' if profile.get('runnable') else 'profile_incomplete',blockers=profile.get('blockers',[])) + return result from xvc import xvc_model if xvc_model(model): result.update(family='X-VC',evidence='Offizielles X-VC-Gewicht',runtime='X-VC · Python/PyTorch',route='#xvc-runtime',installed=bool(installed.get('xvc')),state='ready' if installed.get('xvc') else 'setup',label='X-VC erkannt',message='Quellaufnahme und Referenzstimme in der X-VC-Oberfläche verwenden. Die Laufzeit richtet alle Zusatzgewichte ein; keine einzelnen VAE-/Projektor-Zuordnungen.') @@ -75,6 +80,12 @@ def _assess_candidates(model, installed, profile=None): meta=model.get('runtime_metadata') or {};family=str(meta.get('architecture') or '').lower() def add(id,label,key,route,reason,maintained=True): result['candidates'].append(dict(id=id,label=label,installed=bool(installed.get(key)),route=route,installation_available=maintained,evidence=reason)) + from seed_vc import seed_vc_model + if seed_vc_model(model): + result.update(family='Seed-VC',evidence='Originales 44,1-kHz-Gesangsmodell',runtime='Seed-VC · Python/PyTorch',route='#seed-vc-runtime',installed=bool(installed.get('seed_vc')),state='ready' if installed.get('seed_vc') else 'setup',label='Seed-VC Gesang',message='Gesangsaufnahme und Referenzstimme verwenden; kein Stimmtraining nötig.') + if profile:result.update(state='ready' if profile.get('runnable') else 'profile_incomplete',blockers=profile.get('blockers',[])) + add('seed_vc','Seed-VC · Python/PyTorch','seed_vc','#seed-vc-runtime','Gesangsmodell und geprüfte Zusatzgewichte') + return result from xvc import xvc_model if xvc_model(model): add('xvc','X-VC · Python/PyTorch','xvc','#xvc-runtime','Offizielles X-VC-Paket mit geprüftem Deck-Worker') diff --git a/index.html b/index.html index 1fbc691..4c07f75 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -
Reinen Gesang anhand einer Referenzstimme umwandeln, ohne Stimmtraining; die native Laufzeit und GPU steuert Athena Deck.
Vor einem Auftrag Seed-VC in Stimmwerkzeuge → Profile aktivieren und Steuerung → Stimmwerkzeuge starten. Immer nur ein Stimmwerkzeug-Profil aktiv.
Gewichte und Zusatzkomponenten werden aus ihren fest hinterlegten Originalquellen wiederhergestellt. Eigene Referenzaufnahmen und Ergebnisse separat sichern.
${audioDescriptions[page]||'Modelle entdecken, herunterladen und mit gespeicherten Profilen konfigurieren.'}
${page==='voice'?'Applio / RVC einrichten → · Audio Separator einrichten → · Audio-Trennung →
Audio-Trennung nutzt die unterstützten Pakete im Audio-Separator-Bereich. Andere Hub-Dateien und Voice-Profile benötigen weiterhin eine geprüfte Anbindung.
':''}${audioDescriptions[page]&&!['audio','stt','music','voice','embeddings'].includes(page)?'Entdecken und Downloads sind verfügbar. Für diese Audio-Bereiche ist noch keine ausführbare Laufzeit in Deck angebunden. Gespeicherte Profile sind vorbereitend.
':''}Profile werden auf Athena gespeichert. Für diesen Bereich ist noch kein Modellworker angebunden. Fehlende Komponenten stehen beim jeweiligen Profil.
llama.cpp-Builds verwalten →${audioDescriptions[page]||'Modelle entdecken, herunterladen und mit gespeicherten Profilen konfigurieren.'}
${page==='voice'?'Seed-VC Gesang einrichten → · Applio / RVC einrichten → · Audio Separator einrichten → · Audio-Trennung →
Audio-Trennung nutzt die unterstützten Pakete im Audio-Separator-Bereich. Andere Hub-Dateien und Voice-Profile benötigen weiterhin eine geprüfte Anbindung.
':''}${audioDescriptions[page]&&!['audio','stt','music','voice','embeddings'].includes(page)?'Entdecken und Downloads sind verfügbar. Für diese Audio-Bereiche ist noch keine ausführbare Laufzeit in Deck angebunden. Gespeicherte Profile sind vorbereitend.
':''}Profile werden auf Athena gespeichert. Für diesen Bereich ist noch kein Modellworker angebunden. Fehlende Komponenten stehen beim jeweiligen Profil.
llama.cpp-Builds verwalten →