← Open Source
acids-ircam

ddsp_pytorch

Implementation of Differentiable Digital Signal Processing (DDSP) in Pytorch.

ModelsAudio/Speech modelsC
Open on GitHub
Momentum
+0stars in 24 hours0.0%
517
Stars
62
Forks
+0
This week
2
Contributors
Created 2019-10-06 · Updated 2026-09-07 · #17922 today
Top developers
caillonantoineacids-ircam

acids-ircam/ddsp_pytorch is ranked 17,922 with 517 stars.

Same-category comparison

acids-ircam/ddsp_pytorch is ranked 17,922 among these 8 peers; zhuyu-cs/MeanFlow is ranked 17,938.

Same-category comparison
NameRankMetrics
rshaojimmy/MultiModal-DeepFake17,860
Language:
Python
Stars:
520
Forks:
44
Description:
[TPAMI 2024 & CVPR 2023] PyTorch code for DGM4: Detecting and Grounding Multi-Modal Media Manipulation and beyond.
NVlabs/DiffiT17,868
Language:
Python
Stars:
519
Forks:
21
Description:
[ECCV 2024] Official Repository for DiffiT: Diffusion Vision Transformers for Image Generation.
SCIR-TG/FengZhengLLM17,893
Language:
Python
Stars:
518
Forks:
1
r9y9/gantts17,903
Language:
Jupyter Notebook
Stars:
518
Forks:
116
Description:
PyTorch implementation of GAN-based text-to-speech synthesis and voice conversion (VC).
zhuyu-cs/MeanFlow17,938
Language:
Python
Stars:
517
Forks:
38
Description:
Pytorch implementation of MeanFlow on ImageNet and CIFAR10.
MAGICS-LAB/DNABERT_217,942
Language:
Shell
Stars:
516
Forks:
103
Description:
[ICLR 2024] DNABERT-2: Efficient Foundation Model and Benchmark for Multi-Species Genome.
KangLiao929/Puffin17,962
Language:
Python
Stars:
515
Forks:
23
Description:
Puffin Series: Towards Unified Multimodal 3D World Models.
Atten4Vis/LW-DETR17,980
Language:
Python
Stars:
514
Forks:
47
Description:
This repository is an official implementation of the paper "LW-DETR: A Transformer Replacement to YOLO for Real-Time Detection".
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguageC
CategoryModels
SubcategoryAudio/Speech models
KeywordsAudio production, Model architecture, Music
Stars517
Forks62
Contributors2
Created date2019-10-06
Updated date2026-09-07
Stars in 1 day0
Stars in 7 days0
Rank17,922
Previous rank17,699
Rank change-223
7-day stars rank16,372
Previous 7-day stars rank16,382
7-day stars rank change10
Total stars rank18,867
Previous total stars rank18,846
Total stars rank change-21
CountryFrance
README summary

Differentiable Digital Signal Processing Implementation of the DDSP model using PyTorch. This implementation can be exported to a torchscript model, ready to be used inside a realtime environment (see this video). ), then preprocess your data using You can then train your model using Once trained, export it using It will produce a file named , that you can use inside a python environment like that Realtime usage **Be sure that the defined in is a power of 2 if you want

to use the model in realtime! ** If you want to use DDSP in realtime (yeah), we provide a pure data external wrapping everything. Export your trained model using This will disable the reverb and enable the use of the model in realtime. For now the external works on CPU, but you can enable GPU accelerated inference by changing to . The first inlet must be a pitch signal, the second a loudness signal. It can be directly plugged to the object

for real-time timbre transfer. You can then apply the exported impulse response using a convolution reverb (such as from the library). Compilation You will need , a C++ compiler, and somewhere on your computer. Then, run If you already have installed via pip inside a virtual environment, you can use the following : By default, it will install the external in .

Frequently asked questions

How many stars and forks are recorded?

acids-ircam/ddsp_pytorch has 517 stars and 62 forks.

What is the repository rank?

acids-ircam/ddsp_pytorch is ranked 17,922.

What language and category are recorded?

acids-ircam/ddsp_pytorch has 517 stars, uses C and belongs to Models.

Which repository is closest in rank?

acids-ircam/ddsp_pytorch is compared with zhuyu-cs/MeanFlow, ranked 17,938 with 517 stars.

README

Differentiable Digital Signal Processing

Implementation of the DDSP model using PyTorch. This implementation can be exported to a torchscript model, ready to be used inside a realtime environment (see this video).

Pretrained models

instrument realtime preprocessing sampling rate link
saxophone true sigmund~ 48kHz download
violin true sigmund~ 48kHz download

Usage

Edit the config.yaml file to fit your needs (audio location, preprocess folder, sampling rate, model parameters...), then preprocess your data using

python preprocess.py

You can then train your model using

python train.py --name mytraining --steps 10000000 --batch 16 --lr .001

Once trained, export it using

python export.py --run runs/mytraining/

It will produce a file named ddsp_pretrained_mytraining.ts, that you can use inside a python environment like that

import torch

model = torch.jit.load("ddsp_pretrained_mytraining.ts")

pitch = torch.randn(1, 200, 1)
loudness = torch.randn(1, 200, 1)

audio = model(pitch, loudness)

Realtime usage

Be sure that the block_size defined in config.yaml is a power of 2 if you want to use the model in realtime!

If you want to use DDSP in realtime (yeah), we provide a pure data external wrapping everything. Export your trained model using

python export.py --run runs/mytraining/ --realtime true

This will disable the reverb and enable the use of the model in realtime. For now the external works on CPU, but you can enable GPU accelerated inference by changing realtime/ddsp_tilde/ddsp_model.h DEVICE to torch::kCUDA. Inside Pd, simply send load your_model.ts to the ddsp~ object. The first inlet must be a pitch signal, the second a loudness signal. It can be directly plugged to the sigmund~ object for real-time timbre transfer.

You can then apply the exported impulse response using a convolution reverb (such as partconv~ from the bsaylor library).

Compilation

You will need cmake, a C++ compiler, and libtorch somewhere on your computer. Then, run

cd realtime
mkdir build
cd build
cmake ../ -DCMAKE_PREFIX_PATH=/path/to/libtorch -DCMAKE_BUILD_TYPE=Release
make install

If you already have pytorch installed via pip inside a virtual environment, you can use the following PREFIX_PATH:

cmake ../ -DCMAKE_PREFIX_PATH=~/miniconda3/lib/python3.X/site-packages/torch -DCMAKE_BUILD_TYPE=Release
make install

By default, it will install the external in ~/Documents/Pd/externals.

Nearby in the ranking
Similar items