Coder Social home page Coder Social logo

sekirorong / kan-autoencoder Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 2.11 MB

KAE : KAN-based AutoEncoder (AE, VAE, VQ-VAE, RVQ, etc.)

License: MIT License

Jupyter Notebook 88.71% Python 11.29%
ae autoencoder kan vae vq-vae deep-learning pytorch pytorch-vae audio audio-processing torchaudio rvq

kan-autoencoder's Introduction

KAE:KAN-AutoEncoder

This repo is heavily based on Blealtan's implement of KAN. The original implementation of KAN is available here.

Motivation

Intuitively, KAN seems a natural good representation of signals, especialy of audio signals which can be decomposed into sinusoidal signals.

Thus, this repo is created to investigate the potential of KAN to represent the sinusoidal signals and even more complicated signals.

How to use

Here I create two Juypter notebooks, one for KAN-based AutoEncoder and another for MLP-based AutoEncoder.

My toy example shows that KAN is way better than MLP in representing sinusoidal signals, which may indicate the great potential of KAN to be the new baseline of AutoEncoder.

List of supported KAN-based Autoencoders

Results & Interesting Findings

Firstly, KAE is able to compress a 128-dimension unseen sinusoidal signal into 5 dimensions and reconstruct the signal back to 128 dimensions approximately lossless:

recon_signal.jpg

Another interesting finding is KAE can be utilised as a mixer for two different signals:

mix_signal.jpg

Then I try to scale up the experiments, using real music sequence instead of toy dimensional signals, the dataset I use can be found here.

It turns out that, KAN is able to reconstruct real, noisy, comlicate music sequence with few parameters:

recon_music.jpg

And still can be utilised as a mixer for different audio signals.

mix_music.jpg

Here is a KAN-based VAE model, a KAN-based VQ-VAE model and a * KAN-based RVQ model.

RVQ model seems converge way slower than vanilla VQ-VAE. Maybe the average strategy to update the codebook leads to this slow converge?

kan-autoencoder's People

Contributors

sekirorong avatar

Stargazers

 avatar  avatar  avatar zhaowenhao avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.