Skip to content

Commit d9e1a94

Browse files
authored
[Mobile super res android] Update to opset18 model in the sample (#204)
* update with op18 model * add gorilla sample shots to readme * update model name in instrumental tests as well
1 parent c70a800 commit d9e1a94

File tree

6 files changed

+6
-4
lines changed

6 files changed

+6
-4
lines changed

mobile/examples/super_resolution/android/README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ Note: When update to pre-release/release version ort-extensions android package,
3737
Now you can try and test the super resolution android app by clicking the perform action button.
3838

3939
#
40-
Here's an example screenshot of the app.
40+
Here are some sample example screenshots of the app.
4141

42-
<img width=20% src="images/Screenshot_1.png" alt="App Screenshot 1" />
42+
<img width=20% src="images/Screenshot_1.png" alt="App Screenshot 1" />
43+
44+
<img width=20% src="images/Screenshot_2.png" alt="App Screenshot 2" />

mobile/examples/super_resolution/android/app/src/androidTest/java/ai/onnxruntime/example/superresolution/ExampleInstrumentedTest.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class ExampleInstrumentedTest {
3131
// Context of the app under test.
3232
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
3333
val resources = appContext.resources
34-
val modelBytes = resources.openRawResource(R.raw.pt_super_resolution_op16).readBytes()
34+
val modelBytes = resources.openRawResource(R.raw.pytorch_superresolution_with_pre_post_processing_op18).readBytes()
3535
val env = OrtEnvironment.getEnvironment()
3636
env.use {
3737
assertNotNull(env)
Loading

mobile/examples/super_resolution/android/app/src/main/java/ai/onnxruntime/example/superresolution/MainActivity.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class MainActivity : AppCompatActivity() {
6767
}
6868

6969
private fun readModel(): ByteArray {
70-
val modelID = R.raw.pt_super_resolution_op16
70+
val modelID = R.raw.pytorch_superresolution_with_pre_post_processing_op18
7171
return resources.openRawResource(modelID).readBytes()
7272
}
7373

Loading

0 commit comments

Comments
 (0)