msluszniak commited on
Commit
f6aeb11
·
verified ·
1 Parent(s): 01dfb68

Apply the model card standard

Browse files
Files changed (1) hide show
  1. README.md +39 -27
README.md CHANGED
@@ -4,40 +4,52 @@ pipeline_tag: image-to-image
4
  library_name: executorch
5
  ---
6
 
7
- # Introduction
8
 
9
- This repository hosts the [style
10
- transfer](https://github.com/pytorch/examples/tree/main/fast_neural_style) candy
11
- models for the [React Native
12
- ExecuTorch](https://www.npmjs.com/package/react-native-executorch) library. It
13
- includes model exported for xnnpack, as well as coreml in `.pte` format, ready
14
- for use in the **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 this models outside of React Native ExecuTorch, make sure
23
- your runtime is compatible with the **ExecuTorch** version used to export the
24
- `.pte` files. For more details, see the compatibility note in the [ExecuTorch
25
- GitHub
26
- repository](https://github.com/pytorch/executorch/blob/11d1742fdeddcf05bc30a6cfac321d2a2e3b6768/runtime/COMPATIBILITY.md?plain=1#L4).
27
- If you work with React Native ExecuTorch, the constants from the library will
28
- guarantee compatibility with runtime used behind the scenes.
29
 
30
- These models were exported using **ExecuTorch** version 1.1.0 and no forward
31
- compatibility is guaranteed. Older versions of the runtime may not work with
32
- these files.
33
 
34
- ### Repository Structure
35
 
36
- The repository is organized into two main directories:
 
 
 
 
 
 
 
 
 
 
 
37
 
38
- - `xnnpack`
39
- - `coreml`
 
40
 
41
- Each directory contains differentely exported version of the model.
 
 
42
 
43
- - The `.pte` file should be passed to the `modelSource` parameter.
 
 
 
4
  library_name: executorch
5
  ---
6
 
7
+ # style-transfer-candy
8
 
9
+ This repository hosts the **style-transfer-candy** 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: [style transfer](https://github.com/pytorch/examples/tree/main/fast_neural_style)
 
 
14
 
15
+ ## Variants
16
+
17
+ | Path | Backend | Precision |
18
+ | --- | --- | --- |
19
+ | `coreml/style_transfer_candy_coreml_fp16.pte` | coreml | fp16 |
20
+ | `xnnpack/style_transfer_candy_xnnpack_fp32.pte` | xnnpack | fp32 |
21
+ | `xnnpack/style_transfer_candy_xnnpack_int8.pte` | xnnpack | int8 |
22
+
23
+ ## Unshipped backends
24
 
25
+ A backend directory carrying a `NOTES.md` and no `.pte` was exported and
26
+ not published. Its note records what went wrong.
 
 
 
 
 
27
 
28
+ - `mlx` ([why](https://huggingface.co/software-mansion/react-native-executorch-style-transfer-candy/blob/main/mlx/NOTES.md))
 
 
29
 
30
+ ## Repository structure
31
 
32
+ ```
33
+ LICENSE 3.4 kB
34
+ config.json 42 B
35
+ coreml/config.json 889 B
36
+ coreml/style_transfer_candy_coreml_fp16.pte 3.6 MB
37
+ mlx/NOTES.md 2.6 kB
38
+ xnnpack/config.json 1.4 kB
39
+ xnnpack/style_transfer_candy_xnnpack_fp32.pte 6.5 MB
40
+ xnnpack/style_transfer_candy_xnnpack_int8.pte 1.8 MB
41
+ ```
42
+
43
+ ## Compatibility
44
 
45
+ These files are published for the **ExecuTorch v1.4.1** runtime. ExecuTorch
46
+ gives no forward compatibility guarantee, so an older runtime may fail to load
47
+ them.
48
 
49
+ To use them in React Native ExecuTorch, pass the model constant shipped in the
50
+ library's model registry to the corresponding task pipeline. See the
51
+ [documentation](https://docs.swmansion.com/react-native-executorch/docs/fundamentals/loading-models).
52
 
53
+ To load these files in your own ExecuTorch runtime, read the
54
+ [compatibility note](https://github.com/pytorch/executorch/blob/main/runtime/COMPATIBILITY.md)
55
+ first.