Document Ubuntu torch/pip recovery for requirements-whisper-stt.txt
- Add conda-first PyTorch install and broken-torch uninstall steps - Mirror guidance in README for OSError / missing ATen.h during pip Made-with: Cursor
This commit is contained in:
20
README.md
20
README.md
@@ -81,6 +81,26 @@ conda activate stt
|
||||
pip install -r requirements-whisper-stt.txt
|
||||
```
|
||||
|
||||
**Ubuntu에서 `pip install -r requirements-whisper-stt.txt` 가 torch 관련 `OSError` / `ATen.h` 없음 등으로 실패할 때**
|
||||
기존 `torch` 설치가 깨졌거나 pip가 교체 도중 멈춘 경우가 많습니다.
|
||||
|
||||
```bash
|
||||
conda activate stt # 또는 사용 중인 env (예: ncue)
|
||||
pip uninstall -y torch torchvision torchaudio
|
||||
pip uninstall -y torch torchvision torchaudio # Skipping만 나올 때까지 반복
|
||||
pip cache purge
|
||||
pip install torch torchaudio --index-url https://download.pytorch.org/whl/cpu
|
||||
pip install -r requirements-whisper-stt.txt
|
||||
```
|
||||
|
||||
애초에 꼬이지 않게 하려면 **PyTorch를 conda로 먼저** 깐 뒤 위 requirements만 pip로 설치하는 것을 권장합니다.
|
||||
|
||||
```bash
|
||||
conda activate stt
|
||||
conda install pytorch torchaudio cpuonly -c pytorch -y
|
||||
pip install -r requirements-whisper-stt.txt
|
||||
```
|
||||
|
||||
- **Hugging Face `hf` CLI**: `pip install huggingface_hub` 후 `hf auth login`, `hf download …` (화자 구분용 pyannote 모델 등).
|
||||
- **화자 구분(기본 켜짐)**: `./models/pyannote-diarization-3.1` 에 pyannote 스냅샷이 있어야 합니다. 없으면 스크립트가 `hf download` 안내 후 종료합니다. 모델 받기: [pyannote/speaker-diarization-3.1](https://huggingface.co/pyannote/speaker-diarization-3.1) 약관 동의 후 `hf auth login`, `hf download … --local-dir ./models/pyannote-diarization-3.1`. 다른 경로는 `--diarize-model-dir` 또는 `WHISPER_DIARIZE_MODEL_DIR` 로 지정.
|
||||
- **화자 구분 끄기**: `python whisper_stt.py 입력.m4a 출력.txt --no-diarize` (Whisper 통문만 저장)
|
||||
|
||||
Reference in New Issue
Block a user