Remove retired Seed-VC integration and retain SoulX-Singer

This commit is contained in:
Mikei386 committed 2026-10-06 21:04:13 +02:00
1 parent d88d1d556b
commit 8c10ccc8ec
31 files changed
+54 -753

No files matched your search

+3 -4
View File
@@ -74,7 +74,6 @@ 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).
Seed-VC wurde entfernt. Private Referenzen und Ergebnisse bleiben unter
`legacy-userdata/retired-seed-vc` in der verschlüsselten Nutzdatensicherung.
Alte Seed-VC-Laufzeitrezepte werden beim Restore ausdrücklich abgewiesen.
-1
View File
@@ -25,7 +25,6 @@ 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==='soulx-singer-runtime'){SoulXSingerUI.render();return;}
if(page==='xvc-runtime'){XVCUI.render();return;}
if(page==='applio-runtime'){ApplioUI.render();return;}
+5 -15
View File
@@ -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=('soulx_singer-data/settings.json','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')
SETTINGS=('soulx_singer-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.
@@ -178,7 +178,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','seed_vc','soulx_singer'):item['runtime_metadata']={'architecture':architecture}
if (architecture:=(m.get('runtime_metadata') or {}).get('architecture')) in ('rvc','xvc','soulx_singer'):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'])
@@ -206,9 +206,6 @@ 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,'soulx_singer_runtime',None):
from soulx_singer_runtime import RECIPE_HASH
document['runtimes']['soulx_singer']=s.soulx_singer_runtime.status()['installed'];document['runtime_versions']['soulx_singer']=dict(code=s.soulx_singer_runtime.status()['revision'],assets=RECIPE_HASH)
@@ -277,9 +274,8 @@ 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 doc.get('runtimes',{}).get('seed_vc') or versions.get('seed_vc'):
blockers.append('Seed-VC wurde entfernt. Dieses alte Laufzeitrezept wird nicht wieder installiert.')
if versions.get('soulx_singer'):
from soulx_singer_runtime import REVISION as SOULX_REVISION,RECIPE_HASH
if versions['soulx_singer']!=dict(code=SOULX_REVISION,assets=RECIPE_HASH):blockers.append('Backup verlangt eine andere SoulX-Singer-Version oder Komponentenquelle.')
@@ -313,10 +309,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,'soulx_singer',None),'active',False):raise ValueError('SoulX-Singer-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,'seed_vc_runtime',None),getattr(s,'soulx_singer_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,'soulx_singer_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()
@@ -344,8 +339,6 @@ 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('soulx_singer') and not s.soulx_singer_runtime.status()['installed']:
self._phase('SoulX-Singer-Laufzeit und geprüfte Zusatzgewichte installieren');s.soulx_singer_runtime.start();self._wait(s.soulx_singer_runtime.status)
if r.get('applio') and not s.applio_runtime.status()['installed']:
@@ -390,7 +383,6 @@ 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,'soulx_singer',None):s.soulx_singer.unload_idle()
if getattr(s,'applio',None):s.applio.unload_idle()
s.endpoint.close();s.video.close();s.tts_tests.stop();s.stt.stop()
@@ -490,7 +482,6 @@ 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,'soulx_singer',None):s.soulx_singer.settings=copy.deepcopy(doc['settings'].get('soulx_singer-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:
@@ -526,7 +517,6 @@ 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,'soulx_singer_runtime',None):self.server.soulx_singer_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()
+1 -1
View File
@@ -226,7 +226,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=='Soul-AILab/SoulX-Singer' and name=='model-svc.pt') 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')
allowed=recipe_file or p.suffix.lower() in ('.gguf','.safetensors','.json','.tiktoken') or (repo=='openbmb/VoxCPM2' and name=='audiovae.pth') or (repo=='Soul-AILab/SoulX-Singer' and name=='model-svc.pt') or (repo=='chenxie95/X-VC' and name=='xvc.pt')
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
+3 -3
View File
@@ -17,12 +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 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 soulx_singer.py soulx_singer_runtime.py soulx-singer-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/soulx-singer-web /app/deploy/soulx-singer-web
COPY deploy/soulx-singer-svc /app/deploy/soulx-singer-svc
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
+1
View File
@@ -4,6 +4,7 @@ USER root
RUN apt-get update && apt-get install -y --no-install-recommends python3-cryptography ffmpeg libsndfile1 libportaudio2 && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY app/ /app/
RUN rm -f /app/seed_vc.py /app/seed_vc_runtime.py /app/seed_vc_sources.json /app/seed-vc-ui.js /app/deploy/prepare_seed_vc.py /app/deploy/seed-vc-requirements.lock && rm -rf /app/deploy/seed-vc-web
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 HOME=/tmp \
CUDA_CACHE_PATH=/var/lib/deck/cache/cuda TORCHINDUCTOR_CACHE_DIR=/var/lib/deck/cache/torchinductor \
DECK_BIND_HOST=0.0.0.0 DECK_STATE_DIR=/var/lib/deck \
+5 -5
View File
@@ -136,8 +136,8 @@ mit eigener Deck-UID/GID und optional `--allow-install`. Dadurch kann Docker sp
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.
SoulX-Singer-SVC nutzt eine eigene Python-venv, CUDA-12.8-PyTorch, FFmpeg und
libsndfile. Gewichte und Zusatzkomponenten stammen aus fest hinterlegten
Originalquellen mit Prüfsummen. Inferenz läuft nativ unter Decks GPU-Steuerung;
der optionale Container ist ausschließlich ein CPU-Proxy. Siehe
[SoulX-Singer-Rezept](soulx-singer-svc/README.md). Seed-VC wurde entfernt.
+12 -14
View File
@@ -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 'soulx-singer-web' if row['name']=='athena-soulx-singer-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'))))
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 'soulx-singer-web' if row['name']=='athena-soulx-singer-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,10 +61,9 @@ 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','athena-seed-vc-web','athena-soulx-singer-web'):raise ValueError('Host-Netzwerk nur für bekannte Deck-Oberflächen erlaubt.')
recipes={'soulx-singer-web':('athena-soulx-singer-web','athena-soulx-singer-web:0.1.0'),'seed-vc-web':('athena-seed-vc-web','athena-seed-vc-web:0.1.0-deck2'),'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')=='seed-vc-web' and c['name']=='athena-seed-vc-web' and c.get('image') in ('athena-seed-vc-web:0.1.0-deck1','athena-seed-vc-web:0.1.0-deck2'):pass
elif 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
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-soulx-singer-web'):raise ValueError('Host-Netzwerk nur für bekannte Deck-Oberflächen erlaubt.')
recipes={'soulx-singer-web':('athena-soulx-singer-web','athena-soulx-singer-web:0.1.0'),'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','')
if not isinstance(ref,str) or not re.fullmatch(r'[A-Za-z0-9][A-Za-z0-9._/@:-]{0,300}',ref):raise ValueError('Ungültige Image-Referenz.')
@@ -95,15 +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_soulx_singer=rel=='soulx_singer-data/bridge-key' and c['name']=='athena-soulx-singer-web' and target=='/run/secrets/soulx-singer-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 not native_seed_vc and not native_soulx_singer 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_soulx_singer 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','athena-seed-vc-web','athena-soulx-singer-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-soulx-singer-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
@@ -121,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','athena-seed-vc-web','athena-soulx-singer-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,'athena-soulx-singer-web':8138}[c['name']]))
if c.get('build_recipe') in ('swarm-ui','ladypoly','separator-web','voice-web','acestep-web','applio-web','xvc-web','seed-vc-web','soulx-singer-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-soulx-singer-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-soulx-singer-web':8138}[c['name']]))
if c.get('build_recipe') in ('swarm-ui','ladypoly','separator-web','voice-web','acestep-web','applio-web','xvc-web','soulx-singer-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':
@@ -151,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','athena-seed-vc-web','athena-soulx-singer-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-soulx-singer-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)]
@@ -167,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','seed_vc-data/bridge-key','soulx_singer-data/bridge-key') and not source.exists():
if m['deck_path'] in ('video/comfy-client-token','applio-data/bridge-key','xvc-data/bridge-key','soulx_singer-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','seed_vc-data/bridge-key','soulx_singer-data/bridge-key'):
elif m['deck_path'] not in ('video/comfy-client-token','applio-data/bridge-key','xvc-data/bridge-key','soulx_singer-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)
+2 -4
View File
@@ -20,8 +20,6 @@ FILES = ['assets/tts-presets/bundle.safetensors','assets/tts-presets/bundle.json
FILES += ['soulx_singer.py','soulx_singer_runtime.py','soulx-singer-ui.js','deploy/prepare_soulx_singer.py']
FILES += sorted(str(p.relative_to(ROOT)) for folder in ('soulx-singer-web','soulx-singer-svc') for p in (ROOT/'deploy'/folder).rglob('*') if p.is_file() and '__pycache__' not in p.parts)
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']
@@ -149,8 +147,8 @@ def launch(config):
'-p','127.0.0.1:'+str(config['port'])+':8108',
'--health-cmd', 'python3 -c "import urllib.request,json; assert json.load(urllib.request.urlopen(\'http://127.0.0.1:8108/api/v1/auth/status\',timeout=3))[\'initialized\']"',
'--health-interval','30s','--health-timeout','5s','--health-retries','3']
if config['port'] in (8134,8135,8137,8139) or set(config.get('api_ports',[])) & {8134,8135,8137,8139}:raise RuntimeError('Ports 8134/8135/8137 sind für interne Stimmwerkzeug-Brücken reserviert.')
args+=['-p','127.0.0.1:8134:8134','-p','127.0.0.1:8135:8135','-p','127.0.0.1:8137:8137','-p','127.0.0.1:8139:8139']
if config['port'] in (8134,8135,8139) or set(config.get('api_ports',[])) & {8134,8135,8139}:raise RuntimeError('Ports 8134/8135/8139 sind für interne Stimmwerkzeug-Brücken reserviert.')
args+=['-p','127.0.0.1:8134:8134','-p','127.0.0.1:8135:8135','-p','127.0.0.1:8139:8139']
if config.get('api_ports'):
args+=['-e','DECK_API_BIND=0.0.0.0','-e','DECK_API_PORTS='+','.join(map(str,config['api_ports']))]
for port in config['api_ports']:args+=['-p',f'127.0.0.1:{port}:{port}']
-50
View File
@@ -1,50 +0,0 @@
"""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-deck2'],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)
+1 -1
View File
@@ -23,7 +23,7 @@ def key():
return KEY.read_bytes().strip()+b'\n'
def sources():
names=('soulx_singer-data','seed_vc-data','legacy-userdata','applio-data','xvc-data','voice-tests','music-jobs','acestep-jobs','separator-tests','image-tests','tts-tests')
names=('soulx_singer-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'):
-144
View File
@@ -1,144 +0,0 @@
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
-6
View File
@@ -1,6 +0,0 @@
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"]
-81
View File
@@ -1,81 +0,0 @@
# 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-deck2`.
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.
UI-Proxy deck2 erhält den Content-Encoding-Header bei komprimierten Gradio-Assets.
Ohne ihn blieb der Browser trotz HTTP 200 leer. Deck und Modellworker benötigen
für dieses Proxy-Update keinen Neustart; alte deck1-Sicherungen bleiben lesbar.
-92
View File
@@ -1,92 +0,0 @@
"""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)
-24
View File
@@ -1,24 +0,0 @@
"""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','content-encoding','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)
+1 -1
View File
@@ -34,7 +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/'soulx-singer-web',base/'soulx-singer-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)
-1
View File
@@ -3,7 +3,6 @@ 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-soulx-singer-web':{title:'SoulX-Singer Gesang',description:'Reiner Gesang und Referenzstimme → Gesang in der Zielstimme, ohne Training.',port:8138,hint:'SoulX-Singer-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.'},
+6 -8
View File
@@ -90,15 +90,13 @@ sind historische Versuchsdokumentation, keine aktuelle Installationsanweisung.
Die hier dokumentierte Aktualisierung ändert keine laufenden Dienste oder Profile.
### Seed-VC Gesang (eingespielt, Profil inaktiv)
### Seed-VC entfernt
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 auf Athena eingespielt. Studio-Port 8136;
interne Brücke 8137 nur am Host-Loopback. Profil „Seed-VC Gesang“ bleibt
inaktiv; GPU-/Hörtest steht aus. Originalprojekt archiviert.
Einrichtung, native Voraussetzungen, Steuerung und Restore:
[Seed-VC Gesang](../deploy/seed-vc-web/README.md).
Am 6. Oktober 2026 auf Nutzerwunsch entfernt: Profil, Gewichte, native Laufzeit,
Studio-Container und aktive Installations-/Restore-Anbindung. SoulX-Singer ersetzt
Seed-VC. Private Referenzen und Ergebnisse bleiben unter
`legacy-userdata/retired-seed-vc` erhalten und werden verschlüsselt mitgesichert.
Ältere Seed-VC-Laufzeitrezepte werden beim Restore ausdrücklich abgewiesen.
### SoulX-Singer-SVC (eingespielt und aktiviert)
+1 -3
View File
@@ -95,7 +95,6 @@ class Endpoint:
if data['enabled'] and not row['runnable']:raise ValueError('Profil nicht ausführbar: '+' '.join(row['blockers']))
if row['kind']=='voice' and getattr(self,'applio',None):self.applio.unload_idle()
if row['kind']=='voice' and getattr(self,'xvc',None):self.xvc.unload_idle()
if row['kind']=='voice' and getattr(self,'seed_vc',None):self.seed_vc.unload_idle()
if row['kind']=='voice' and getattr(self,'soulx_singer',None):self.soulx_singer.unload_idle()
with self.lock:
if row['kind']=='voice' and self.voxcpm:
@@ -175,9 +174,8 @@ class Endpoint:
if kind=='voice':
from applio import applio_model
from xvc import xvc_model
from seed_vc import seed_vc_model
from soulx_singer import soulx_singer_model
if applio_model(p.get('model')) or xvc_model(p.get('model')) or seed_vc_model(p.get('model')) or soulx_singer_model(p.get('model')):continue
if applio_model(p.get('model')) or xvc_model(p.get('model')) or soulx_singer_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',{})
-11
View File
@@ -12,11 +12,6 @@ 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 soulx_singer import soulx_singer_model
if soulx_singer_model(model):
result.update(family='SoulX-Singer',evidence='Originales 24-kHz-Gesangsmodell',runtime='SoulX-Singer · Python/PyTorch',route='#soulx-singer-runtime',installed=bool(installed.get('soulx_singer')),state='ready' if installed.get('soulx_singer') else 'setup',label='SoulX-Singer Gesang',message='Gesangsaufnahme und Referenzstimme verwenden; kein Stimmtraining nötig.')
@@ -85,12 +80,6 @@ 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 soulx_singer import soulx_singer_model
if soulx_singer_model(model):
result.update(family='SoulX-Singer',evidence='Originales 24-kHz-Gesangsmodell',runtime='SoulX-Singer · Python/PyTorch',route='#soulx-singer-runtime',installed=bool(installed.get('soulx_singer')),state='ready' if installed.get('soulx_singer') else 'setup',label='SoulX-Singer Gesang',message='Gesangsaufnahme und Referenzstimme verwenden; kein Stimmtraining nötig.')
+1 -1
View File
@@ -1 +1 @@
<!doctype html><html lang="de"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Athena Deck</title><link rel="stylesheet" href="/style.css"><link rel="stylesheet" href="/dashboard.css"><link rel="stylesheet" href="/themes.css"><script src="/network-ui.js" defer></script><script src="/access-ui.js" defer></script><script src="/catalog-ui.js" defer></script><script src="/runtime-ui.js" defer></script><script src="/profiles-ui.js" defer></script><script src="/auto-test-ui.js" defer></script><script src="/chat-test-ui.js" defer></script><script src="/image-test-ui.js" defer></script><script src="/docker-ui.js" defer></script><script src="/stt-ui.js" defer></script><script src="/tts-ui.js" defer></script><script src="/voxcpm-ui.js" defer></script><script src="/voice-ui.js" defer></script><script src="/studio.js" defer></script><script src="/separator-ui.js" defer></script><script src="/music-ui.js" defer></script><script src="/seed-vc-ui.js" defer></script><script src="/soulx-singer-ui.js" defer></script><script src="/xvc-ui.js"></script><script src="/applio-ui.js" defer></script><script src="/acestep-ui.js" defer></script><script src="/audio-cpp-ui.js" defer></script><script src="/ltx-original-ui.js" defer></script><script src="/video-ui.js" defer></script><script src="/endpoint-ui.js" defer></script><script src="/dashboard-ui.js" defer></script><script src="/backup-ui.js" defer></script><script src="/app.js" defer></script></head><body><aside><a class="brand" href="#dashboard"><span>Α</span> ATHENA <b>DECK</b></a><p class="eyebrow">WORKSPACE / ATHENA</p><nav aria-label="Hauptnavigation"><p class="nav-heading">Übersicht</p><a href="#dashboard">Dashboard</a><a href="#home">Steuerung</a><p class="nav-heading">KI-Werkzeuge</p><a href="#chat">Chat &amp; Sprachmodelle</a><a href="#embeddings">Embeddings</a><a href="#image">Bildgenerierung</a><a href="#music">Musikgenerierung</a><a href="#separation">Audio-Trennung</a><a href="#audio">Sprachausgabe (TTS)</a><a href="#stt">Spracherkennung (STT)</a><a href="#voice">Stimmwerkzeuge</a><a href="#video">Videogenerierung</a><p class="nav-heading">Anwendungen</p><a href="#services">Weitere Dienste</a><p class="nav-heading">Einstellungen</p><a href="#runtimes">Laufzeiten</a><a href="#endpoint">Endpunkt</a><a href="#network">Netzwerk</a><a href="#access">Zugang &amp; API-Token</a><a href="#appearance">Darstellung</a><a href="#backup">Backup &amp; Wiederherstellung</a></nav><footer><i></i> Isolierte Entwicklungsumgebung<p>Eigener Modell-Router<br>Hardware · nur lesend</p></footer></aside><main><header><span>ATHENA CONTROL SURFACE</span><span class="pill">v0.7 · Router</span></header><div id="view"></div><p id="error" role="alert"></p></main></body></html>
<!doctype html><html lang="de"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Athena Deck</title><link rel="stylesheet" href="/style.css"><link rel="stylesheet" href="/dashboard.css"><link rel="stylesheet" href="/themes.css"><script src="/network-ui.js" defer></script><script src="/access-ui.js" defer></script><script src="/catalog-ui.js" defer></script><script src="/runtime-ui.js" defer></script><script src="/profiles-ui.js" defer></script><script src="/auto-test-ui.js" defer></script><script src="/chat-test-ui.js" defer></script><script src="/image-test-ui.js" defer></script><script src="/docker-ui.js" defer></script><script src="/stt-ui.js" defer></script><script src="/tts-ui.js" defer></script><script src="/voxcpm-ui.js" defer></script><script src="/voice-ui.js" defer></script><script src="/studio.js" defer></script><script src="/separator-ui.js" defer></script><script src="/music-ui.js" defer></script><script src="/soulx-singer-ui.js" defer></script><script src="/xvc-ui.js"></script><script src="/applio-ui.js" defer></script><script src="/acestep-ui.js" defer></script><script src="/audio-cpp-ui.js" defer></script><script src="/ltx-original-ui.js" defer></script><script src="/video-ui.js" defer></script><script src="/endpoint-ui.js" defer></script><script src="/dashboard-ui.js" defer></script><script src="/backup-ui.js" defer></script><script src="/app.js" defer></script></head><body><aside><a class="brand" href="#dashboard"><span>Α</span> ATHENA <b>DECK</b></a><p class="eyebrow">WORKSPACE / ATHENA</p><nav aria-label="Hauptnavigation"><p class="nav-heading">Übersicht</p><a href="#dashboard">Dashboard</a><a href="#home">Steuerung</a><p class="nav-heading">KI-Werkzeuge</p><a href="#chat">Chat &amp; Sprachmodelle</a><a href="#embeddings">Embeddings</a><a href="#image">Bildgenerierung</a><a href="#music">Musikgenerierung</a><a href="#separation">Audio-Trennung</a><a href="#audio">Sprachausgabe (TTS)</a><a href="#stt">Spracherkennung (STT)</a><a href="#voice">Stimmwerkzeuge</a><a href="#video">Videogenerierung</a><p class="nav-heading">Anwendungen</p><a href="#services">Weitere Dienste</a><p class="nav-heading">Einstellungen</p><a href="#runtimes">Laufzeiten</a><a href="#endpoint">Endpunkt</a><a href="#network">Netzwerk</a><a href="#access">Zugang &amp; API-Token</a><a href="#appearance">Darstellung</a><a href="#backup">Backup &amp; Wiederherstellung</a></nav><footer><i></i> Isolierte Entwicklungsumgebung<p>Eigener Modell-Router<br>Hardware · nur lesend</p></footer></aside><main><header><span>ATHENA CONTROL SURFACE</span><span class="pill">v0.7 · Router</span></header><div id="view"></div><p id="error" role="alert"></p></main></body></html>
-4
View File
@@ -227,8 +227,6 @@ class Profiles:
try:self._component(p['model'],role,p.get('components',{}).get(role))
except ValueError:p['blockers'].append(info['label']+' fehlt oder ist noch nicht zugeordnet.')
if applio_model(p.get('model')):p['blockers']=getattr(self,'applio_blockers',lambda p:['Applio-Worker fehlt.'])(p)
from seed_vc import seed_vc_model
if seed_vc_model(p.get('model')):p['blockers']=getattr(self,'seed_vc_blockers',lambda p:['Seed-VC-Worker fehlt.'])(p)
from soulx_singer import soulx_singer_model
if soulx_singer_model(p.get('model')):p['blockers']=getattr(self,'soulx_singer_blockers',lambda p:['SoulX-Singer-Worker fehlt.'])(p)
from xvc import xvc_model
@@ -354,8 +352,6 @@ class Profiles:
return item
def components(self,model_id,extra_repo=None):
model=self.catalog.entry(model_id)
from seed_vc import seed_vc_model
if seed_vc_model(model):return dict(supported=True,requirements=[],source='https://huggingface.co/Plachta/Seed-VC',license='gpl-3.0',runtime='Seed-VC · Python/PyTorch',runtime_route='#seed-vc-runtime',runtime_installed=not bool(getattr(self,'seed_vc_blockers',lambda p:['Laufzeit fehlt'])({'model':model})),worker_available=True,no_components=True,message='Gesangsdatei und Referenzstimme ohne Training umwandeln. Originales 44,1-kHz-Gesangsmodell; alle Zusatzgewichte gehören zum geprüften Laufzeitpaket. Originalprojekt archiviert.')
from soulx_singer import soulx_singer_model
if soulx_singer_model(model):return dict(supported=True,requirements=[],source='https://huggingface.co/Plachta/SoulX-Singer',license='apache-2.0',runtime='SoulX-Singer · Python/PyTorch',runtime_route='#soulx-singer-runtime',runtime_installed=not bool(getattr(self,'soulx_singer_blockers',lambda p:['Laufzeit fehlt'])({'model':model})),worker_available=True,no_components=True,message='Gesangsdatei und Referenzstimme ohne Training umwandeln. Originales 24-kHz-Gesangsmodell; alle Zusatzgewichte gehören zum geprüften Laufzeitpaket. ')
from xvc import xvc_model
-10
View File
@@ -1,10 +0,0 @@
window.SeedVCUI=(()=>{
function render(){const view=document.querySelector('#view');if(view.querySelector('#seed-vc-page'))return;
view.innerHTML='<div id="seed-vc-page"><h1>Seed-VC</h1><p>Reinen Gesang anhand einer Referenzstimme umwandeln, ohne Stimmtraining; die native Laufzeit und GPU steuert Athena Deck.</p><section class="card"><h2>Seed-VC einrichten</h2><p id="ap-status"></p><button id="ap-install">Laufzeit und Basisgewichte installieren</button><button id="ap-cancel" class="secondary">Installation abbrechen</button><details><summary>Installationsausgabe</summary><pre id="ap-log" style="white-space:pre-wrap;max-height:300px;overflow:auto"></pre></details></section><section class="card"><h2>Ausführung</h2><label>GPU für Seed-VC<select id="ap-device"><option value="3060">RTX 3060</option><option value="5080">RTX 5080</option></select></label><button id="ap-save">GPU speichern</button><p id="ap-state"></p><a id="ap-link" class="link" target="_blank" rel="noopener">Unsere Seed-VC-Oberfläche öffnen →</a><p>Vor einem Auftrag Seed-VC in Stimmwerkzeuge → Profile aktivieren und Steuerung → Stimmwerkzeuge starten. Immer nur ein Stimmwerkzeug-Profil aktiv.</p><p>Gewichte und Zusatzkomponenten werden aus ihren fest hinterlegten Originalquellen wiederhergestellt. Eigene Referenzaufnahmen und Ergebnisse separat sichern.</p></section><p id="ap-error" role="alert"></p></div>';
const root=view.firstChild,el=id=>root.querySelector('#'+id);el('ap-link').href=DeckLinks.url(8136,'/');let dirty=false;el('ap-device').onchange=()=>dirty=true;
async function api(path,data){const r=await fetch('/api/v1/'+path,data?{method:'POST',headers:{'Content-Type':'application/json','X-Athena-Deck':'1'},body:JSON.stringify(data)}:{});const d=await r.json();if(!r.ok)throw Error(d.error||'Aktion fehlgeschlagen.');return d;}
async function poll(){if(!root.isConnected)return;try{const s=await api('seed-vc-runtime'),a=await api('seed-vc');if(!root.isConnected)return;el('ap-status').textContent=s.job?.phase||(s.installed?'Seed-VC installiert.':'Laufzeit fehlt.');el('ap-install').disabled=s.installed||s.job?.state==='running';el('ap-cancel').disabled=s.job?.state!=='running';el('ap-state').textContent=a.active?'Seed-VC-Auftrag läuft.':a.selected_profile?'Aktives Profil: '+a.selected_profile:'Noch kein Seed-VC-Profil aktiv.';if(!dirty)el('ap-device').value=a.device;if(s.job)el('ap-log').textContent=(await api('seed-vc-runtime/log')).text;}catch(e){el('ap-error').textContent=e.message;}if(root.isConnected)setTimeout(poll,3000);}
for(const [id,path] of [['ap-install','seed-vc-runtime/install'],['ap-cancel','seed-vc-runtime/cancel']])el(id).onclick=async()=>{try{await api(path,{});}catch(e){el('ap-error').textContent=e.message;}};
el('ap-save').onclick=async()=>{try{await api('seed-vc/configure',{device:el('ap-device').value});dirty=false;}catch(e){el('ap-error').textContent=e.message;}};poll();
}return {render};
})();
-45
View File
@@ -1,45 +0,0 @@
"""Native Seed-VC UI backend, sharing Deck's voice-mode admission protocol."""
import json,os,signal,subprocess
from pathlib import Path
from applio import Applio
def seed_vc_model(model):return bool(model and model.get('kind')=='voice' and model.get('repo')=='Plachta/Seed-VC' and model.get('file')=='DiT_seed_v2_uvit_whisper_base_f0_44k_bigvgan_pruned_ft_ema_v2.pth' and (model.get('runtime_metadata') or {}).get('architecture')=='seed_vc')
class SeedVC(Applio):
label="Seed-VC"
def __init__(self,*args,**kwargs):
super().__init__(*args,**kwargs)
if not self.settings_path.exists():self.settings={'device':'5080'}
def selected(self):return next((p for p in self.profiles.status()['profiles'] if seed_vc_model(p.get('model')) and p['id'] in self.enabled() and p['runnable']),None)
def blockers(self,p):return [] if self.runtime.status()['installed'] else ['Seed-VC-Laufzeit unter Laufzeiten installieren.']
def status(self):
installed=self.runtime.status()['installed']
if installed:self.ensure()
selected=self.selected()
return dict(installed=installed,device=self.settings['device'],active=self.active,backend_running=bool(self.process and self.process.poll() is None),selected_profile=selected['name'] if selected else None)
def unload_idle(self):
if self.active:raise ValueError('Seed-VC-Auftrag läuft; Wechsel erst danach möglich.')
if self.process and self.process.poll() is None:
try:os.killpg(self.process.pid,signal.SIGTERM);self.process.wait(10)
except subprocess.TimeoutExpired:os.killpg(self.process.pid,signal.SIGKILL);self.process.wait()
except ProcessLookupError:pass
self.process=None
self.ensure() # fresh CPU-only UI process; no weights load before the next lease
def configure(self,data):
if set(data)!={'device'} or data['device'] not in ('3060','5080'):raise ValueError('RTX 3060 oder RTX 5080 auswählen.')
with self.lock:
if self.active:raise ValueError('Seed-VC-Auftrag läuft; GPU erst danach ändern.')
self.settings=dict(data);temp=self.settings_path.with_suffix('.tmp');temp.write_text(json.dumps(data));temp.replace(self.settings_path)
self.unload_idle()
return self.status()
def ensure(self):
with self.lock:
if self.process and self.process.poll() is None:return
python,source=self.runtime.paths()
if not python.is_file():return
from image_test import probe
gpu=next((g for g in probe() if self.settings['device'] in g['name']),None)
if not gpu:return
for name in ('results','uploads','tmp'):(self.root/name).mkdir(exist_ok=True)
env={k:v for k,v in os.environ.items() if not k.startswith(('HF_','DECK_'))}
env.update(SEED_VC_SOURCE=str(source),SEED_VC_ASSETS=str(source.parent/'assets'),SEED_VC_OUTPUT=str(self.root/'results'),SEED_VC_LEASE_SOCKET=str(self.socket),SEED_VC_BRIDGE_KEY_FILE=str(self.root/'bridge-key'),CUDA_VISIBLE_DEVICES=gpu['uuid'],HF_HUB_OFFLINE='1',HF_HUB_DISABLE_TELEMETRY='1',GRADIO_ANALYTICS_ENABLED='False',GRADIO_TEMP_DIR=str(self.root/'uploads'),TMPDIR=str(self.root/'tmp'),OMP_NUM_THREADS='4',PYTHONPATH=str(source))
script=Path(__file__).parent/'deploy/seed-vc-web/native_ui.py';log=(self.root/'backend.log').open('a')
self.process=subprocess.Popen([str(python),str(Path(__file__).parent/'applio_worker.py'),'--exec',str(python),str(script)],cwd=source,env=env,stdout=log,stderr=log,start_new_session=True);log.close()
-74
View File
@@ -1,74 +0,0 @@
"""Seed-VC inference environment and immutable, verified model sources; setup is CPU-only."""
import hashlib,json,os,shutil,sys,time,urllib.request
from pathlib import Path
from ltx_original_runtime import LTXOriginalRuntime
REVISION='51383efd921027683c89e5348211d93ff12ac2a8'
MODEL_REVISION=next(x['revision'] for x in json.loads(Path(__file__).with_name('seed_vc_sources.json').read_text()) if x['repo']=='Plachta/Seed-VC')
REPO='Plachta/Seed-VC'
ASSETS=json.loads(Path(__file__).with_name('seed_vc_sources.json').read_text())
RECIPE_HASH=hashlib.sha256(json.dumps(ASSETS,sort_keys=True).encode()).hexdigest()
class SeedVCRuntime(LTXOriginalRuntime):
name='Seed-VC'
def paths(self):
try:
ident=json.loads((self.root/'active.json').read_text())['id'];base=self.root/ident
if len(ident)==32 and all(c in '0123456789abcdef' for c in ident) and (base/'ready').read_text().strip()==REVISION:return base/'python/bin/python',base/'source'
except (OSError,ValueError,KeyError):pass
return self.root/'missing-python',self.root/'missing-source'
def status(self):
python,source=self.paths()
return dict(installed=python.is_file() and (source/'app_svc.py').is_file(),revision=REVISION,model_revision=MODEL_REVISION,recipe_hash=RECIPE_HASH,job=dict(self.job) if self.job else None,required_disk_gib=15,origin=REPO,worker_available=True,message='Gesang plus Referenzstimme → Gesang in der Zielstimme, 44,1 kHz. Originalprojekt archiviert; Testintegration. Installation lädt alle Komponenten; sie startet kein Modell.')
def ensure_library(self):
_,source=self.paths();base=source.parent;main=ASSETS[0];ident=hashlib.sha256((REPO+MODEL_REVISION+main['file']).encode()).hexdigest();folder=self.root.parent/'models'/ident;folder.mkdir(parents=True,exist_ok=True)
target=folder/'model.pth'
asset=base/'assets'/(main['repo'].replace('/','--')+'/'+main['file']);relative=os.path.relpath(asset,folder)
if target.is_symlink():
old=os.readlink(target)
if old not in (relative,str(asset),'/var/lib/deck/seed_vc-runtime/'+base.name+'/assets/'+(main['repo'].replace('/','--')+'/'+main['file'])):raise ValueError('Seed-VC-Bibliothekslink zeigt auf eine fremde Datei.')
if old!=relative:target.unlink();target.symlink_to(relative)
elif not target.exists():target.symlink_to(relative)
entry=dict(repo=REPO,revision=MODEL_REVISION,file=main['file'],kind='voice',size=main['size'],sha256=main['sha256'],upstream_hash_verified=True,downloaded_at=time.time(),runtime_metadata={'architecture':'seed_vc'})
(folder/'entry.json').write_text(json.dumps(entry));return ident
def _run(self):
base=self.root/self.job['id'];state='failed';phase='Seed-VC-Einrichtung fehlgeschlagen.'
try:
base.mkdir(mode=0o700);tmp=base/'tmp';tmp.mkdir();source=base/'source'
env=dict(os.environ,CUDA_VISIBLE_DEVICES='',TMPDIR=str(tmp),PIP_NO_INPUT='1',PIP_DISABLE_PIP_VERSION_CHECK='1',GIT_TERMINAL_PROMPT='0')
self._phase('Offiziellen Seed-VC-Quellcode beziehen')
for args in (['git','init',source],['git','-C',source,'fetch','--depth','1','https://github.com/Plachtaa/seed-vc.git',REVISION],['git','-C',source,'checkout','--detach','FETCH_HEAD']):self._command(args,env)
shared=self.image_runtime.paths()[0] if self.image_runtime else Path('/missing')
self._command([shared if shared.is_file() else sys.executable,'-m','venv',base/'python'],env);python=base/'python/bin/python'
self._phase('Isolierte Seed-VC-Abhängigkeiten installieren; keine GPU-Ausführung')
self._command([python,'-m','pip','install','--no-cache-dir','torch==2.8.0','torchaudio==2.8.0','--index-url','https://download.pytorch.org/whl/cu128'],env)
self._command([python,'-m','pip','install','--no-cache-dir','-r',Path(__file__).parent/'deploy/seed-vc-requirements.lock'],env)
self._phase('Seed-VC und alle Zusatzgewichte mit Prüfsummen herunterladen')
for item in ASSETS:
if self.cancel.is_set():raise InterruptedError()
dest=base/'assets'/(item['repo'].replace('/','--')+'/'+item['file']);dest.parent.mkdir(parents=True,exist_ok=True)
prefix='https://huggingface.co/'+item['repo']+'/resolve/'+item['revision']+'/'
sha=hashlib.sha256();git=hashlib.sha1(('blob '+str(item['size'])+'\0').encode())
with urllib.request.urlopen(prefix+item['file'],timeout=90) as response,dest.open('wb') as output:
while chunk:=response.read(4*1024**2):
if self.cancel.is_set():raise InterruptedError()
output.write(chunk);sha.update(chunk);git.update(chunk)
if dest.stat().st_size!=item['size'] or (sha.hexdigest()!=item['sha256'] if item['sha256'] else git.hexdigest()!=item['git_sha1']):raise ValueError('Seed-VC-Komponenten-Prüfsumme falsch: '+item['file'])
(base/'asset-sources.json').write_text(json.dumps(ASSETS,indent=2))
# Only inference dependencies; no training or desktop GUI packages.
self._command([python,'-c','import sys;sys.path.insert(0,sys.argv[1]);import torch,transformers,gradio,munch,soundfile,librosa,dac,audiotools,app_svc;from modules.length_regulator import InterpolateRegulator;assert not torch.cuda.is_available()',source],env)
self._command([python,'-m','pip','freeze'],env)
(base/'ready').write_text(REVISION);marker=self.root/'active.tmp';marker.write_text(json.dumps({'id':base.name}));marker.replace(self.root/'active.json');self.ensure_library();state='complete';phase='Seed-VC vorbereitet · nicht gestartet, kein Profil aktiviert'
except InterruptedError:state='cancelled';phase='Seed-VC-Einrichtung abgebrochen.'
except Exception as exc:phase=str(exc)
finally:
if state!='complete':shutil.rmtree(base,ignore_errors=True)
with self.lock:self.process=None;self.job.update(state=state,phase=phase,finished_at=time.time());self._save()
if __name__=='__main__':
import argparse
parser=argparse.ArgumentParser(description='Native Seed-VC installation; no model execution')
parser.add_argument('--state-root',type=Path,required=True)
args=parser.parse_args();runtime=SeedVCRuntime(args.state_root/'seed_vc-runtime',None)
if not runtime.status()['installed']:
runtime.start();runtime.worker.join()
print(json.dumps(runtime.status(),ensure_ascii=False))
raise SystemExit(0 if runtime.status()['installed'] else 1)
-74
View File
@@ -1,74 +0,0 @@
[
{
"repo": "Plachta/Seed-VC",
"revision": "257283f9f41585055e8f858fba4fd044e5caed6e",
"file": "DiT_seed_v2_uvit_whisper_base_f0_44k_bigvgan_pruned_ft_ema_v2.pth",
"size": 820865494,
"sha256": "42aef93ffe65857c840d270252fa040f7ba04514945ec460f3ac1ac2a96de684",
"git_sha1": "8b2509efe00f6b80e87eb12b1c6a070397f48047"
},
{
"repo": "Plachta/Seed-VC",
"revision": "257283f9f41585055e8f858fba4fd044e5caed6e",
"file": "config_dit_mel_seed_uvit_whisper_base_f0_44k.yml",
"size": 2408,
"sha256": null,
"git_sha1": "3c05377ba4553af5ee4b17b09a712d943277e4e3"
},
{
"repo": "funasr/campplus",
"revision": "e4b6ede7ce16997aff4ae69fbca1f0175e2afede",
"file": "campplus_cn_common.bin",
"size": 28036335,
"sha256": "3388cf5fd3493c9ac9c69851d8e7a8badcfb4f3dc631020c4961371646d5ada8",
"git_sha1": "ccc729ec7f373f8d2351be91c9efdc7b21c00384"
},
{
"repo": "lj1995/VoiceConversionWebUI",
"revision": "e6d0c1a17da07c33557852f9dfa2bd44cc75737d",
"file": "rmvpe.pt",
"size": 181184272,
"sha256": "6d62215f4306e3ca278246188607209f09af3dc77ed4232efdd069798c4ec193",
"git_sha1": "6362f060846875c3b5d7012adea5f97e47305e7e"
},
{
"repo": "nvidia/bigvgan_v2_44khz_128band_512x",
"revision": "95a9d1dcb12906c03edd938d77b9333d6ded7dfb",
"file": "bigvgan_generator.pt",
"size": 489041291,
"sha256": "d9fe7ec6bd0b44ed9d66973d5012d8181c1570b01e5c72df51973e241dccd357",
"git_sha1": "62587da4f496a621b2bee8bfc490f45c03031e83"
},
{
"repo": "nvidia/bigvgan_v2_44khz_128band_512x",
"revision": "95a9d1dcb12906c03edd938d77b9333d6ded7dfb",
"file": "config.json",
"size": 1403,
"sha256": null,
"git_sha1": "624a661dcef98677775b0b16d36dc9adb02a74bd"
},
{
"repo": "openai/whisper-small",
"revision": "973afd24965f72e36ca33b3055d56a652f456b4d",
"file": "model.safetensors",
"size": 966995080,
"sha256": "1d7734884874f1a1513ed9aa760a4f8e97aaa02fd6d93a3a85d27b2ae9ca596b",
"git_sha1": "b737d9fc4345d96e8f69b440ab742a269bf7e734"
},
{
"repo": "openai/whisper-small",
"revision": "973afd24965f72e36ca33b3055d56a652f456b4d",
"file": "config.json",
"size": 1967,
"sha256": null,
"git_sha1": "113bb3efe3a7396f2ea629eef12637bd8085238d"
},
{
"repo": "openai/whisper-small",
"revision": "973afd24965f72e36ca33b3055d56a652f456b4d",
"file": "preprocessor_config.json",
"size": 184990,
"sha256": null,
"git_sha1": "c2048dfa9fd94a052e62e908d2c4dfb18534b4d2"
}
]
+4 -22
View File
@@ -97,8 +97,6 @@ class Server(ThreadingHTTPServer):
self.applio_runtime=ApplioRuntime(self.catalog.root.parent/'applio-runtime',self.image_runtime)
from xvc_runtime import XVCRuntime
self.xvc_runtime=XVCRuntime(self.catalog.root.parent/'xvc-runtime',self.image_runtime)
from seed_vc_runtime import SeedVCRuntime
self.seed_vc_runtime=SeedVCRuntime(self.catalog.root.parent/'seed_vc-runtime',self.image_runtime)
from soulx_singer_runtime import SoulXSingerRuntime
self.soulx_singer_runtime=SoulXSingerRuntime(self.catalog.root.parent/'soulx_singer-runtime',self.image_runtime)
self.tts_runtime=TTSRuntime(self.catalog.root.parent/'tts-runtime')
@@ -150,18 +148,13 @@ class Server(ThreadingHTTPServer):
self.xvc=XVC(self.catalog.root.parent/'xvc-data',self.xvc_runtime,self.scheduler,self.profiles,lambda:self.endpoint.config['enabled_profiles'])
self.profiles.xvc_blockers=self.xvc.blockers;self.endpoint.xvc=self.xvc
self.xvc.ensure()
from seed_vc import SeedVC
self.seed_vc=SeedVC(self.catalog.root.parent/'seed_vc-data',self.seed_vc_runtime,self.scheduler,self.profiles,lambda:self.endpoint.config['enabled_profiles'])
self.profiles.seed_vc_blockers=self.seed_vc.blockers
self.endpoint.seed_vc=self.seed_vc
self.seed_vc.ensure()
from soulx_singer import SoulXSinger
self.soulx_singer=SoulXSinger(self.catalog.root.parent/'soulx_singer-data',self.soulx_singer_runtime,self.scheduler,self.profiles,lambda:self.endpoint.config['enabled_profiles'])
self.profiles.soulx_singer_blockers=self.soulx_singer.blockers
self.endpoint.soulx_singer=self.soulx_singer
self.soulx_singer.ensure()
def evict_voice():
self.voxcpm_tests.unload_idle();self.applio.unload_idle();self.xvc.unload_idle();self.seed_vc.unload_idle();self.soulx_singer.unload_idle()
self.voxcpm_tests.unload_idle();self.applio.unload_idle();self.xvc.unload_idle();self.soulx_singer.unload_idle()
self.scheduler.evict_voice=evict_voice
self.applio.ensure()
self.chat_tests=ChatTests(self.profiles,self.worker,self.scheduler)
@@ -265,7 +258,6 @@ class Server(ThreadingHTTPServer):
threading.Thread(target=preload_music,daemon=True).start()
def server_close(self):
if getattr(self,'seed_vc',None):self.seed_vc.stop()
if getattr(self,'soulx_singer',None):self.soulx_singer.stop()
if getattr(self,'xvc',None):self.xvc.stop()
if getattr(self,'applio',None):self.applio.stop()
@@ -424,7 +416,7 @@ class Handler(BaseHTTPRequestHandler):
'video':video_runtime.status().get('installed',False),
'acestep':self.server.acestep_runtime.status()['installed'],
'audio_cpp':self.server.audio_cpp_runtime.status()['installed'],
'soulx_singer':self.server.soulx_singer_runtime.status()['installed'],'seed_vc':self.server.seed_vc_runtime.status()['installed'],'xvc':self.server.xvc_runtime.status()['installed'],'applio':self.server.applio_runtime.status()['installed'],'omnivoice':self.server.omnivoice_runtime.status()['installed'],'voxcpm':self.server.voxcpm_runtime.status()['installed'],'music_worker':True,'separator':self.server.separator_runtime.status()['installed']}
'soulx_singer':self.server.soulx_singer_runtime.status()['installed'],'xvc':self.server.xvc_runtime.status()['installed'],'applio':self.server.applio_runtime.status()['installed'],'omnivoice':self.server.omnivoice_runtime.status()['installed'],'voxcpm':self.server.voxcpm_runtime.status()['installed'],'music_worker':True,'separator':self.server.separator_runtime.status()['installed']}
def execution_setup(self, model, profile=None, installed=None):
return execution_assess(model, self.execution_runtime_snapshot() if installed is None else installed, profile)
@@ -440,7 +432,7 @@ class Handler(BaseHTTPRequestHandler):
return self.respond({'error':'Anmeldung erforderlich.'},401)
if not self.authenticated() and self.path == '/':
return self.respond((ROOT/'login.html').read_bytes(), mime='text/html; charset=utf-8')
routes = {'/soulx-singer-ui.js':('soulx-singer-ui.js','text/javascript'),'/seed-vc-ui.js':('seed-vc-ui.js','text/javascript'),'/xvc-ui.js':('xvc-ui.js','text/javascript'),'/applio-ui.js':('applio-ui.js','text/javascript'),'/acestep-ui.js':('acestep-ui.js','text/javascript'),'/voice-ui.js':('voice-ui.js','text/javascript'),'/voxcpm-ui.js':('voxcpm-ui.js','text/javascript'),'/separator-ui.js':('separator-ui.js','text/javascript'),'/music-ui.js':('music-ui.js','text/javascript'),'/audio-cpp-ui.js':('audio-cpp-ui.js','text/javascript'),'/ltx-original-ui.js':('ltx-original-ui.js','text/javascript'),'/backup-ui.js':('backup-ui.js','text/javascript'),'/dashboard-ui.js':('dashboard-ui.js','text/javascript'),'/dashboard.css':('dashboard.css','text/css'),'/themes.css':('themes.css','text/css'),'/video-ui.js':('video-ui.js','text/javascript'),'/stt-ui.js':('stt-ui.js','text/javascript'),'/tts-ui.js':('tts-ui.js','text/javascript'),'/auto-test-ui.js':('auto-test-ui.js','text/javascript'),'/chat-test-ui.js':('chat-test-ui.js','text/javascript'),'/endpoint-ui.js':('endpoint-ui.js','text/javascript'),'/docker-ui.js': ('docker-ui.js','text/javascript'), '/': ('index.html', 'text/html; charset=utf-8'), '/app.js': ('app.js', 'text/javascript'), '/style.css': ('style.css', 'text/css'), '/network-ui.js': ('network-ui.js', 'text/javascript'), '/access-ui.js': ('access-ui.js', 'text/javascript'), '/studio.js': ('studio.js', 'text/javascript'), '/catalog-ui.js': ('catalog-ui.js','text/javascript'), '/runtime-ui.js': ('runtime-ui.js','text/javascript'), '/profiles-ui.js': ('profiles-ui.js','text/javascript'), '/image-test-ui.js': ('image-test-ui.js','text/javascript')}
routes = {'/soulx-singer-ui.js':('soulx-singer-ui.js','text/javascript'),'/xvc-ui.js':('xvc-ui.js','text/javascript'),'/applio-ui.js':('applio-ui.js','text/javascript'),'/acestep-ui.js':('acestep-ui.js','text/javascript'),'/voice-ui.js':('voice-ui.js','text/javascript'),'/voxcpm-ui.js':('voxcpm-ui.js','text/javascript'),'/separator-ui.js':('separator-ui.js','text/javascript'),'/music-ui.js':('music-ui.js','text/javascript'),'/audio-cpp-ui.js':('audio-cpp-ui.js','text/javascript'),'/ltx-original-ui.js':('ltx-original-ui.js','text/javascript'),'/backup-ui.js':('backup-ui.js','text/javascript'),'/dashboard-ui.js':('dashboard-ui.js','text/javascript'),'/dashboard.css':('dashboard.css','text/css'),'/themes.css':('themes.css','text/css'),'/video-ui.js':('video-ui.js','text/javascript'),'/stt-ui.js':('stt-ui.js','text/javascript'),'/tts-ui.js':('tts-ui.js','text/javascript'),'/auto-test-ui.js':('auto-test-ui.js','text/javascript'),'/chat-test-ui.js':('chat-test-ui.js','text/javascript'),'/endpoint-ui.js':('endpoint-ui.js','text/javascript'),'/docker-ui.js': ('docker-ui.js','text/javascript'), '/': ('index.html', 'text/html; charset=utf-8'), '/app.js': ('app.js', 'text/javascript'), '/style.css': ('style.css', 'text/css'), '/network-ui.js': ('network-ui.js', 'text/javascript'), '/access-ui.js': ('access-ui.js', 'text/javascript'), '/studio.js': ('studio.js', 'text/javascript'), '/catalog-ui.js': ('catalog-ui.js','text/javascript'), '/runtime-ui.js': ('runtime-ui.js','text/javascript'), '/profiles-ui.js': ('profiles-ui.js','text/javascript'), '/image-test-ui.js': ('image-test-ui.js','text/javascript')}
if self.path in routes:
name, mime = routes[self.path]
return self.respond((ROOT/name).read_bytes(), mime=mime)
@@ -472,11 +464,8 @@ class Handler(BaseHTTPRequestHandler):
if self.path == '/api/v1/xvc':return self.respond(self.server.xvc.status())
if self.path == '/api/v1/xvc-runtime':return self.respond(self.server.xvc_runtime.status())
if self.path == '/api/v1/xvc-runtime/log':return self.respond(self.server.xvc_runtime.log())
if self.path == '/api/v1/seed-vc':return self.respond(self.server.seed_vc.status())
if self.path == '/api/v1/soulx-singer':return self.respond(self.server.soulx_singer.status())
if self.path == '/api/v1/seed-vc-runtime':return self.respond(self.server.seed_vc_runtime.status())
if self.path == '/api/v1/soulx-singer-runtime':return self.respond(self.server.soulx_singer_runtime.status())
if self.path == '/api/v1/seed-vc-runtime/log':return self.respond(self.server.seed_vc_runtime.log())
if self.path == '/api/v1/soulx-singer-runtime/log':return self.respond(self.server.soulx_singer_runtime.log())
if self.path == '/api/v1/applio':return self.respond(self.server.applio.status())
if self.path == '/api/v1/applio-runtime':return self.respond(self.server.applio_runtime.status())
@@ -695,13 +684,6 @@ class Handler(BaseHTTPRequestHandler):
if data:raise ValueError('Keine Installationsparameter erwartet.')
return self.respond(self.server.xvc_runtime.stop() if self.path.endswith('/cancel') else self.server.xvc_runtime.start())
except ValueError as exc:return self.respond({'error':str(exc)},400)
if self.path in ('/api/v1/seed-vc-runtime/install','/api/v1/seed-vc-runtime/cancel','/api/v1/seed-vc/configure'):
try:
data=self.read_json()
if self.path.endswith('/configure'):return self.respond(self.server.seed_vc.configure(data))
if data:raise ValueError('Keine zusätzlichen Installationsfelder.')
return self.respond(self.server.seed_vc_runtime.stop() if self.path.endswith('/cancel') else self.server.seed_vc_runtime.start())
except (ValueError,OSError) as exc:return self.respond({'error':str(exc)},400)
if self.path in ('/api/v1/soulx-singer-runtime/install','/api/v1/soulx-singer-runtime/cancel','/api/v1/soulx-singer/configure'):
try:
data=self.read_json()
@@ -976,7 +958,7 @@ def main():
server.video.close()
server.endpoint.close()
server.stt.stop()
server.soulx_singer.stop();server.soulx_singer_runtime.stop();server.seed_vc.stop();server.seed_vc_runtime.stop();server.applio.stop();server.applio_runtime.stop();server.voxcpm_tests.stop();server.tts_tests.stop()
server.soulx_singer.stop();server.soulx_singer_runtime.stop();server.applio.stop();server.applio_runtime.stop();server.voxcpm_tests.stop();server.tts_tests.stop()
server.tts_runtime.stop();server.voxcpm_runtime.stop();server.omnivoice_runtime.stop()
server.image_runtime.stop()
server.ltx_original_runtime.stop()
+2 -3
View File
@@ -2,13 +2,13 @@
const Studio=(()=>{
let section='discover',category='';
const labels={embeddings:'Embeddings',chat:'Chat & Sprachmodelle',image:'Bildgenerierung',audio:'Sprachausgabe (TTS)',stt:'Spracherkennung (STT)',music:'Musikgenerierung',voice:'Stimmwerkzeuge',video:'Videogenerierung'};
const audioDescriptions={embeddings:'Text in Vektoren umwandeln – für Gedächtnis, Suche und Dokumente. Entdecken, Downloads und Profile sind verfügbar. EmbeddingGemma 300M QAT Q8_0 verwendet die vorhandene llama.cpp-Laufzeit auf CPU. Profil am Endpunkt freigeben und über /v1/embeddings nutzen. Chat bleibt getrennt.',audio:'Geschriebenen Text vorlesen lassen. Die Suche zeigt Text-to-Speech-Modelle.',stt:'Gesprochene Sprache in Text umwandeln. Die Suche zeigt Spracherkennungsmodelle.',music:'Musik und Klänge aus Text erzeugen. Die Hub-Kategorie Text-to-Audio umfasst neben Musik auch Geräusche und andere Audioerzeugung.',voice:'Sprache erzeugen, Stimmen gestalten und mit Referenz-Audio klonen. VoxCPM2, OmniVoice, Seed-VC und Applio/RVC nutzen Decks GPU-Steuerung. Weboberflächen unter Weitere Dienste.'};
const audioDescriptions={embeddings:'Text in Vektoren umwandeln – für Gedächtnis, Suche und Dokumente. Entdecken, Downloads und Profile sind verfügbar. EmbeddingGemma 300M QAT Q8_0 verwendet die vorhandene llama.cpp-Laufzeit auf CPU. Profil am Endpunkt freigeben und über /v1/embeddings nutzen. Chat bleibt getrennt.',audio:'Geschriebenen Text vorlesen lassen. Die Suche zeigt Text-to-Speech-Modelle.',stt:'Gesprochene Sprache in Text umwandeln. Die Suche zeigt Spracherkennungsmodelle.',music:'Musik und Klänge aus Text erzeugen. Die Hub-Kategorie Text-to-Audio umfasst neben Musik auch Geräusche und andere Audioerzeugung.',voice:'Sprache erzeugen, Stimmen gestalten und mit Referenz-Audio klonen. VoxCPM2, OmniVoice, SoulX-Singer und Applio/RVC nutzen Decks GPU-Steuerung. Weboberflächen unter Weitere Dienste.'};
function render(page,force=false,modelId=null){
if(page==='video'){VideoUI.runtime();return;}
if(!force&&document.querySelector('#studio')?.dataset.page===page)return;
if(category!==page){category=page;section='discover';}
if(modelId)section='profiles';
const body=page==='omnivoice-runtime'?VoxCPMUI.html().replaceAll('VoxCPM2','OmniVoice').replaceAll('VoxCPM','OmniVoice'):page==='voxcpm-runtime'?VoxCPMUI.html():page==='stt-runtime'?STTUI.html(true):page==='tts-runtime'?TTSUI.html(true):['docker-runtime','services'].includes(page)?DockerUI.html(page==='services'):page==='runtimes'?runtimeOverview():page==='image-runtime'?imageRuntime():page==='runtime'?RuntimeUI.html():`<div class="kicker">ATHENA / MODELLVERWALTUNG</div><h1>${labels[page]}</h1><p>${audioDescriptions[page]||'Modelle entdecken, herunterladen und mit gespeicherten Profilen konfigurieren.'}</p>${page==='voice'?'<p><a class="link" href="#soulx-singer-runtime">SoulX-Singer einrichten →</a> · <a class="link" href="#seed-vc-runtime">Seed-VC Gesang einrichten →</a> · <a class="link" href="#applio-runtime">Applio / RVC einrichten →</a> · <a class="link" href="#separator-runtime">Audio Separator einrichten →</a> · <a class="link" href="#separation">Audio-Trennung →</a></p><p class="note">Audio-Trennung nutzt die unterstützten Pakete im Audio-Separator-Bereich. Andere Hub-Dateien und Voice-Profile benötigen weiterhin eine geprüfte Anbindung.</p>':''}${audioDescriptions[page]&&!['audio','stt','music','voice','embeddings'].includes(page)?'<p class="note">Entdecken und Downloads sind verfügbar. Für diese Audio-Bereiche ist noch keine ausführbare Laufzeit in Deck angebunden. Gespeicherte Profile sind vorbereitend.</p>':''}<div class="studio-tabs" role="tablist" aria-label="Modellverwaltung">${[['discover','Entdecken'],['library','Bibliothek'],['downloads','Downloads'],['profiles','Profile'],...(['audio','stt'].includes(page)?[['setup','Einrichten']]:[]),...(['image','chat','audio','stt','music','voice'].includes(page)?[['test','Testen'],...(page==='chat'?[['auto','Auto-Test']]:[])]:[])].map(([id,label])=>`<button role="tab" aria-selected="${section===id}" class="${section===id?'chosen':'secondary'}" data-section="${id}">${label}</button>`).join('')}</div><div role="tabpanel">${section==='setup'?(page==='stt'?STTUI.html(true):TTSUI.html(true)):['test','running'].includes(section)&&page==='music'?MusicUI.html():['test','running'].includes(section)&&page==='stt'?STTUI.html():['test','running'].includes(section)&&page==='audio'?TTSUI.html():section==='test'&&page==='voice'?VoiceUI.html():section==='auto'?AutoTestUI.html():section==='test'?(page==='chat'?ChatTestUI.html():ImageTestUI.html()):section==='running'&&page==='image'?ImageTestUI.html(true):section==='profiles'?ProfilesUI.html():section==='running'&&page==='chat'?EndpointUI.runningHTML():section==='running'?'<section class="card"><h2>Keine von Deck gestarteten Modelle</h2><p>Profile werden auf Athena gespeichert. Für diesen Bereich ist noch kein Modellworker angebunden. Fehlende Komponenten stehen beim jeweiligen Profil.</p><a class="link" href="#runtime">llama.cpp-Builds verwalten →</a></section>':CatalogUI.html(section==='library',section==='downloads')}</div>`;
const body=page==='omnivoice-runtime'?VoxCPMUI.html().replaceAll('VoxCPM2','OmniVoice').replaceAll('VoxCPM','OmniVoice'):page==='voxcpm-runtime'?VoxCPMUI.html():page==='stt-runtime'?STTUI.html(true):page==='tts-runtime'?TTSUI.html(true):['docker-runtime','services'].includes(page)?DockerUI.html(page==='services'):page==='runtimes'?runtimeOverview():page==='image-runtime'?imageRuntime():page==='runtime'?RuntimeUI.html():`<div class="kicker">ATHENA / MODELLVERWALTUNG</div><h1>${labels[page]}</h1><p>${audioDescriptions[page]||'Modelle entdecken, herunterladen und mit gespeicherten Profilen konfigurieren.'}</p>${page==='voice'?'<p><a class="link" href="#soulx-singer-runtime">SoulX-Singer einrichten →</a> · <a class="link" href="#applio-runtime">Applio / RVC einrichten →</a> · <a class="link" href="#separator-runtime">Audio Separator einrichten →</a> · <a class="link" href="#separation">Audio-Trennung →</a></p><p class="note">Audio-Trennung nutzt die unterstützten Pakete im Audio-Separator-Bereich. Andere Hub-Dateien und Voice-Profile benötigen weiterhin eine geprüfte Anbindung.</p>':''}${audioDescriptions[page]&&!['audio','stt','music','voice','embeddings'].includes(page)?'<p class="note">Entdecken und Downloads sind verfügbar. Für diese Audio-Bereiche ist noch keine ausführbare Laufzeit in Deck angebunden. Gespeicherte Profile sind vorbereitend.</p>':''}<div class="studio-tabs" role="tablist" aria-label="Modellverwaltung">${[['discover','Entdecken'],['library','Bibliothek'],['downloads','Downloads'],['profiles','Profile'],...(['audio','stt'].includes(page)?[['setup','Einrichten']]:[]),...(['image','chat','audio','stt','music','voice'].includes(page)?[['test','Testen'],...(page==='chat'?[['auto','Auto-Test']]:[])]:[])].map(([id,label])=>`<button role="tab" aria-selected="${section===id}" class="${section===id?'chosen':'secondary'}" data-section="${id}">${label}</button>`).join('')}</div><div role="tabpanel">${section==='setup'?(page==='stt'?STTUI.html(true):TTSUI.html(true)):['test','running'].includes(section)&&page==='music'?MusicUI.html():['test','running'].includes(section)&&page==='stt'?STTUI.html():['test','running'].includes(section)&&page==='audio'?TTSUI.html():section==='test'&&page==='voice'?VoiceUI.html():section==='auto'?AutoTestUI.html():section==='test'?(page==='chat'?ChatTestUI.html():ImageTestUI.html()):section==='running'&&page==='image'?ImageTestUI.html(true):section==='profiles'?ProfilesUI.html():section==='running'&&page==='chat'?EndpointUI.runningHTML():section==='running'?'<section class="card"><h2>Keine von Deck gestarteten Modelle</h2><p>Profile werden auf Athena gespeichert. Für diesen Bereich ist noch kein Modellworker angebunden. Fehlende Komponenten stehen beim jeweiligen Profil.</p><a class="link" href="#runtime">llama.cpp-Builds verwalten →</a></section>':CatalogUI.html(section==='library',section==='downloads')}</div>`;
document.querySelector('#view').innerHTML=`<div id="studio" data-page="${page}">${body}</div>`;
document.querySelectorAll('[data-section]').forEach(b=>b.onclick=()=>{section=b.dataset.section;render(page,true);});
if(['docker-runtime','services'].includes(page)){DockerUI.bind(page==='services');return;}
@@ -42,7 +42,6 @@ const Studio=(()=>{
['Docker Engine','Weitere Dienste','docker-runtime','/api/v1/docker','Optionale Container-Umgebung. Erstinstallation über den Systemhelfer; vorhandenes Docker wird nicht automatisch aktualisiert.'],
['VoxCPM','Stimmwerkzeuge','voxcpm-runtime','/api/v1/voxcpm-runtime','Originale VoxCPM-Python-Laufzeit installieren. Vorhandene CUDA-Pakete wiederverwenden; Modellkomponenten separat. Sprachausgabe und Stimmklonen unter Stimmwerkzeuge testen.'],
['OmniVoice','Stimmwerkzeuge','omnivoice-runtime','/api/v1/omnivoice-runtime','Originale OmniVoice-Laufzeit für Voice Design und Klonen. Profile und Komponenten in Stimmwerkzeuge.'],
['Seed-VC Gesang','Stimmwerkzeuge','seed-vc-runtime','/api/v1/seed-vc-runtime','Gesang in eine Referenzstimme umwandeln, ohne Training. 44,1 kHz; Originalprojekt archiviert.'],
['SoulX-Singer Gesang','Stimmwerkzeuge','soulx-singer-runtime','/api/v1/soulx-singer-runtime','Gesang in eine Referenzstimme umwandeln, ohne Training. 24 kHz; vorhandenen Gesang umwandeln.'],
['X-VC','Stimmwerkzeuge','xvc-runtime','/api/v1/xvc-runtime','Audio-zu-Audio-Stimmumwandlung; native Laufzeit mit Resemble Enhance und bisheriger Oberfläche.'],
['Applio / RVC','Stimmwerkzeuge','applio-runtime','/api/v1/applio-runtime','Unsere eigene Oberfläche für Stimmen umwandeln, Live und Training. Native Applio-3.6.5-Laufzeit; GPU wird durch Deck gesteuert.'],
+6 -8
View File
@@ -70,14 +70,12 @@ class RestoreTests(unittest.TestCase):
self.assertTrue(doc['runtimes']['xvc'])
self.server.xvc_runtime.status=Mock(return_value=dict(installed=False,revision=REVISION,job=None));self.server.xvc_runtime.start=Mock();self.server.backup._wait=Mock()
self.server.backup.job=dict(state='running',items=[],completed=0,phase='Test');self.server.backup._runtimes(doc);self.server.xvc_runtime.start.assert_called_once();self.server.backup.job['state']='complete'
def test_seed_vc_runtime_recipe_reinstalls_verified_components(self):
from seed_vc_runtime import REVISION,RECIPE_HASH
self.server.seed_vc_runtime.status=Mock(return_value=dict(installed=True,revision=REVISION,job=None))
doc=self.server.backup.snapshot(include_history=False);validate(doc)
self.assertEqual(doc['runtime_versions']['seed_vc'],dict(code=REVISION,assets=RECIPE_HASH))
self.assertTrue(doc['runtimes']['seed_vc'])
self.server.seed_vc_runtime.status=Mock(return_value=dict(installed=False,revision=REVISION,job=None));self.server.seed_vc_runtime.start=Mock();self.server.backup._wait=Mock()
self.server.backup.job=dict(state='running',items=[],completed=0,phase='Test');self.server.backup._runtimes(doc);self.server.seed_vc_runtime.start.assert_called_once();self.server.backup.job['state']='complete'
def test_retired_seed_runtime_cannot_be_restored(self):
doc=self.server.backup.snapshot(include_history=False)
self.assertNotIn('seed_vc',doc['runtimes'])
doc['runtimes']['seed_vc']=True
summary=self.server.backup.inspect(seal(doc,'backup secure password'),'backup secure password')
self.assertTrue(any('Seed-VC wurde entfernt' in x for x in summary['blockers']),summary)
def test_private_rvc_metadata_survives_backup_and_has_no_fake_download(self):
ident=self.model();path=self.root/'models'/ident/'entry.json';entry=json.loads(path.read_text());entry.update(repo='local/mikes-applio',revision=entry['sha256'],kind='voice',file='voice.pth',runtime_metadata={'architecture':'rvc','tags':['private-trained-voice']});path.write_text(json.dumps(entry));(path.parent/'model.gguf').rename(path.parent/'model.pth')
doc=self.server.backup.snapshot(include_history=False);model=doc['models'][0]
-43
View File
@@ -1,43 +0,0 @@
import copy,hashlib,json,tempfile,time,unittest
from pathlib import Path
from types import SimpleNamespace
from unittest.mock import patch
from test_applio import Tests as LeaseTests
from seed_vc import SeedVC,seed_vc_model
from seed_vc_runtime import ASSETS,REVISION,MODEL_REVISION,REPO,RECIPE_HASH
from execution_setup import assess
class Tests(LeaseTests):
def setUp(self):
super().setUp();self.a.stop()
self.profile.update(name='Seed-VC',model=dict(repo=REPO,file=ASSETS[0]['file'],kind='voice',runtime_metadata={'architecture':'seed_vc'}))
self.a=SeedVC(Path(self.tmp.name),self.runtime,self.scheduler,self.profiles,lambda:self.active)
self.a.settings={'device':'3060'}
def test_real_profile_is_runnable_only_after_runtime_ready(self):
from catalog import Catalog
from profiles import Profiles
root=Path(self.tmp.name);catalog=Catalog(root/'models');ident=hashlib.sha256((REPO+MODEL_REVISION+ASSETS[0]['file']).encode()).hexdigest();folder=catalog.root/ident;folder.mkdir(parents=True)
(folder/'model.pth').write_bytes(b'test');(folder/'entry.json').write_text(json.dumps(dict(repo=REPO,revision=MODEL_REVISION,file=ASSETS[0]['file'],kind='voice',size=4,sha256='b'*64,runtime_metadata={'architecture':'seed_vc'})))
profiles=Profiles(root/'profiles.json',catalog);profiles.save(dict(id=None,revision=0,name='Seed-VC Studio',api_id='seed-vc-singing',kind='voice',model_id=ident,parameters={}))
profiles.seed_vc_blockers=lambda p:['Laufzeit fehlt'];self.assertFalse(profiles.status()['profiles'][0]['runnable'])
profiles.seed_vc_blockers=lambda p:[];self.assertTrue(profiles.status()['profiles'][0]['runnable'])
def test_rvc_recognition_does_not_guess_every_pth(self):
self.assertTrue(seed_vc_model(self.profile['model']));self.assertFalse(seed_vc_model(dict(kind='voice',file=ASSETS[0]['file'])))
result=assess(self.profile['model'],{'seed_vc':True});self.assertEqual(result['setup_steps'][1]['state'],'complete');self.assertEqual(result['components'],[])
def test_assets_have_fixed_verified_sources(self):
self.assertEqual(len(ASSETS),9)
for item in ASSETS:
self.assertEqual(len(item['revision']),40);self.assertGreater(item['size'],0);self.assertTrue(item['sha256'] or item['git_sha1'])
self.assertNotIn('..',Path(item['file']).parts)
self.assertEqual(len(RECIPE_HASH),64)
def test_apply_profile_refuses_running_deck(self):
from deploy.prepare_seed_vc import apply_profile
with patch('deploy.prepare_seed_vc.subprocess.run',return_value=SimpleNamespace(stdout=json.dumps([{'State':{'Running':True}}]))):
with self.assertRaisesRegex(ValueError,'Deck läuft'):apply_profile(self.tmp.name)
def test_container_backup_preserves_stopped_ui_and_rejects_unsafe_mount(self):
from deploy.docker_backup import validate
c=dict(name='athena-seed-vc-web',image='athena-seed-vc-web:0.1.0-deck1',registry=None,application='seed-vc-web',labels={'io.athena-deck.managed':'true','io.athena-deck.role':'application','io.athena-deck.application':'seed-vc-web'},env=[],entrypoint=None,cmd=None,user='65534:65534',uid=65534,workdir='/ui',network='host',ports={},restart='unless-stopped',memory=512*1024**2,nanocpus=10**9,running=False,build_recipe='seed-vc-web',unsupported=False,mounts=[dict(index=0,target='/run/secrets/seed-vc-bridge',read_only=True,deck_path='seed_vc-data/bridge-key',was_file=True,files={})])
self.assertFalse(validate(c)['running']);bad=copy.deepcopy(c);bad['mounts'][0]['read_only']=False
with self.assertRaises(ValueError):validate(bad)
if __name__=='__main__':unittest.main()