Restore runtime deps: models, dots.tts, torchvision shadow
Rebuild the venv half of the reconstruction. Adds the two CPU onnx detectors back under models/ (comic-text-detector, deepghs anime face, both gitignored), re-clones the dots.tts checkout, and records both recipes in requirements.txt so the next rebuild skips the archaeology. Two pre-existing environment breakages had to be cleared: - Arch's torchvision 0.25 is too old for torch 2.13, so every transformers model import died with "operator torchvision::nms does not exist". Shadowed with 0.28.0+rocm7.2 inside the venv only, so the system copy stays put. - dots_tts refuses to import when torch and torchaudio minors differ, and that pair is unsatisfiable here: 2.11 is the newest torchaudio ROCm wheel there is. Verified 2.11 loads and resamples against 2.13, then scoped a bypass around the import in both call sites. Self-checks 13/14. worker_layers still needs the ComfyUI workflow json, which legacy/ took with it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -13,3 +13,16 @@ transformers
|
||||
accelerate
|
||||
soundfile
|
||||
# system deps (not pip): ffmpeg, comfyui (external server)
|
||||
#
|
||||
# dots.tts (gitignored checkout, needed by worker_tts + scripts/pick_tts_voice). venv is built
|
||||
# --system-site-packages so it inherits Arch's rocm torch:
|
||||
# git clone https://github.com/rednote-hilab/dots.tts.git dots.tts
|
||||
# pip install -e ./dots.tts --no-deps --ignore-requires-python # py3.14 > its <3.13 pin, skips gradio
|
||||
# pip install librosa loguru einops torchdiffeq 'langcodes[data]' lingua-language-detector WeTextProcessing
|
||||
# pip install --no-deps --index-url https://download.pytorch.org/whl/rocm7.2 torchvision==0.28.0+rocm7.2
|
||||
# that last one is not optional: Arch's torchvision 0.25 is too old for torch 2.13, and every
|
||||
# transformers model import dies with "operator torchvision::nms does not exist" until it is shadowed.
|
||||
#
|
||||
# models/ (gitignored, CPU onnx for set-of-mark):
|
||||
# comictextdetector.pt.onnx <- github.com/zyddnys/manga-image-translator releases/beta-0.3
|
||||
# anime_face_v1.4_s.onnx <- huggingface.co/deepghs/anime_face_detection face_detect_v1.4_s/model.onnx
|
||||
|
||||
Reference in New Issue
Block a user