Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ersi lig 3912 refactor mae to use timm vit #1461

Merged
merged 59 commits into from
Mar 6, 2024

Conversation

ersi-lightly
Copy link
Contributor

No description provided.

Copy link

codecov bot commented Dec 19, 2023

Codecov Report

Attention: Patch coverage is 23.68421% with 203 lines in your changes are missing coverage. Please review.

Project coverage is 82.07%. Comparing base (4dede59) to head (d89808f).

Files Patch % Lines
...y/models/modules/masked_vision_transformer_timm.py 0.00% 94 Missing ⚠️
...s/modules/masked_vision_transformer_torchvision.py 30.43% 48 Missing ⚠️
lightly/models/modules/masked_autoencoder_timm.py 0.00% 45 Missing ⚠️
lightly/models/modules/masked_autoencoder.py 84.84% 5 Missing ⚠️
lightly/models/utils.py 16.66% 5 Missing ⚠️
...ightly/models/modules/masked_vision_transformer.py 75.00% 4 Missing ⚠️
lightly/models/modules/__init__.py 33.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1461      +/-   ##
==========================================
- Coverage   84.35%   82.07%   -2.28%     
==========================================
  Files         140      144       +4     
  Lines        5802     6065     +263     
==========================================
+ Hits         4894     4978      +84     
- Misses        908     1087     +179     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

ersi-lightly and others added 14 commits February 23, 2024 18:31
* modified imagenette benchmark

* formatted

* edited vitb16 benchmark

* added the posibility to handle images of different sizes

* formatted

* removed comments

* revert

* changed import

* initialize class token

* specified that class token should be used

* chabged architecture

* addressed comments

* formatted

* Masked vision transformer (#1482)

* added hackathon

* changed comments

* formatted

* addressed comments

* fixed typing

* addressed comments

* added pre-norm and fixed arguments

* added masked vision transformer with Torchvision

* weight initialization

* cleanup

* modifies imagenette benchmark

* made mask token optional and adapted benchmarks

* removed unused import

* adapted to dynamic image size

* moved positional embed init  to utils

* updated benchmark

* adapted benchmark

* moved mask token to decoder

* revert example

* removed example

* removed file

* inheriting from Module

* reverted dataset paths

* use timm's drop_path_rate

* removed unused import

* removed private method

* changed slicing

* formatted

* path dropout only for fine tune

* formatted

* account for mask token in backbone

* mask token of decoder

* removed appending of mask token in params
Copy link
Contributor

@guarin guarin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Left some comments :)

examples/pytorch/mae.py Outdated Show resolved Hide resolved
docs/source/getting_started/install.rst Outdated Show resolved Hide resolved
examples/pytorch/mae.py Outdated Show resolved Hide resolved
examples/pytorch/mae.py Outdated Show resolved Hide resolved
examples/pytorch_lightning/msn.py Show resolved Hide resolved
examples/pytorch_lightning_distributed/pmsn.py Outdated Show resolved Hide resolved
lightly/models/modules/__init__.py Outdated Show resolved Hide resolved
lightly/models/modules/__init__.py Outdated Show resolved Hide resolved
lightly/models/modules/__init__.py Outdated Show resolved Hide resolved
lightly/models/modules/masked_autoencoder_timm.py Outdated Show resolved Hide resolved
lightly/models/modules/masked_vision_transformer_timm.py Outdated Show resolved Hide resolved
lightly/models/utils.py Show resolved Hide resolved
lightly/utils/dependency.py Outdated Show resolved Hide resolved
tests/models/modules/test_masked_autoencoder.py Outdated Show resolved Hide resolved
tests/models/modules/test_masked_autoencoder.py Outdated Show resolved Hide resolved
tests/models/modules/test_masked_autoencoder.py Outdated Show resolved Hide resolved
* renamed test class

* fixed imports

* ficed imports

* fixed import

* fixed imports and decreased batch size

* format

* removed comments

* use function defined in utils

* added docstrings

* added doctrings

* added docstring

* formatted

* formatted

* import Tensor
@ersi-lightly ersi-lightly merged commit 053327d into master Mar 6, 2024
8 of 10 checks passed
@ersi-lightly ersi-lightly deleted the ersi-lig-3912-refactor-mae-to-use-timm-vit branch March 6, 2024 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants