Skip to content

Commit

Permalink
Add timm version info to docs (#1517)
Browse files Browse the repository at this point in the history
* Add minimum timm version info to docs
* Update MAE transform import in docs
  • Loading branch information
guarin authored Mar 22, 2024
1 parent 489c87c commit 158cf74
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions docs/source/examples/mae.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ input image and using a shallow decoder architecture.
Reference:
`Masked Autoencoders Are Scalable Vision Learners, 2021 <https://arxiv.org/abs/2111.06377>`_

.. note::

MAE requires `TIMM <https://github.com/huggingface/pytorch-image-models>`_ to be
installed

.. code-block:: bash
pip install "timm>=0.9.9"
.. tabs::
.. tab:: PyTorch
Expand Down
2 changes: 1 addition & 1 deletion docs/source/getting_started/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ If you want to work use the Masked Autoencoder you need to additionally install

.. code-block:: bash
pip install timm
pip install "timm>=0.9.9"
Next Steps
------------
Expand Down
2 changes: 1 addition & 1 deletion examples/pytorch/mae.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from lightly.models import utils
from lightly.models.modules import MAEDecoderTIMM, MaskedVisionTransformerTIMM
from lightly.transforms.mae_transform import MAETransform
from lightly.transforms import MAETransform


class MAE(nn.Module):
Expand Down
2 changes: 1 addition & 1 deletion examples/pytorch_lightning/mae.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from lightly.models import utils
from lightly.models.modules import MAEDecoderTIMM, MaskedVisionTransformerTIMM
from lightly.transforms.mae_transform import MAETransform
from lightly.transforms import MAETransform


class MAE(pl.LightningModule):
Expand Down
2 changes: 1 addition & 1 deletion examples/pytorch_lightning_distributed/mae.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from lightly.models import utils
from lightly.models.modules import MAEDecoderTIMM, MaskedVisionTransformerTIMM
from lightly.transforms.mae_transform import MAETransform
from lightly.transforms import MAETransform


class MAE(pl.LightningModule):
Expand Down

0 comments on commit 158cf74

Please sign in to comment.