Skip to content

Commit eb17637

Browse files
authored
Merge pull request #1039 from adamjstewart/deps/pretrainedmodels
Vendor pretrainedmodels
2 parents 6c7eb25 + 3fa8c4d commit eb17637

File tree

17 files changed

+1539
-126
lines changed

17 files changed

+1539
-126
lines changed

docs/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ def get_version():
100100
"timm",
101101
"cv2",
102102
"PIL",
103-
"pretrainedmodels",
104103
"torchvision",
105104
"segmentation_models_pytorch.encoders",
106105
"segmentation_models_pytorch.utils",

licenses/LICENSES.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,18 @@ The majority of the code is licensed under the [MIT License](LICENSE). However,
1313
* [segmentation_models_pytorch/encoders/mix_transformer.py](https://github.com/qubvel/segmentation_models.pytorch/blob/main/segmentation_models_pytorch/encoders/mix_transformer.py)
1414
* [LICENSE_nvidia](LICENSE_nvidia.md)
1515

16-
1716
- Apple License
1817
* Applies to the MobileOne encoder
1918
* [segmentation_models_pytorch/encoders/mobileone.py](https://github.com/qubvel/segmentation_models.pytorch/blob/main/segmentation_models_pytorch/encoders/mobileone.py)
2019
* [LICENSE_apple](LICENSE_apple.md)
2120

2221
- BSD 3-Clause License
23-
* Applies to the DeepLabV3 decoder
22+
* Applies to several encoders and the DeepLabV3 decoder
23+
* [segmentation_models_pytorch/encoders/_dpn.py](https://github.com/qubvel/segmentation_models.pytorch/blob/main/segmentation_models_pytorch/encoders/_dpn.py)
24+
* [segmentation_models_pytorch/encoders/_inceptionresnetv2.py](https://github.com/qubvel/segmentation_models.pytorch/blob/main/segmentation_models_pytorch/encoders/_inceptionresnetv2.py)
25+
* [segmentation_models_pytorch/encoders/_inceptionv4.py](https://github.com/qubvel/segmentation_models.pytorch/blob/main/segmentation_models_pytorch/encoders/_inceptionv4.py)
26+
* [segmentation_models_pytorch/encoders/_senet.py](https://github.com/qubvel/segmentation_models.pytorch/blob/main/segmentation_models_pytorch/encoders/_senet.py)
27+
* [segmentation_models_pytorch/encoders/_xception.py](https://github.com/qubvel/segmentation_models.pytorch/blob/main/segmentation_models_pytorch/encoders/_xception.py)
2428
* [segmentation_models_pytorch/decoders/deeplabv3/decoder.py](https://github.com/qubvel/segmentation_models.pytorch/blob/main/segmentation_models_pytorch/decoders/deeplabv3/decoder.py)
2529

2630
- Apache-2.0 License

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ dependencies = [
2020
'huggingface-hub>=0.24',
2121
'numpy>=1.19.3',
2222
'pillow>=8',
23-
'pretrainedmodels>=0.7.1',
2423
'safetensors>=0.3.1',
25-
'six>=1.5',
2624
'timm>=0.9',
2725
'torch>=1.8',
2826
'torchvision>=0.9',

requirements/minimum.old

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
huggingface-hub==0.24.0
22
numpy==1.19.3
33
pillow==8.0.0
4-
pretrainedmodels==0.7.1
54
safetensors==0.3.1
6-
six==1.5.0
75
timm==0.9.0
86
torch==1.9.0
97
torchvision==0.10.0

requirements/required.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
huggingface_hub==0.28.0
22
numpy==2.2.2
33
pillow==11.1.0
4-
pretrainedmodels==0.7.4
54
safetensors==0.5.2
6-
six==1.17.0
75
timm==1.0.14
86
torch==2.6.0
97
torchvision==0.21.0

segmentation_models_pytorch/__init__.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import warnings
2-
31
from . import datasets
42
from . import encoders
53
from . import decoders
@@ -24,12 +22,6 @@
2422
from typing import Optional as _Optional
2523
import torch as _torch
2624

27-
# Suppress the specific SyntaxWarning for `pretrainedmodels`
28-
warnings.filterwarnings("ignore", message="is with a literal", category=SyntaxWarning)
29-
warnings.filterwarnings(
30-
"ignore", message=r'"is" with \'str\' literal.*', category=SyntaxWarning
31-
) # for python >= 3.12
32-
3325
_MODEL_ARCHITECTURES = [
3426
Unet,
3527
UnetPlusPlus,

0 commit comments

Comments
 (0)