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

PIC component #3187

Open
wants to merge 29 commits into
base: ucr
Choose a base branch
from
Open

Conversation

SimoneSantin
Copy link

Starting the implementation of the PIC component. Currently, only the common superclass BaseAiComponent.java has been implemented, and the PersonalImageClassifier.java file exists, although it is still empty

@AppInventorWorkerBee
Copy link
Collaborator

Can one of the admins verify this patch?

@SimoneSantin SimoneSantin force-pushed the feature/PIC-android branch 3 times, most recently from 4775d7e to 62cf04c Compare June 26, 2024 13:31
@ewpatton
Copy link
Member

Rather than duplicating the models at two different locations in the source tree, we should think about creating a directory under lib to hold the models. Then in components/build.xml and in the Xcode project we can set things up to copy the assets as part of the build process.

if (url.contains(TRANSFER_MODEL_PREFIX)) {
Log.d(LOG_TAG, "overriding " + url);

file = form.openAsset(url.substring(TRANSFER_MODEL_PREFIX.length()));
Copy link
Member

Choose a reason for hiding this comment

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

So this line I think is an issue. You will want to fully qualify the asset using "file://android_asset/" and then the filename. Otherwise, the companion app will try to load it from the file system rather than the packaged assets.

@ewpatton ewpatton added the testflight This PR is deployed via Apple TestFlight label Aug 21, 2024
@ewpatton
Copy link
Member

This is now on TestFlight.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants