Git Product home page Git Product logo

tf2_soft_dtw's People

Contributors

zzw922cn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

ishine

tf2_soft_dtw's Issues

How to use it as a custom loss function in tf?

Thank you very much for your share! Could you help me figure out how to implement the soft dtw as a custom loss in the deep learning training framework (in tf)? What I hope is to replace the RMSE/MAE.. metrics by the dtw. Thank you in advance.

Questions about your code

Running your code causes two problems.

In the line, soft_dtw_distance = batch_soft_dtw(a, b, gamma=0.01, metric="L1"), the code is not executed because no warp is given.

I put a warp value and ran the code, but I had the following error message.
'('custom_gradient function expected to return', 2, 'gradients but returned', 1, 'instead.')'

I tested the code based tf 2.3 and tf_nightly 2.5, and got the same error.

Thank you :D

@zzw922cn Hi, I'm a creator of TensorFlowTTS (https://github.com/TensorSpeech/TensorFlowTTS). I have a plan to reproduce Parallel Tacotron2 and will use this implementation :D. Thank you so much, it's not EZ to implement soft_dtw by TensorFlow since tf.Tensor still an immutable object and we need to use tf.TensorArray as an alternative solution.

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.