Commit 52756c7
authored
chore: add support for quantized versions of CV models CLIP, Style Transfer, EfficientNetV2, SSDLite (#940)
## Description
Adds support for quantized versions of CV models CLIP, Style Transfer,
EfficientNetV2, SSDLite and updates paths to non-quantized models
exported with ExecuTorch v1.1.0.
### Introduces a breaking change?
- [ ] Yes
- [x] No
### Type of change
- [ ] Bug fix (change which fixes an issue)
- [ ] New feature (change which adds functionality)
- [ ] Documentation update (improves or adds clarity to existing
documentation)
- [x] Other (chores, tests, code style improvements etc.)
### Tested on
- [x] iOS
- [x] Android
### Testing instructions
1. Run the Computer Vision example app:
- Object detection with model set to:
- `SSDLITE_320_MOBILENET_V3_LARGE`
- Classification with model set to:
- `EFFICIENTNET_V2_S`,
- `EFFICIENTNET_V2_S_QUANTIZED`
- Style transfer with model set to:
- `STYLE_TRANSFER_CANDY`,
- `STYLE_TRANSFER_MOSAIC`,
- `STYLE_TRANSFER_UDNIE`,
- `STYLE_TRANSFER_RAIN_PRINCESS`,
- `STYLE_TRANSFER_CANDY_QUANTIZED`,
- `STYLE_TRANSFER_MOSAIC_QUANTIZED`,
- `STYLE_TRANSFER_UDNIE_QUANTIZED`,
- `STYLE_TRANSFER_RAIN_PRINCESS_QUANTIZED`,
2. Run the Text Embeddings example app:
- CLIP embeddings with image model set to:
- `CLIP_VIT_BASE_PATCH32_IMAGE`,
- `CLIP_VIT_BASE_PATCH32_IMAGE_QUANTIZED`
3. Check HF pages for updated models:
-
https://huggingface.co/software-mansion/react-native-executorch-style-transfer-candy
-
https://huggingface.co/software-mansion/react-native-executorch-style-transfer-mosaic
-
https://huggingface.co/software-mansion/react-native-executorch-style-transfer-rain-princess
-
https://huggingface.co/software-mansion/react-native-executorch-style-transfer-udnie
-
https://huggingface.co/software-mansion/react-native-executorch-efficientnet-v2-s
-
https://huggingface.co/software-mansion/react-native-executorch-ssdlite320-mobilenet-v3-large
-
https://huggingface.co/software-mansion/react-native-executorch-clip-vit-base-patch32
### Screenshots
<!-- Add screenshots here, if applicable -->
### Related issues
Closes #719
### Checklist
- [x] I have performed a self-review of my code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have updated the documentation accordingly
- [x] My changes generate no new warnings
### Additional notes
<!-- Include any additional information, assumptions, or context that
reviewers might need to understand this PR. -->1 parent 6dd8fb6 commit 52756c7
File tree
9 files changed
+335
-84
lines changed- apps
- computer-vision/app
- classification
- semantic_segmentation
- style_transfer
- text-embeddings/app/clip-embeddings
- docs/docs
- 02-benchmarks
- 03-hooks/02-computer-vision
- packages/react-native-executorch/src/constants
9 files changed
+335
-84
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
4 | 7 | | |
5 | 8 | | |
6 | 9 | | |
| |||
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
16 | | - | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | | - | |
12 | | - | |
13 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
14 | 31 | | |
15 | 32 | | |
16 | 33 | | |
17 | | - | |
18 | | - | |
19 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
20 | 51 | | |
21 | 52 | | |
22 | 53 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
29 | 84 | | |
30 | 85 | | |
31 | 86 | | |
| |||
109 | 164 | | |
110 | 165 | | |
111 | 166 | | |
112 | | - | |
113 | | - | |
114 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
115 | 172 | | |
116 | 173 | | |
117 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
118 | 177 | | |
119 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
120 | 184 | | |
121 | 185 | | |
122 | | - | |
123 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
124 | 196 | | |
125 | 197 | | |
126 | | - | |
127 | | - | |
128 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
129 | 212 | | |
130 | 213 | | |
131 | 214 | | |
| |||
0 commit comments