Skip to content

Commit eeac398

Browse files
docs: clarify licensing and add third-party attributions
- Add code-level attribution in backbones.py for the foundation models.
1 parent 0e08b49 commit eeac398

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/spatial_transcript_former/models/backbones.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ def __init__(
4848
norm_layer=None,
4949
flatten=True,
5050
):
51+
"""
52+
Note: architecture adapted from CTransPath (Wang et al., 2022)
53+
Original source: https://github.com/Xiyue-Wang/CTransPath (GPLv3)
54+
"""
5155
super().__init__()
5256

5357
assert patch_size == 4
@@ -139,6 +143,8 @@ def get_backbone(name, pretrained=True, num_classes=None):
139143
raise ImportError("timm is required for ctranspath")
140144

141145
# CTransPath: Swin-T with ConvStem
146+
# Note: Weights are fetched from a community mirror (1aurent) on HF.
147+
# Original License: Academic/Non-commercial use only.
142148
model = timm.create_model(
143149
"swin_tiny_patch4_window7_224",
144150
pretrained=False,

0 commit comments

Comments
 (0)