Comments (5)
I don't think window attention in Swin block requires square input. We can still use the pre-trained weights.
https://github.com/microsoft/Swin-Transformer/blob/968e6b5e428186dc99d19166996439c23dccc4d1/models/swin_transformer.py#L77
from multi-task-transformer.
Okay! Thanks for your reminder. I guess you modified all the window_size to a tuple/list form in the original swin_transformer.py
to an uneven height-width partition. But how did you use officially released pretrained parameters relative_position_bias_table
as the shape changes? By bilinear interpolation? And what size is the window_size set to? (14, 18) to main the same receptive field? or (7, 9)?
from multi-task-transformer.
I didn't change the window size so relative_position_bias_table here is not changed. Window size is independent from the input size.
from multi-task-transformer.
from multi-task-transformer.
You may check the swin transformer code here https://github.com/prismformore/Multi-Task-Transformer/blob/main/TaskPrompter/models/transformers/taskprompter_swin.py Get Outlook for Androidhttps://aka.ms/AAb9ysg
…
________________________________ From: samuel-zhaoy @.> Sent: Wednesday, April 10, 2024 10:34:49 PM To: prismformore/Multi-Task-Transformer @.> Cc: Hanrong Ye @.>; Comment @.> Subject: Re: [prismformore/Multi-Task-Transformer] How does the swin transformer deal with the input image with the size of 448 x 576 ? (Issue #29) Okay! Thanks for your reminder. I guess you modified all the window_size to a tuple/list form in the original swin_transformer.py to an uneven height-width partition. But how did you use officially released pretrained parameters relative_position_bias_tablehttps://github.com/microsoft/Swin-Transformer/blob/968e6b5e428186dc99d19166996439c23dccc4d1/models/swin_transformer.py#L101 as the shape changes? By bilinear interpolation? And what size is the window_size set to? (14, 18) to main the same receptive field? or (7, 9)? — Reply to this email directly, view it on GitHub<#29 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADLPY6XIHS3255SU2LAOJSLY4YOHTAVCNFSM6AAAAABF7XJOWOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBYHE2TOMBTGE. You are receiving this because you commented.Message ID: @.***>
Ok, thanks. I find that you pad the image to the shape which can be divisible by window_size.
from multi-task-transformer.
Related Issues (20)
- Inference HOT 7
- t-SNE HOT 9
- Human Parts HOT 1
- ViT-B version HOT 3
- Error with reading pre trained weight HOT 1
- Request for using newer version of openmm packages HOT 8
- Cityscapes 3D transfer into real world images HOT 5
- model weigths
- how to get bodyparts from images? HOT 3
- We assume all the images have the same size!!! HOT 1
- The inference process is stuck. HOT 7
- How to use nyud's pre training model in the inference.py HOT 4
- Dataset link is down HOT 2
- TypeError: TaskPrompter.__init__() got an unexpected keyword argument 'default_cfg' HOT 2
- depth files on NYUDv2 HOT 2
- Issue running inference.py - proper requirements file needed
- cannot import name 'iou3d_cuda'
- Where is the code of paper TaskExpert: Dynamically Assembling Multi-Task Representations with Memorial Mixture-of-Experts HOT 2
- epoch HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multi-task-transformer.