-
Notifications
You must be signed in to change notification settings - Fork 24
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
feat: add result upload #703
Conversation
MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅ |
com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: The number of method references in a .dex file cannot exceed 64K.
@@ -43,7 +43,7 @@ android { | |||
|
|||
defaultConfig { | |||
applicationId "org.mlcommons.android.mlperfbench" | |||
minSdkVersion 16 | |||
minSdkVersion 21 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to increase the minSdkVersion
to 21 to fix a build error described here https://developer.android.com/build/multidex
Per this screenshot (from Android Studio) this should not affect much the number of Android phones which can run this app.
@anhappdev suggested we have to as Nathan to give read access to other guys who want to test this (let one who wants to test this be a user of that firebase project). |
@freedomtan @AhmedTElthakeb @mohitmundhragithub |
Yes, I can see "mobile-app-build" project in the Firebase Console.
|
Yes. It's correct. The app uploads the result as a JSON file to Storage. We don't use "Firebase Database". |
@anhappdev please add uploading feature to all the backends by building an apk with all the backends |
@anhappdev as @AhmedTElthakeb reported, the app crashed for each task. The attached log was captured when running the mobilenet edgetpu. It crashed because of
log: |
It looks like the error is somewhere in the Anyway, I don't think the error is related to this pull request, maybe it's already there for some time. We may need to fix it in another pull request. |
@anhappdev It could be due to some incompatible recent commits to the master branch we have not accounted for yet. We are preparing a pull request to catch up with master. In the meantime, is it possible to try this "add result upload" feature on top of v3.0 branch instead of master? |
The v3.0 branch now differs greatly from the master branch, so it would require significant effort to make this PR work on the v3.0 branch. Is it critical to test this PR with the Samsung backend? I mean that the upload feature works independently of any backends. |
this app shows just white screen on qualcomm device.
this app doesn't show option to share results to mlcommon's firebase. |
06-24 18:58:38.963 2787 3363 D CoreBackPreview: Window{8dd7795 u0 Splash Screen org.mlcommons.android.mlperfbench EXITING}: Setting back callback null I see these errors in logcat logs. |
Yes, because it's based on the master branch, to test if the error with Samsung backend was introduced with this PR or it's already in the master for some time.
That is interesting. I just merged the master branch into this PR to have the CI automatically build the APK. Can you test again with this new build and then upload a full log (as .txt file) here for debugging? |
FYR. This 2023-06-06_mlperfbench-2e482f8-qsmgt.apk works for a colleague's Xiaomi 13 Pro (a 8 Gen 2 device). Uploading also works. |
thanks. this apk works. But unable to upload. Basically, nothing happens on clicking "share with mlcommons" |
I fixed this recently so you will need the APK with build number > 49. |
@mohitmundhragithub Did you have a chance to test again with a newer build? |
I tried with build "android-apks-50" again. But seeing white screen with this. 07-01 17:58:44.532 2787 10195 D CoreBackPreview: Window{4085017 u0 Splash Screen org.mlcommons.android.mlperfbench EXITING}: Setting back callback null This seems to be the culprit log. |
It looks like a connection issue. A quick Google search shows indeed that Firebase does not work in China. |
actually i tried with a device in india as well, but it didn't work :( |
Is the device behind a proxy or has limited internet connection? |
Its connected to office wifi open for all personal devices... so no proxy. |
@mohitmundhragithub Any update on this? |
I just tried out on a personal device, and it's working fine. Just one comment that having the results to be sorted or having some meaningful name for the folders may help in searching the results on the portal. |
Thank you for your feedback, but the Firebase website is not meant to be used as a frontend. Searching or viewing the results will be done in the app. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Part of #670
User can upload benchmark result to MLCommons cloud storage via the app.
The Share button now has 2 options: