Skip to content

Fix/client comment issue - #3

Open
Flandern1211 wants to merge 4 commits into
RyneExplorer:masterfrom
Flandern1211:fix/client-comment-issue
Open

Fix/client comment issue#3
Flandern1211 wants to merge 4 commits into
RyneExplorer:masterfrom
Flandern1211:fix/client-comment-issue

Conversation

@Flandern1211

Copy link
Copy Markdown
Contributor

Summary

Fixes two issues with torchaudio/torchcodec in Docker container:

  1. torchaudio CUDA version mismatch: PyTorch is installed from CUDA 12.6 index but torchaudio was being pulled from PyPI with CUDA 12.8, causing RuntimeError: Detected that PyTorch and TorchAudio were compiled with different CUDA versions
  2. libnppicc.so.12 missing: torchcodec backend requires NVIDIA NPP library which was missing from the container

Changes

install.sh: Add torchaudio to pip install commands alongside torch and torchcodec from the same PyTorch index URL
requirements.txt: Remove torchaudio to avoid installing wrong version from PyPI
Dockerfile: Add libnppicc-12 package installation for torchcodec dependency

Test

Build the Docker image and run funasr_asr.py or subfix_webui.py without torchaudio/cuda version errors.

- 在 clientWR.go 文件中添加了关于 bug 修复的注释说明
- 在 clientWR.go 文件中添加了关于 bug 修复的注释说明
- 修改 writeMessage 函数返回实际写入字节数
- 添加对写入字节数为零的检查并返回错误
- 修复函数末尾错误返回值处理逻辑
- 删除了未使用的 bufio 和 io 导入包
- 移除了不再调用的 readMessage 函数实现
- 简化了客户端代码结构
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant