Xuban commited on
Commit
1ffafae
·
verified ·
1 Parent(s): 584ce1d

Initial upload: LibreDeepLabv3mv3-sem (DeepLabv3, BSD-3-Clause implied)

Browse files
Files changed (5) hide show
  1. .gitattributes +0 -34
  2. LICENSE +30 -0
  3. LibreDeepLabv3mv3-sem.pt +3 -0
  4. NOTICE +17 -0
  5. README.md +78 -0
.gitattributes CHANGED
@@ -1,35 +1 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bz2 filter=lfs diff=lfs merge=lfs -text
5
- *.ckpt filter=lfs diff=lfs merge=lfs -text
6
- *.ftz filter=lfs diff=lfs merge=lfs -text
7
- *.gz filter=lfs diff=lfs merge=lfs -text
8
- *.h5 filter=lfs diff=lfs merge=lfs -text
9
- *.joblib filter=lfs diff=lfs merge=lfs -text
10
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
- *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
- *.model filter=lfs diff=lfs merge=lfs -text
13
- *.msgpack filter=lfs diff=lfs merge=lfs -text
14
- *.npy filter=lfs diff=lfs merge=lfs -text
15
- *.npz filter=lfs diff=lfs merge=lfs -text
16
- *.onnx filter=lfs diff=lfs merge=lfs -text
17
- *.ot filter=lfs diff=lfs merge=lfs -text
18
- *.parquet filter=lfs diff=lfs merge=lfs -text
19
- *.pb filter=lfs diff=lfs merge=lfs -text
20
- *.pickle filter=lfs diff=lfs merge=lfs -text
21
- *.pkl filter=lfs diff=lfs merge=lfs -text
22
  *.pt filter=lfs diff=lfs merge=lfs -text
23
- *.pth filter=lfs diff=lfs merge=lfs -text
24
- *.rar filter=lfs diff=lfs merge=lfs -text
25
- *.safetensors filter=lfs diff=lfs merge=lfs -text
26
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
- *.tar.* filter=lfs diff=lfs merge=lfs -text
28
- *.tar filter=lfs diff=lfs merge=lfs -text
29
- *.tflite filter=lfs diff=lfs merge=lfs -text
30
- *.tgz filter=lfs diff=lfs merge=lfs -text
31
- *.wasm filter=lfs diff=lfs merge=lfs -text
32
- *.xz filter=lfs diff=lfs merge=lfs -text
33
- *.zip filter=lfs diff=lfs merge=lfs -text
34
- *.zst filter=lfs diff=lfs merge=lfs -text
35
- *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  *.pt filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
LICENSE ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) Soumith Chintala 2016,
4
+
5
+ All rights reserved.
6
+
7
+ Redistribution and use in source and binary forms, with or without
8
+ modification, are permitted provided that the following conditions are met:
9
+
10
+ * Redistributions of source code must retain the above copyright notice, this
11
+ list of conditions and the following disclaimer.
12
+
13
+ * Redistributions in binary form must reproduce the above copyright notice,
14
+ this list of conditions and the following disclaimer in the documentation
15
+ and/or other materials provided with the distribution.
16
+
17
+ * Neither the name of the copyright holder nor the names of its contributors
18
+ may be used to endorse or promote products derived from this software without
19
+ specific prior written permission.
20
+
21
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
25
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
LibreDeepLabv3mv3-sem.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fb83a67bca845817d816d139af6fb6a4b9d809c0a813ebcfcb1e2a5fbd222682
3
+ size 44325189
NOTICE ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ LibreDeepLabv3mv3-sem weights
2
+ -----------------------------
3
+
4
+ This product contains weights released by torchvision
5
+ (https://github.com/pytorch/vision) at commit 336d36e8db990a905498c73933e35231876e28bc.
6
+ Official checkpoint: deeplabv3_mobilenet_v3_large-fc3c493d.pth
7
+ Copyright (c) Soumith Chintala 2016 and torchvision contributors.
8
+
9
+ The checkpoint has no separate per-object license file. Redistribution uses
10
+ the releasing project's BSD-3-Clause license on an explicitly disclosed
11
+ implied basis; this is not a publisher-confirmed checkpoint-specific grant.
12
+ Torchvision warns that pretrained-model terms may derive from training data
13
+ and users must determine permission for their use case. COCO annotations are
14
+ CC BY 4.0 and source images retain their individual Flickr terms.
15
+
16
+ Conversion removes only the training-time auxiliary classifier and adds
17
+ LibreYOLO metadata. Every retained learned tensor is unchanged.
README.md ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: bsd-3-clause
3
+ library_name: libreyolo
4
+ pipeline_tag: image-segmentation
5
+ datasets:
6
+ - detection-datasets/coco
7
+ tags:
8
+ - semantic-segmentation
9
+ - deeplabv3
10
+ - torchvision
11
+ - pascal-voc
12
+ - libreyolo
13
+ ---
14
+
15
+ # LibreDeepLabv3mv3-sem
16
+
17
+ DeepLabv3 semantic segmentation with dilated MobileNetV3-Large, output stride 16, repackaged for
18
+ LibreYOLO. It predicts background plus 20 Pascal VOC-named foreground classes
19
+ from a checkpoint trained on the matching COCO subset. This is DeepLabv3, not
20
+ DeepLabv3+; there is no decoder or CRF.
21
+
22
+ ```python
23
+ from libreyolo import LibreYOLO
24
+
25
+ model = LibreYOLO("LibreDeepLabv3mv3-sem.pt")
26
+ result = model.predict("image.jpg")
27
+ mask = result.semantic_mask.data
28
+ ```
29
+
30
+ ## Source
31
+
32
+ Derived from [pytorch/vision](https://github.com/pytorch/vision) at commit
33
+ [`336d36e8db990a905498c73933e35231876e28bc`](https://github.com/pytorch/vision/commit/336d36e8db990a905498c73933e35231876e28bc)
34
+ (torchvision v0.26.0). Copyright (c) Soumith Chintala 2016 and torchvision
35
+ contributors. The source implementation is BSD-3-Clause.
36
+
37
+ Official checkpoint: [deeplabv3_mobilenet_v3_large-fc3c493d.pth](https://download.pytorch.org/models/deeplabv3_mobilenet_v3_large-fc3c493d.pth)
38
+ Bytes: `44356159`
39
+ SHA-256: `fc3c493d68e89cc31ef488c803d5d7dd2f3190fb570598faa49fef69be8e5e70`
40
+ Published mIoU / pixel accuracy: 60.3 / 91.2.
41
+
42
+ The published metrics use torchvision's aspect-preserving evaluation preset.
43
+ LibreYOLO uses a fixed 520x520 stretch deployment contract, followed by
44
+ ImageNet normalization and restoration of the output mask to the source
45
+ canvas, so end-to-end metrics can differ.
46
+
47
+ ## Modifications and verification
48
+
49
+ Conversion removes only the training-time `aux_classifier.*` tensors and adds
50
+ LibreYOLO v1.0 checkpoint metadata. Every retained runtime tensor and state-dict
51
+ key is unchanged. The native 520x520 logits are bit-exact against the pinned
52
+ torchvision implementation before postprocessing (`max_abs_diff == 0.0`).
53
+
54
+ The fixed-shape deployment graph was also tested through LibreYOLO's unified
55
+ backend:
56
+
57
+ - ONNX Runtime CPU: 100% identical public mask pixels; maximum logit difference
58
+ `3.06e-5`.
59
+ - TorchScript: bit-exact logits and 100% identical public mask pixels.
60
+ - OpenVINO CPU: 99.9876% identical public mask pixels using
61
+ the runtime's default reduced-precision execution hint.
62
+ - TensorRT 10.16 FP32 on RTX 5070 Ti: 99.9851% identical public
63
+ mask pixels.
64
+
65
+ The converted file has `44325189` bytes and SHA-256
66
+ `fb83a67bca845817d816d139af6fb6a4b9d809c0a813ebcfcb1e2a5fbd222682`. See `docs/provenance/deeplabv3.md` and
67
+ `weights/convert_deeplabv3_weights.py` in the
68
+ [LibreYOLO source repository](https://github.com/LibreYOLO/libreyolo).
69
+
70
+ ## License
71
+
72
+ The checkpoint publisher did not attach a separate per-object license file.
73
+ This mirror applies the releasing project's BSD-3-Clause license on an
74
+ **implied, not publisher-confirmed**, basis. Torchvision warns that pretrained
75
+ models may have licenses or terms derived from training data and that users
76
+ must determine whether they have permission for their use case. COCO
77
+ annotations are CC BY 4.0; source images retain their individual Flickr terms.
78
+ See [`LICENSE`](./LICENSE) and [`NOTICE`](./NOTICE).