zzw922cn / tf2_soft_dtw Goto Github PK
View Code? Open in Web Editor NEWCustom TensorFlow2 implementations of forward and backward computation of soft-DTW algorithm in batch mode.
Custom TensorFlow2 implementations of forward and backward computation of soft-DTW algorithm in batch mode.
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.
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.
@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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.