Support React Native #118

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

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone