Skip to content

Commit 5eb2a5e

Browse files
Bump timm from 1.0.14 to 1.0.15 in /requirements (microsoft#2610)
* Bump timm from 1.0.14 to 1.0.15 in /requirements Bumps [timm](https://github.com/huggingface/pytorch-image-models) from 1.0.14 to 1.0.15. - [Release notes](https://github.com/huggingface/pytorch-image-models/releases) - [Commits](huggingface/pytorch-image-models@v1.0.14...v1.0.15) --- updated-dependencies: - dependency-name: timm dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Remove type ignores --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Adam J. Stewart <[email protected]>
1 parent db0c0b2 commit 5eb2a5e

File tree

18 files changed

+24
-24
lines changed

18 files changed

+24
-24
lines changed

experiments/ssl4eo/flops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
for model in models:
1818
print(f'Model: {model}')
1919

20-
m = timm.create_model(model, num_classes=num_classes, in_chans=in_channels) # type: ignore[attr-defined]
20+
m = timm.create_model(model, num_classes=num_classes, in_chans=in_channels)
2121

2222
# Calculate memory requirements of model
2323
mem_params = sum([p.nelement() * p.element_size() for p in m.parameters()])

requirements/required.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ rasterio==1.4.3
1616
rtree==1.3.0
1717
segmentation-models-pytorch==0.4.0
1818
shapely==2.0.7
19-
timm==1.0.14
19+
timm==1.0.15
2020
torch==2.6.0
2121
torchmetrics==1.6.1
2222
torchvision==0.21.0

tests/models/test_resnet.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def mocked_weights(
3434
load_state_dict_from_url: None,
3535
) -> WeightsEnum:
3636
path = tmp_path / f'{weights}.pth'
37-
model = timm.create_model('resnet18', in_chans=weights.meta['in_chans']) # type: ignore[attr-defined]
37+
model = timm.create_model('resnet18', in_chans=weights.meta['in_chans'])
3838
torch.save(model.state_dict(), path)
3939
try:
4040
monkeypatch.setattr(weights.value, 'url', str(path))
@@ -78,7 +78,7 @@ def mocked_weights(
7878
load_state_dict_from_url: None,
7979
) -> WeightsEnum:
8080
path = tmp_path / f'{weights}.pth'
81-
model = timm.create_model('resnet50', in_chans=weights.meta['in_chans']) # type: ignore[attr-defined]
81+
model = timm.create_model('resnet50', in_chans=weights.meta['in_chans'])
8282
torch.save(model.state_dict(), path)
8383
try:
8484
monkeypatch.setattr(weights.value, 'url', str(path))
@@ -122,7 +122,7 @@ def mocked_weights(
122122
load_state_dict_from_url: None,
123123
) -> WeightsEnum:
124124
path = tmp_path / f'{weights}.pth'
125-
model = timm.create_model('resnet152', in_chans=weights.meta['in_chans']) # type: ignore[attr-defined]
125+
model = timm.create_model('resnet152', in_chans=weights.meta['in_chans'])
126126
torch.save(model.state_dict(), path)
127127
try:
128128
monkeypatch.setattr(weights.value, 'url', str(path))

tests/models/test_vit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def mocked_weights(
2727
load_state_dict_from_url: None,
2828
) -> WeightsEnum:
2929
path = tmp_path / f'{weights}.pth'
30-
model = timm.create_model( # type: ignore[attr-defined]
30+
model = timm.create_model(
3131
weights.meta['model'], in_chans=weights.meta['in_chans']
3232
)
3333
torch.save(model.state_dict(), path)

tests/trainers/test_byol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def mocked_weights(
8989
load_state_dict_from_url: None,
9090
) -> WeightsEnum:
9191
path = tmp_path / f'{weights}.pth'
92-
model = timm.create_model( # type: ignore[attr-defined]
92+
model = timm.create_model(
9393
weights.meta['model'], in_chans=weights.meta['in_chans']
9494
)
9595
torch.save(model.state_dict(), path)

tests/trainers/test_classification.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def mocked_weights(
126126
load_state_dict_from_url: None,
127127
) -> WeightsEnum:
128128
path = tmp_path / f'{weights}.pth'
129-
model = timm.create_model( # type: ignore[attr-defined]
129+
model = timm.create_model(
130130
weights.meta['model'], in_chans=weights.meta['in_chans']
131131
)
132132
torch.save(model.state_dict(), path)

tests/trainers/test_moco.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def mocked_weights(
9191
load_state_dict_from_url: None,
9292
) -> WeightsEnum:
9393
path = tmp_path / f'{weights}.pth'
94-
model = timm.create_model( # type: ignore[attr-defined]
94+
model = timm.create_model(
9595
weights.meta['model'], in_chans=weights.meta['in_chans']
9696
)
9797
torch.save(model.state_dict(), path)

tests/trainers/test_regression.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def mocked_weights(
115115
load_state_dict_from_url: None,
116116
) -> WeightsEnum:
117117
path = tmp_path / f'{weights}.pth'
118-
model = timm.create_model( # type: ignore[attr-defined]
118+
model = timm.create_model(
119119
weights.meta['model'], in_chans=weights.meta['in_chans']
120120
)
121121
torch.save(model.state_dict(), path)
@@ -273,7 +273,7 @@ def mocked_weights(
273273
load_state_dict_from_url: None,
274274
) -> WeightsEnum:
275275
path = tmp_path / f'{weights}.pth'
276-
model = timm.create_model( # type: ignore[attr-defined]
276+
model = timm.create_model(
277277
weights.meta['model'], in_chans=weights.meta['in_chans']
278278
)
279279
torch.save(model.state_dict(), path)

tests/trainers/test_segmentation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def mocked_weights(
139139
load_state_dict_from_url: None,
140140
) -> WeightsEnum:
141141
path = tmp_path / f'{weights}.pth'
142-
model = timm.create_model( # type: ignore[attr-defined]
142+
model = timm.create_model(
143143
weights.meta['model'], in_chans=weights.meta['in_chans']
144144
)
145145
torch.save(model.state_dict(), path)

tests/trainers/test_simclr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def mocked_weights(
8989
load_state_dict_from_url: None,
9090
) -> WeightsEnum:
9191
path = tmp_path / f'{weights}.pth'
92-
model = timm.create_model( # type: ignore[attr-defined]
92+
model = timm.create_model(
9393
weights.meta['model'], in_chans=weights.meta['in_chans']
9494
)
9595
torch.save(model.state_dict(), path)

0 commit comments

Comments
 (0)