Purpose and implementation of 're-flatten' Layer in Vision Transformer
1 次查看(过去 30 天)
显示 更早的评论
In MATLAB 2023b's Computer Vision Toolbox, there is a pre-trained vision Transformer model that includes patch embedding and re-flatten layers. What is the purpose of the re-flatten layer? Additionally, it seems that there is no "re-flatten" function in the Deep Learning Toolbox. Do I need to write this function myself?
2 个评论
xingxingcui
2024-1-4
I only see patch embedding layer,flatten layer,can't find re-flaten layers in MATLAB 2023b,can you post the re-flaten layer link?
回答(1 个)
Tijue
2024-2-12
Hello Zhou,
You can open the "visionTransformer" function and find the "re-flatten" layer at line 67.

0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
