Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 24, 2025
1 parent 2b584e0 commit 9f8277e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tiatoolbox/models/architecture/vanilla.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
import timm
import torch
import torchvision.models as torch_models
from torch import nn
from timm.layers import SwiGLUPacked
from torch import nn

from tiatoolbox.models.models_abc import ModelABC

Expand Down Expand Up @@ -164,7 +164,7 @@ def _get_timm_architecture(
"hf_hub:paige-ai/Virchow",
pretrained=pretrained,
mlp_layer=SwiGLUPacked,
act_layer=torch.nn.SiLU
act_layer=torch.nn.SiLU,
)

if arch_name == "Virchow2": # pragma: no cover
Expand All @@ -174,7 +174,7 @@ def _get_timm_architecture(
"hf_hub:paige-ai/Virchow2",
pretrained=pretrained,
mlp_layer=SwiGLUPacked,
act_layer=torch.nn.SiLU
act_layer=torch.nn.SiLU,
)

msg = f"Backbone {arch_name} not supported. "
Expand Down

0 comments on commit 9f8277e

Please sign in to comment.