Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App/Activity: Let the FileProvider load bundled model files #50

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

wooksong
Copy link
Member

@wooksong wooksong commented Jul 3, 2024

This patch makes the ModelFileProvider pre-load the model files, which are packaged into the APK file. According to this change, a test case for verifying the number of models preloaded has also been updated.
Signed-off-by: Wook Song [email protected]

@wooksong wooksong force-pushed the preload-to-private-ext branch 2 times, most recently from ebed8a5 to 9fe9f29 Compare July 5, 2024 01:30
@wooksong wooksong marked this pull request as ready for review July 5, 2024 01:31
@wooksong wooksong changed the title [After #49] App/Activity: Let the FileProvider load bundled model files App/Activity: Let the FileProvider load bundled model files Jul 5, 2024
@wooksong wooksong force-pushed the preload-to-private-ext branch 2 times, most recently from 34d82a4 to fa3c2f0 Compare July 5, 2024 03:47
Copy link
Contributor

@niley7464 niley7464 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!


adapter?.run {
assertEquals(2, adapter.itemCount)
assertEquals(numModelsInAssets, numModels)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not need to change model number every time using this way!
Thank you :)

@niley7464
Copy link
Contributor

Rebase is needed!
I will merge this PR after rebase :)

This patch makes the ModelFileProvider pre-load the model files, which
are packaged into the APK file. According to this change, a test case
for verifying the number of models preloaded has also been updated.

Signed-off-by: Wook Song <[email protected]>
@wooksong wooksong force-pushed the preload-to-private-ext branch from fa3c2f0 to 22a3e4b Compare July 8, 2024 04:39
@niley7464 niley7464 merged commit 31b70ac into nnstreamer:main Jul 8, 2024
2 checks passed
@wooksong wooksong deleted the preload-to-private-ext branch August 7, 2024 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants