Git Product home page Git Product logo

pytorch-softdtw's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar

pytorch-softdtw's Issues

What is the dimensions of the input?

I am a greenhand of pytorch, however, I now get x and y of (5089) size. 50 is the length of the array, and 8*9 is the dimension of the feature. How can I operate their dimensions so that I can input the criterion? Thx a lot.

assert len(x.shape) == len(y.shape) squeeze = False if len(x.shape) < 3: x = x.unsqueeze(0) y = y.unsqueeze(0) squeeze = True

CUDA implementation

Thanks again for your implementation!

Just wanted to let you know that I just released a fast CUDA implementation that's based on your code: https://github.com/Maghoumi/pytorch-softdtw-cuda

I made sure to give you credit and include a link to your repo wherever I included your CPU implementation. If there's any other note in particular that you'd like me to include, please let me know.

Alignment

I would like to use softdtw for alignment, not as a loss function.

You mention "the derivative is the same as the expected DTW path".

I am new to pytorch, how do I get this derivative? I tried the following,

out = torch.tensor([0.0,0,1,0], requires_grad=True).reshape((1,4,1))
target = torch.tensor([0.0,1,0,0]).reshape((1,4,1))

criterion = SoftDTW(gamma=1.0)
loss = criterion(out, target)
m = loss.backward()
print(m)

which prints "None".

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.