Support React Native #118
Support for ReactNative
1aefcb6f
Correct module import
38acc1e1
Update package-lock
0d7faf0b
fix errors
c1da2c8f
fix error
bb550f1d
Merge branch 'xenova:main' into main
35d8f18c
Prevent fallback WASM on RN
83cd1e65
Let native side load binary file, instead load as buffer
f64e61b6
Fix 0 size tensor
85d75ef1
Correct version
392dc67a
Constantly fetch arraybuffer
c9cada90
Replace `Uint8Array` as `Buffer` on RN
20f128ff
Revert version
891a0a45
Merge native codes
fd302ae3
Fix test
37e89cfe
Disable `image-encode` and `image-decode` for web
9ee75049
Sync code
91ecc47f
Use `RNFS.downloadFile` to avoid OOM on large model file.
17bc3e89
Correct download progress order
58c2468f
Fix bug
52be4db9
Merge branch 'xenova:main' into main
e0683b36
Fix error
362a0c75
xenova
commented
on 2023-05-19
Use `interpolate_data` instead `resize-image-data`
c633a2d5
Correct params
798edec0
Support `react-native-gcanvas` to improve image parse performance
8c66b314
Correct algorithm impl
874340ce
Use `interpolate_data` to resize
e9c28720
Reuse code
7fad900e
`ImageData` not need wrap with `Uint8ClampedArray`
327fb599
Add switch to enable use GCanvas
ac854254
Support gCanvas on `resize`, `crop` and `pad`
7b9232fc
Force use latest `jpeg-js`
47711c88
Use `XRegExp` to support unicode on RN
c2f01bd7
xenova
commented
on 2023-05-21
Revert "Use `XRegExp` to support unicode on RN"
185c58fd
hans00
marked this pull request as ready for review 2 years ago
xenova
commented
on 2023-05-21
xenova
commented
on 2023-05-21
xenova
commented
on 2023-05-21
Add missing var
e86687db
Set `useGCanvas` default true, instead env check
b7521c5c
Log full tensor on browser
1730bea3
Merge branch 'xenova:main' into main
ff649222
Update package-lock.json
0e544402
hans00
changed the title Support ReactNative Support React Native 2 years ago
Use dynamic import to select backend
3f32b71e
Add `onnxruntime-react-native` in optional
fd0fa221
Set browser ignore
3edb5921
Fix runtime setup
4f6b7881
Default export `onnxruntime-common`
0ac4b4eb
Add missing var
0a260c5e
Fix `browser` field for `react-native`
7b2667bc
Fix import
28e8f8de
Fix build
80698446
Allow fallback `web` on node-like environment
a5682ddc
Merge branch 'main' into merge
77ac38e6
Merge branch 'main' into merge
57e4bc83
Merge branch 'xenova:main' into merge
eee34a4f
Correct variable
e09f2d97
Fix error on load model
9e7d629d
Merge branch 'main' into merge
311cb9c5
Merge branch 'main' into merge
6f85b285
Merge branch 'main' into merge
f27121d2
Correct package.json
973f33ab
Export `isReady` promise
d70abf9a
Merge branch 'main' into merge
44f06682
Use `react-native` field to replace module
dff8dbbf
Merge branch 'xenova:main' into merge
7d49523a
Add missing optionalDeps
4b63d925
Merge branch 'main' into merge
2050020e
Fix config file never cache
d6d42dc6
Merge branch 'xenova:main' into merge
8aa29933
Fix missing var
f98160f4
Avoid use preserve word
214ba145
Support `OffscreenCanvas` polyfill without `document`
7fe660b8
Merge branch 'main' into merge
b95a8360
Fix `type` is missing
d14ec8ee
Merge branch 'xenova:main' into merge
d49b0d08
Opt-out wasm for RN and wait runtime loaded
2fdf3e68
Merge branch 'main' into merge
ee89374d
Merge branch 'xenova:main' into merge
95526e0b
Merge branch 'main' into merge
2d54b61e
Merge branch 'main' into merge
73b91313
Update `package-lock.json`
24726fa0
Fix error
880348aa
Fix fetch binary for TTS
12101023
Fix error when file cached
27e84347
Merge branch 'xenova:main' into merge
b16ad4c7
Merge branch 'main' into merge
c5bbba5a
Merge branch 'main' into merge
ad60a9bb
break trying load if backend error
b42d06c9
Fix web support
2e15702f
Bump onnxruntime
a94b45a1
Remove `isReady` check
4a8a5bbe
Only continue on `Unsupported model type`
af1d6f66
Continue on file 404 error
8a234c5d
Fix error on node
566ec321
Exclude `wasm` for RN
6e3affa4
Merge branch 'xenova:main' into merge
79979e8d
Merge branch 'main' into merge
c7aa59f4
Update `package-lock.json`
35926136
Support decode wav
685b718c
add `node-wav`
2a352547
Merge branch 'main' into merge
718c3d7b
Fix `package.json`
755f5ba4
Bump onnxruntime
95faa445
Update `package-lock.json`
c0dda59e
Fix typo
7fb93d95
Support Tensor of `onnxruntime@1.17.0`
d4d6ebfc
Correct algorithm implement
5a0d5042
Correct resample factor behavior
8cd25a45
Rename `useGCanvas` to `useRNCanvas`
b597fa4d
Better naming, change `useRNCanvas` to `rnUseCanvas`
f7222ec2
Fix `Tensor` index getter
5a23e2fb
Fix not work with spread transform
a089ef06
Add dispose to release memory
306b208b
Support `crop` for ReactNative
431983b3
Change to `image-codecs`
060a2e56
Setup `image-codecs`
7ad4ef25
Correct URI format
b4a4bce9
Fix bug
9b7faf93
Fix error process
d697e775
Correct error process
173cc097
Merge branch 'main' into merge
0d319272
Update package-lock.json
eb560583
Merge branch 'main' into merge
1a2bc57b
Disable WASM configure for React Native
3dd88550
Move `readFile` into `FileResponse`
b41e23cb
Support load model from local path for RN & Node.js
840fa5c6
Merge branch 'main' into merge
9e15f15b
Fix missing function
d81b4598
Update package-lock
333c5477
Fix missing var
0a29022e
Use `fetch` for non-RN env
dc05218b
Cleanup invalid doc
243f7fd9
Add `session_options`
bad38821
Fix `session_options` not work
4098dd06
Use same option for path load
800a476b
Fix `session_options`
c7fdd363
Correct logic
c9bed9cd
Fix model load
f8350602
Return file path if not RN
fbd7136c
Prevent readFile when get model path
6da74ffd
Merge branch 'main' into merge
3a3fa291
Update package-lock
22cbfe96
Merge branch 'main' into merge
c986a8cd
Fix syntax
8df376bc
Merge branch 'main' into merge
9f30f1b7
Fix model file download
91093553
Merge branch 'main' into merge
918950ed
Merge branch 'main' into merge
9015d03e
Merge branch 'main' into merge
55b840c4
Fix typecheck
920de52c
Merge branch 'main' into merge
be329d29
Fix missing var
1cae87f0
Fix run on native
0b90edfa
Drop `read_audio` support for native
8c72a5de
Use middleware to support multiple FS module
df5dc482
Merge branch 'huggingface:main' into merge
c3922f76
Fix test
5da635ac
Correct import mapping
ed52df54
Bump `native-universal-fs`
943c904f
Default add xnnpaxk and cpu
33a60344
Correct default path for native
7acc6090
Wait devices are resolved
af4c6abe
Fix FS detection
3671a799
Bump `native-universal-fs`
93d9d880
Correct import map
c0e0beee
Remove unused
0a4cb43c
Remove unused
8c0aca84
Use `__filename` + webpack define plugin to resolve module path
b9896b67
Make backend resolve syncally
54015173
Merge branch 'main' into merge
7d09c5df
Update `package-lock.json`
cc3fa603
Manually mock `react-native` for test
8f4b0e30
Fix test or non-RN env work
72854563
Use `fetch` under `globalThis`
6f01fc0f
Merge branch 'huggingface:main' into merge
6a6c5b1a
Merge branch 'main' into merge
578fd5b9
Download to cache dir if `useFSCache`
07ccf2d5
Fix download model
da6eafa6
Remove mistake
4c1da9be
Fix model load
24869007
Merge branch 'main' into merge
cbbf58ee
Fix download target path
1db64179
Remove `image-codecs`, let user implement them-self
c746cf9b
Merge branch 'main' into merge
9f3f32c0
Merge branch 'main' into merge
be92e91e
Merge branch 'main' into merge
c3e8ba0d
Use webpack to bundle for React Native or Expo
d0c157b8
Fix RN is not support `import.meta`
e2eb7cac
Merge branch 'main' into merge
ff98bce6
Merge branch 'main' into merge
d1d44ab2
Merge branch 'huggingface:main' into merge
26bf1685
Make old RN project could import
048cd8f2
Merge branch 'huggingface:main' into merge
e4932999
Assignees
No one assigned
Login to write a write a comment.
Login via GitHub