Coder Social home page Coder Social logo

u-net-transformer's People

Contributors

hxlh50k avatar

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

Watchers

 avatar  avatar

u-net-transformer's Issues

Multi-head self/ cross attention

Hello:)
Thank you so much for sharing your code. It has been very useful in understanding the paper.

There is still something I don't quite get from the paper and the code. It From my understanding, the paper mentioned that the attention is calculated separately on multiple heads before being combined. However, I could not find how many heads are used in the code (not sure if I am confused about multi-head part). Could you point to where you defined the number of heads? I understand that in the paper, they did an experiment to analyse the number of attention heads for MHSA from 1 to 8.

Thank you.
Charlene

cannot import name 'amp' from 'torch.cuda'

Hi! Thank you for sharing the wonderful job.

When I ran the train.py, I got the errors like the following:

Traceback (most recent call last):
File "train.py", line 12, in
from torch.cuda import amp
ImportError: cannot import name 'amp' from 'torch.cuda' (/usr/local/lib/python3.7/dist-packages/torch/cuda/init.py)

I searched a lot and tried to find the resolution. It seems there is an issue with the version compatibility. What are your PyTorch version and CUDA version?
Thanks a lot!

Questions releated to the cross attention ?

Thank you for sharing the code. I'd like to ask a question regarding the MHSA module. In the original text, the output description seems to suggest attention weights, but why does the code directly output the result of V multiplied by attention?
image

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.