msluszniak commited on
Commit
f6f9ca3
·
verified ·
1 Parent(s): 405c5ab

Apply the model card standard

Browse files
Files changed (1) hide show
  1. README.md +46 -21
README.md CHANGED
@@ -4,32 +4,57 @@ pipeline_tag: image-segmentation
4
  library_name: executorch
5
  ---
6
 
7
- # Introduction
8
 
9
- This repository hosts the instance segmentation
10
- [FastSAM](https://docs.ultralytics.com/models/fast-sam/) models
11
- for the [React Native
12
- ExecuTorch](https://www.npmjs.com/package/react-native-executorch) library. It
13
- includes models exported for xnnpack in `.pte` format, ready for use in the
14
- **ExecuTorch** runtime.
15
 
16
- If you'd like to run these models in your own ExecuTorch runtime, refer to the
17
- [official documentation](https://pytorch.org/executorch/stable/index.html) for
18
- setup instructions.
19
 
20
- # Compatibility
21
 
22
- If you intend to use these models outside of React Native ExecuTorch, make sure
23
- your runtime is compatible with the ExecuTorch version used to export the `.pte`
24
- files. For more details, see the compatibility note in the ExecuTorch GitHub
25
- repository. If you work with React Native ExecuTorch, the constants from the
26
- library will guarantee compatibility with runtime used behind the scenes.
 
27
 
28
- These models were exported using **ExecuTorch** version 1.2.0 and no forward
29
- compatibility is guaranteed. Older versions of the runtime may not work with
30
- these files.
31
 
 
 
32
 
33
- # Licencing
 
34
 
35
- Please note that Ultralytics shares YOLO under the AGPL-3.0 license. Due to the copyleft nature of this license, the models provided in this repository are also distributed under the terms of the AGPL-3.0.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  library_name: executorch
5
  ---
6
 
7
+ # fast-sam
8
 
9
+ This repository hosts the **fast-sam** models exported for the
10
+ [React Native ExecuTorch](https://www.npmjs.com/package/react-native-executorch)
11
+ library as ExecuTorch `.pte` programs, ready to run on device.
 
 
 
12
 
13
+ Upstream model: [FastSAM](https://docs.ultralytics.com/models/fast-sam/)
 
 
14
 
15
+ ## Variants
16
 
17
+ | Path | Backend | Precision |
18
+ | --- | --- | --- |
19
+ | `s/coreml/fast_sam_s_coreml_fp16.pte` | coreml | fp16 |
20
+ | `s/xnnpack/fast_sam_s_xnnpack_fp32.pte` | xnnpack | fp32 |
21
+ | `x/coreml/fast_sam_x_coreml_fp16.pte` | coreml | fp16 |
22
+ | `x/xnnpack/fast_sam_x_xnnpack_fp32.pte` | xnnpack | fp32 |
23
 
24
+ ## Unshipped backends
 
 
25
 
26
+ A backend directory carrying a `NOTES.md` and no `.pte` was exported and
27
+ not published. Its note records what went wrong.
28
 
29
+ - `s/mlx` ([why](https://huggingface.co/software-mansion/react-native-executorch-fast-sam/blob/main/s/mlx/NOTES.md))
30
+ - `x/mlx` ([why](https://huggingface.co/software-mansion/react-native-executorch-fast-sam/blob/main/x/mlx/NOTES.md))
31
 
32
+ ## Repository structure
33
+
34
+ ```
35
+ config.json 30 B
36
+ s/coreml/config.json 1.2 kB
37
+ s/coreml/fast_sam_s_coreml_fp16.pte 23.1 MB
38
+ s/mlx/NOTES.md 2.0 kB
39
+ s/xnnpack/config.json 1.2 kB
40
+ s/xnnpack/fast_sam_s_xnnpack_fp32.pte 45.2 MB
41
+ x/coreml/config.json 1.2 kB
42
+ x/coreml/fast_sam_x_coreml_fp16.pte 139 MB
43
+ x/mlx/NOTES.md 2.0 kB
44
+ x/xnnpack/config.json 1.2 kB
45
+ x/xnnpack/fast_sam_x_xnnpack_fp32.pte 276 MB
46
+ ```
47
+
48
+ ## Compatibility
49
+
50
+ These files are published for the **ExecuTorch v1.4.1** runtime. ExecuTorch
51
+ gives no forward compatibility guarantee, so an older runtime may fail to load
52
+ them.
53
+
54
+ To use them in React Native ExecuTorch, pass the model constant shipped in the
55
+ library's model registry to the corresponding task pipeline. See the
56
+ [documentation](https://docs.swmansion.com/react-native-executorch/docs/fundamentals/loading-models).
57
+
58
+ To load these files in your own ExecuTorch runtime, read the
59
+ [compatibility note](https://github.com/pytorch/executorch/blob/main/runtime/COMPATIBILITY.md)
60
+ first.