Comments (6)
@kiran-collab I think your question is a little like saying "I have a car with one engine, how can I drop in your engine?"
Each car and engine tends to be a bit different, so if you walked in and asked a mechanic that you're not likely to get the answer you're looking for exactly. If you were to ask it more specifically you might get a long and complex answer; but a generic question like this is not terribly helpful - you actually have to roll up your sleeves and get to work looking at how other concrete examples work and then come back with specific questions. I'll see if I can provide some general help below, but I plan to close this issue out. Give your experiment a try and come back if something about this model specifically is not working out!
You can take a look at how this model is used in the browser plugin I make called Wingman Jr. Fortunately, unlike a car engine, the integration into your own plugin could be much easier. The input to the model (at least for sqrxr_62) is simply a 224x224 MobileNetV2 image. The output should use the ROC provided.
Relevant code bits:
Model startup section
Prediction code
Test against the ROC score
from model.
@wingman-jr-addon, thankyou! Actually I need to submit the project soon. Hence I request you if there is a faster way that you can suggest, like editing a certain code snippet or just adding the model. If possible, kindly give some steps that I can follow. I request you this as you are more aware about the code. I have to go through the whole code, which would take time!
from model.
@kiran-collab Well I pointed at specific code bits that do the main work. The general steps for using this (or most Tensorflow.js models):
- Load the model. See the "Model startup section" from above.
- Optionally, send an empty image through the model to "warm it up". The first prediction is quite slow and later ones are faster. That same code section does that.
- Get your image somehow. In this case, probably best to have it in an
<img>
element or anImage
. - Prepare the image to be in the right format for the model. This is is in the "Prediction code" section above.
- Get the model prediction.
- Compare against the ROC curve threshold cutoff to find the true positive vs. false positive rate at that threshold; you could compare for
score[0] < 0.9903306
as a starting point.
What specific task are you trying to figure out how to do? Also please note that I do include the .h5
files as well if you are using Python.
from model.
@kiran-collab Any luck so far?
from model.
@wingman-jr-addon heyy, sorry for the late reply. I have understood the concept! I am modifying it. I am extremely thankful! I would ping you incase any issue. Btw, I wish to ask if there is any add on that works the same way for videos?
from model.
I do not currently know of any; I am working on video support currently. Let me know if you do find one. If you are curious, I am also blogging about the video implementation here: https://wingman-jr.blogspot.com/2021/01/video-new-challenge.html
from model.
Related Issues (7)
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 model.