项目
在 GitHub 查看
PABannier/encodec.cpp
关于
Fast neural codec compression and generation for audio waveforms
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- -1
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文encodec.cpp

High-performance inference of Meta's Encodec deep learning based audio codec model:
- Plain C/C++ implementation without dependencies using ggml
Demo
Here is a demo of running Encodec on a single M1 MacBook Pro:
https://github.com/PABannier/encodec.cpp/assets/12958149/d11561be-98e9-4504-bba7-86bcc233a499
Roadmap
- Support of 24Khz model
- Mixed F16 / F32 precision
- 4-bit and 8-bit quantization
- Metal support
- CoreML support
Implementation details
- The core tensor operations are implemented in C (ggml.h / ggml.c)
- The encoder-decoder architecture and the high-level C-style API are implemented in C++ (encodec.h / encodec.cpp)
- Basic usage is demonstrated in main.cpp.
Usage
Here are the steps for the encodec model.
Get the code
git clone --recurse-submodules https://github.com/PABannier/encodec.cpp.git
cd encodec.cpp
Build
In order to build encodec.cpp you must use CMake:
mkdir build
cd build
cmake ..
cmake --build . --config Release
Using Metal
Offloading to GPU is possible with the Metal backend for MacOS. Performance are not improved but the power consumption and CPU activity is reduced.
cmake -DGGML_METAL=ON -DBUILD_SHARED_LIBS=Off ..
cmake --build . --config Release
Using cuBLAS
The inference can be offloaded on a CUDA backend with cuBLAS.
cmake -DGGML_CUBLAS=ON -DBUILD_SHARED_LIBS=Off ..
cmake --build . --config Release
探索相关项目
加载中…