You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Make package.json accept newer versions of libs, e.g. Expo (#886)
This PR fixes package.json in both expo and bare resource fetchers.
- [ ] Yes
- [x] No
- [x] Bug fix (change which fixes an issue)
- [ ] New feature (change which adds functionality)
- [ ] Documentation update (improves or adds clarity to existing
documentation)
- [ ] Other (chores, tests, code style improvements etc.)
- [x] iOS
- [ ] Android
* Run minimal app that utilizes this version of our library with expo 55
(pack react native executorch and expo resource fetchers into tgz and
install in template app) and check if everything works correctly.
* Run text to image example as this PR introduces changes in this
package and check if everything works ok.
<!-- Add screenshots here, if applicable -->
Closes#882
- [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
- [ ] My changes generate no new warnings
<!-- Include any additional information, assumptions, or context that
reviewers might need to understand this PR. -->
Copy file name to clipboardExpand all lines: docs/docs/06-api-reference/classes/TextToImageModule.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Class: TextToImageModule
2
2
3
-
Defined in: [packages/react-native-executorch/src/modules/computer_vision/TextToImageModule.ts:14](https://github.com/software-mansion/react-native-executorch/blob/326d6344894d75625c600d5988666e215a32d466/packages/react-native-executorch/src/modules/computer_vision/TextToImageModule.ts#L14)
3
+
Defined in: [packages/react-native-executorch/src/modules/computer_vision/TextToImageModule.ts:14](https://github.com/software-mansion/react-native-executorch/blob/a305030e7ac90325b5f5072ed4ef18e419f59d34/packages/react-native-executorch/src/modules/computer_vision/TextToImageModule.ts#L14)
4
4
5
5
Module for text-to-image generation tasks.
6
6
@@ -14,7 +14,7 @@ Module for text-to-image generation tasks.
Defined in: [packages/react-native-executorch/src/modules/computer_vision/TextToImageModule.ts:22](https://github.com/software-mansion/react-native-executorch/blob/326d6344894d75625c600d5988666e215a32d466/packages/react-native-executorch/src/modules/computer_vision/TextToImageModule.ts#L22)
17
+
Defined in: [packages/react-native-executorch/src/modules/computer_vision/TextToImageModule.ts:22](https://github.com/software-mansion/react-native-executorch/blob/a305030e7ac90325b5f5072ed4ef18e419f59d34/packages/react-native-executorch/src/modules/computer_vision/TextToImageModule.ts#L22)
18
18
19
19
Creates a new instance of `TextToImageModule` with optional callback on inference step.
20
20
@@ -40,7 +40,7 @@ Optional callback function that receives the current step index during inference
40
40
41
41
> **nativeModule**: `any` = `null`
42
42
43
-
Defined in: [packages/react-native-executorch/src/modules/BaseModule.ts:8](https://github.com/software-mansion/react-native-executorch/blob/326d6344894d75625c600d5988666e215a32d466/packages/react-native-executorch/src/modules/BaseModule.ts#L8)
43
+
Defined in: [packages/react-native-executorch/src/modules/BaseModule.ts:8](https://github.com/software-mansion/react-native-executorch/blob/a305030e7ac90325b5f5072ed4ef18e419f59d34/packages/react-native-executorch/src/modules/BaseModule.ts#L8)
44
44
45
45
Native module instance
46
46
@@ -54,7 +54,7 @@ Native module instance
54
54
55
55
> **delete**(): `void`
56
56
57
-
Defined in: [packages/react-native-executorch/src/modules/BaseModule.ts:41](https://github.com/software-mansion/react-native-executorch/blob/326d6344894d75625c600d5988666e215a32d466/packages/react-native-executorch/src/modules/BaseModule.ts#L41)
57
+
Defined in: [packages/react-native-executorch/src/modules/BaseModule.ts:41](https://github.com/software-mansion/react-native-executorch/blob/a305030e7ac90325b5f5072ed4ef18e419f59d34/packages/react-native-executorch/src/modules/BaseModule.ts#L41)
Defined in: [packages/react-native-executorch/src/modules/computer_vision/TextToImageModule.ts:100](https://github.com/software-mansion/react-native-executorch/blob/326d6344894d75625c600d5988666e215a32d466/packages/react-native-executorch/src/modules/computer_vision/TextToImageModule.ts#L100)
75
+
Defined in: [packages/react-native-executorch/src/modules/computer_vision/TextToImageModule.ts:100](https://github.com/software-mansion/react-native-executorch/blob/a305030e7ac90325b5f5072ed4ef18e419f59d34/packages/react-native-executorch/src/modules/computer_vision/TextToImageModule.ts#L100)
76
76
77
77
Runs the model to generate an image described by `input`, and conditioned by `seed`, performing `numSteps` inference steps.
78
78
The resulting image, with dimensions `imageSize`×`imageSize` pixels, is returned as a base64-encoded string.
@@ -85,13 +85,13 @@ The resulting image, with dimensions `imageSize`×`imageSize` pixels, is returne
85
85
86
86
The text prompt to generate the image from.
87
87
88
-
##### imageSize
88
+
##### imageSize?
89
89
90
90
`number` = `512`
91
91
92
92
The desired width and height of the output image in pixels.
93
93
94
-
##### numSteps
94
+
##### numSteps?
95
95
96
96
`number` = `5`
97
97
@@ -115,7 +115,7 @@ A Base64-encoded string representing the generated PNG image.
Defined in: [packages/react-native-executorch/src/modules/BaseModule.ts:23](https://github.com/software-mansion/react-native-executorch/blob/326d6344894d75625c600d5988666e215a32d466/packages/react-native-executorch/src/modules/BaseModule.ts#L23)
118
+
Defined in: [packages/react-native-executorch/src/modules/BaseModule.ts:23](https://github.com/software-mansion/react-native-executorch/blob/a305030e7ac90325b5f5072ed4ef18e419f59d34/packages/react-native-executorch/src/modules/BaseModule.ts#L23)
119
119
120
120
Runs the model's forward method with the given input tensors.
121
121
It returns the output tensors that mimic the structure of output from ExecuTorch.
Defined in: [packages/react-native-executorch/src/modules/BaseModule.ts:34](https://github.com/software-mansion/react-native-executorch/blob/326d6344894d75625c600d5988666e215a32d466/packages/react-native-executorch/src/modules/BaseModule.ts#L34)
147
+
Defined in: [packages/react-native-executorch/src/modules/BaseModule.ts:34](https://github.com/software-mansion/react-native-executorch/blob/a305030e7ac90325b5f5072ed4ef18e419f59d34/packages/react-native-executorch/src/modules/BaseModule.ts#L34)
148
148
149
149
Gets the input shape for a given method and index.
150
150
@@ -178,7 +178,7 @@ The input shape as an array of numbers.
178
178
179
179
> **interrupt**(): `void`
180
180
181
-
Defined in: [packages/react-native-executorch/src/modules/computer_vision/TextToImageModule.ts:127](https://github.com/software-mansion/react-native-executorch/blob/326d6344894d75625c600d5988666e215a32d466/packages/react-native-executorch/src/modules/computer_vision/TextToImageModule.ts#L127)
181
+
Defined in: [packages/react-native-executorch/src/modules/computer_vision/TextToImageModule.ts:132](https://github.com/software-mansion/react-native-executorch/blob/a305030e7ac90325b5f5072ed4ef18e419f59d34/packages/react-native-executorch/src/modules/computer_vision/TextToImageModule.ts#L132)
182
182
183
183
Interrupts model generation. The model is stopped in the nearest step.
184
184
@@ -190,9 +190,9 @@ Interrupts model generation. The model is stopped in the nearest step.
Defined in: [packages/react-native-executorch/src/modules/computer_vision/TextToImageModule.ts:35](https://github.com/software-mansion/react-native-executorch/blob/326d6344894d75625c600d5988666e215a32d466/packages/react-native-executorch/src/modules/computer_vision/TextToImageModule.ts#L35)
195
+
Defined in: [packages/react-native-executorch/src/modules/computer_vision/TextToImageModule.ts:35](https://github.com/software-mansion/react-native-executorch/blob/a305030e7ac90325b5f5072ed4ef18e419f59d34/packages/react-native-executorch/src/modules/computer_vision/TextToImageModule.ts#L35)
196
196
197
197
Loads the model from specified resources.
198
198
@@ -222,7 +222,7 @@ Object containing sources for tokenizer, scheduler, encoder, unet, and decoder.
0 commit comments