---
title: dacvae-watermarked
canonical_url: "https://www.modelscope.cn/models/facebook/dacvae-watermarked"
md_url: "https://www.modelscope.cn/models/facebook/dacvae-watermarked.md"
repository: facebook/dacvae-watermarked
last_updated: 2025-12-20
license: apache-2.0
library_name:
  - pytorch
frameworks:
  - pytorch
downloads: 71
stars: 0
---

# dacvae-watermarked

> dacvae-watermarked - facebook 在 ModelScope 开源的模型。DACVAE VAE version of the Descript Audio Codec, which has a continuous latent space. Descript Audio Codec (DAC) is a high fidelity general neural audio codec, introduced in the paper titled High-Fidelity Audio…

facebook/dacvae-watermarked 是 ModelScope 魔搭社区上的机器学习模型，采用 apache-2.0 许可。

- **Repository**: facebook/dacvae-watermarked
- **License**: apache-2.0
- **Downloads**: 71
- **Stars**: 0
- **Last updated**: 2025-12-20

Source: https://www.modelscope.cn/models/facebook/dacvae-watermarked

---

# DACVAE
VAE version of the [Descript Audio Codec](https://github.com/descriptinc/descript-audio-codec), which has a continuous latent space.
Descript Audio Codec (DAC) is a high fidelity general neural audio codec, introduced in the paper titled **High-Fidelity Audio Compression with Improved RVQGAN**.
Most code is adopted from the open-source repo [DAC](https://github.com/descriptinc/descript-audio-codec)

### Installation
```bash
$ pip install git+https://github.com/facebookresearch/dacvae
```

### Usage

```python
from dacvae import DACVAE
import torchaudio


model = DACVAE.load("facebook/dacvae-watermarked")
wav, sample_rate = torchaudio.load("<path to audio file>")
# Resample to expected sample rate
resampled = torchaudio.functional.resample(wav, sample_rate, model.sample_rate)
# Convert stero to mono (if applicable)
resampled = resampled.mean(dim=0, keepdim=True)
# Expected shape is batch x 1 x samples
model_input = resampled.unsqueeze(0)
encoded = model.encode(model_input)
# `decoded` shape is `batch x 1 x samples`
decoded = model.decode(encoded)
```

## Watermarking

The DAC-VAE decoder has been integrated with [Audioseal](https://github.com/facebookresearch/audioseal) to ensure all audios generated
contain watermarks that are verifiable independently. We develop a new watermarking model with adapted architecture specifically for
DAC-VAE to optimize the high-fidelity outcome. We also plan to release the detector API. Stay tuned !

## Contributing

See [contributing](CONTRIBUTING.md) and [code of conduct](CODE_OF_CONDUCT.md) for more information.

## License

This project is licensed under the SAM License - see the [LICENSE](LICENSE) file for details.
