• Vasilis Vryniotis's avatar
    Add support of MViTv2 video variants (#6373) · 7e8186e0
    Vasilis Vryniotis authored
    * Extending to support MViTv2
    
    * Fix docs, mypy and linter
    
    * Refactor the relative positional code.
    
    * Code refactoring.
    
    * Rename vars.
    
    * Update docs.
    
    * Replace assert with exception.
    
    * Updat docs.
    
    * Minor refactoring.
    
    * Remove the square input limitation.
    
    * Moving methods around.
    
    * Modify the shortcut in the attention layer.
    
    * Add ported weights.
    
    * Introduce a `residual_cls` config on the attention layer.
    
    * Make the patch_embed kernel/padding/stride configurable.
    
    * Apply changes from code-review.
    
    * Remove stale todo.
    7e8186e0
test_models.py 33.3 KB