testdotai / classifier-builder

Apache License 2.0
55 stars 45 forks source link

How to add my own image and train it? How to use it in a test? #3

Open DeChrish opened 6 years ago

hemche commented 5 years ago

@DeChrish Just in case you did not find this article. https://medium.com/testdotai/training-data-for-app-classifier-f217dc005523

munnira commented 4 years ago

I had gone through the above link and created classifier but still it say cant find label. IS there any format that we need to maintain when we upload image. for ex: for camera i have uploaded new image with name "Screenshot-a23424.png" which i have taken from emulator and copied under camera folder and retrained it for which it took so long to run then ran tensorflowjs commands to generate web_model and copied under */test-ai-classifier/model and provided label under lib/label.js and build/lib/label.js but no luck.

If something goes wrong its really hard to understand here. I am getting : [debug] [W3C (12f9c9ed)] Encountered internal error running command: io.appium.uiautomator2.common.exceptions.TakeScreenshotException: Failed to capture a screenshot. Does the current view have 'secure' flag set?

the above exception is same if i do for arrow down / camera , any setting is required?