Giter Site home page Giter Site logo

Comments (11)

cnavrides avatar cnavrides commented on July 19, 2024

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.

ericsavoiewaltz avatar ericsavoiewaltz commented on July 19, 2024

There seems to be a bug in the appium plugin as well testdotai/appium-classifier-plugin#9

from classifier-builder.

ericsavoiewaltz avatar ericsavoiewaltz commented on July 19, 2024

Does the retraining script train the sample_run run_model.py script as well?

from classifier-builder.

ericsavoiewaltz avatar ericsavoiewaltz commented on July 19, 2024

Working on the fix you suggested - just getting some of that boring regular work out of the way.

from classifier-builder.

cnavrides avatar cnavrides commented on July 19, 2024

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.

ericsavoiewaltz avatar ericsavoiewaltz commented on July 19, 2024

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.

cnavrides avatar cnavrides commented on July 19, 2024

@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.

ericsavoiewaltz avatar ericsavoiewaltz commented on July 19, 2024

@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.

cnavrides avatar cnavrides commented on July 19, 2024

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.

ericsavoiewaltz avatar ericsavoiewaltz commented on July 19, 2024

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.

pramodKarande avatar pramodKarande commented on July 19, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.