--- license: bsd-3-clause pipeline_tag: image-to-image library_name: executorch --- # style-transfer-candy This repository hosts the **style-transfer-candy** models exported for the [React Native ExecuTorch](https://www.npmjs.com/package/react-native-executorch) library as ExecuTorch `.pte` programs, ready to run on device. Upstream model: [style transfer](https://github.com/pytorch/examples/tree/main/fast_neural_style) ## Variants | Path | Backend | Precision | | --- | --- | --- | | `coreml/style_transfer_candy_coreml_fp16.pte` | coreml | fp16 | | `xnnpack/style_transfer_candy_xnnpack_fp32.pte` | xnnpack | fp32 | | `xnnpack/style_transfer_candy_xnnpack_int8.pte` | xnnpack | int8 | ## Unshipped backends A backend directory carrying a `NOTES.md` and no `.pte` was exported and not published. Its note records what went wrong. - `mlx` ([why](https://huggingface.co/software-mansion/react-native-executorch-style-transfer-candy/blob/main/mlx/NOTES.md)) ## Repository structure ``` LICENSE 3.4 kB config.json 42 B coreml/config.json 889 B coreml/style_transfer_candy_coreml_fp16.pte 3.6 MB mlx/NOTES.md 2.6 kB xnnpack/config.json 1.4 kB xnnpack/style_transfer_candy_xnnpack_fp32.pte 6.5 MB xnnpack/style_transfer_candy_xnnpack_int8.pte 1.8 MB ``` ## Compatibility These files are published for the **ExecuTorch v1.4.1** runtime. ExecuTorch gives no forward compatibility guarantee, so an older runtime may fail to load them. To use them in React Native ExecuTorch, pass the model constant shipped in the library's model registry to the corresponding task pipeline. See the [documentation](https://docs.swmansion.com/react-native-executorch/docs/fundamentals/downloading-models). To load these files in your own ExecuTorch runtime, read the [compatibility note](https://github.com/pytorch/executorch/blob/main/runtime/COMPATIBILITY.md) first.