Comments (11)
Oh whoops. Will figure out a better update strategy, but try modify appium-classifier-plugin/lib/label.js to include paper airplane.
from classifier-builder.
There seems to be a bug in the appium plugin as well testdotai/appium-classifier-plugin#9
from classifier-builder.
Does the retraining script train the sample_run run_model.py script as well?
from classifier-builder.
Working on the fix you suggested - just getting some of that boring regular work out of the way.
from classifier-builder.
Does the retraining script train the sample_run run_model.py script as well?
No it doesn't. The run_model.py
is just a sample script so you can view your model and the results without needing to convert and put them into appium first.
from classifier-builder.
Okay so I tried updating appium-classifier-plugin/lib/label.js with the new label "paper airplane" and I got the same error.
An unknown server-side error occurred while processing the command. Original error: Prediction result array had 107 elements but labels list had 106 elements. They need to match. (Selenium::WebDriver::Error::UnknownError) UnknownError: An unknown server-side error occurred while processing the command. Original error: Prediction result array had 107 elements but labels list had 106 elements. They need to match. at getResponseForW3CError (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:826:9) at /usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:450:37 at Generator.next (<anonymous>) at asyncGeneratorStep (/usr/local/lib/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24) at _next (/usr/local/lib/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
const LABELS = [
" unclassified",
"add",
"airplane",
"alarm",
"arrow down",
"arrow left",
"arrow right",
"arrow up",
"attach",
"bag",
"barcode",
"battery",
"bluetooth",
"bookmark",
"brightness",
"calculator",
"calendar",
"call",
"camera",
"car",
"cart",
"chart",
"check mark",
"clock",
"close",
"cloud",
"computer",
"contrast",
"credit card",
"crop",
"cursor",
"cut",
"dashboard",
"delete",
"dollar",
"download",
"edit",
"external link",
"eye",
"fab",
"facebook",
"fast forward",
"favorite",
"file",
"filter",
"fingerprint",
"fire",
"flag",
"flashlight",
"folder",
"gift",
"globe",
"gmail",
"google",
"grid",
"headphones",
"home",
"inbox",
"info",
"laptop",
"light bulb",
"link",
"location",
"lock",
"mail",
"map",
"maximize",
"megaphone",
"menu",
"microphone",
"minimize",
"mobile",
"moon",
"music",
"mute",
"notifications",
"overflow menu",
"paper airplane",
"pinterest",
"play",
"printer",
"profile avatar",
"qr code",
"question",
"refresh",
"reply",
"rewind",
"save",
"search",
"send",
"settings",
"share",
"signal",
"sort",
"tag",
"television",
"thumbs up",
"ticket",
"trash",
"trophy",
"twitter",
"unlock",
"upload",
"user",
"video camera",
"volume",
"warning"
];
export default LABELS;
from classifier-builder.
@ericsavoiewaltz - Are you sure you updated the right labels.js? It should be the appium-classifier-plugin
folder under the appium/node_modules
.
The error is stating that there are 106 labels in labels.js but the model has 107 possible labels in the classifier.js of appium-classifier-plugin
For clarity I will close this out here as the model appears to be built and converted properly with the labels, and it appears the issue is in the classifier plugin. If the problem persists please open an issue on the appium-classifier-plugin project
from classifier-builder.
@cnavrides I'm confused. I don't have a folder under appium/node_modules called "appium-classifier-plugin" I have "test-ai-classifier". That is the folder that I updated the labels.js file in and where I pasted the model folder from the retrain script.
from classifier-builder.
Sorry. Got the github project name (appium-classifier-plugin) and npm name (test-ai-classifier) confused. It should be the label.js
file under the test-ai-classifier
folder.
from classifier-builder.
Okay I've tried the labels.js file in that folder twice now. I'm not sure what I could be doing wrong. I'm quite sure I've done it correctly as far as inserting a new row into an array object goes.
from classifier-builder.
@ericsavoiewaltz
try updating label.js file located at /usr/local/lib/node_modules/appium/node_modules/test-ai-classifier/build/lib this location.
it worked for me.
from classifier-builder.
Related Issues (9)
- Running the retrain.py script resulted in an error HOT 4
- running run_model.py get error HOT 1
- not bug
- How to add my own image and train it? How to use it in a test? HOT 2
- when training classifier builder. It is not using gpu. giving unknown error after bottlenecking completed.
- Failed to build on macOS 10.14.5 when Final test accuracy = 67.2% HOT 2
- [SSL: CERTIFICATE_VERIFY_FAILED] HOT 1
- deprecated message running retrain.py HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from classifier-builder.