-
Notifications
You must be signed in to change notification settings - Fork 45
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
Implementing Custom Vision #28
base: master
Are you sure you want to change the base?
Conversation
For #26. Thanks for the contribution! I'll have a look at it later, I can try it too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add .DS_Store to .gitignore.
Please write tests for the new endpoints. I saw that you added a file but it's empty, what's the point in that?
-A series of images to train your classifier (minimum of 30 images per tag). | ||
-A few images to test your classifier after the classifier is trained. | ||
* @augments commonService | ||
* {@link https://westus.dev.cognitive.microsoft.com/docs/services/56f91f2d778daf23d8ec6739/operations/56f91f2e778daf14a499e1fa|documentation} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* {@link https://westus.dev.cognitive.microsoft.com/docs/services/56f91f2d778daf23d8ec6739/operations/56f91f2e778daf14a499e1fa|documentation} | ||
*/ | ||
|
||
class customvision extends commonService { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please camelCase, i.e. customVisionPrediction
. Also add this to index.js
*/ | ||
|
||
constructor({ apiKey, endpoint }) { | ||
super({ apiKey, endpoint }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add config value in config.js
] | ||
} | ||
|
||
predictImage({parameters, headers, body}){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Documentation? Also, headers
is not necessary (see comments below)
"required": true, | ||
"type": "queryStringParam", | ||
"typeName" : "string", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Empty line
"description": "Format - uuid. The project to evaluate against", | ||
"value": null, | ||
"required": true, | ||
"type": "queryStringParam", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a routeParam
CreateProject({parameters, headers, body}){ | ||
|
||
const operation = { | ||
"path": "customvision/v1.0/Training/projects/{projectId}/tags?name={name}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for ?name={name}
"path": "customvision/v1.0/Training/projects/{projectId}/tags?name={name}", | ||
"method": "POST", | ||
"headers": [{ | ||
"name": "TrainingKey", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this Training-key
?
"path": "customvision/v1.0/Training/projects?name={name}", | ||
"method": "POST", | ||
"headers": [{ | ||
"name": "TrainingKey", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Training-key?
"required": false, | ||
"typeName": "string" | ||
},{ | ||
"name": "TrainingKey", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Training-key?
I am not done implementing Custom Vision overall. Since I do not have a Azure cloud account and I cannot seem to make one I was wondering if anyone could look at test the code and give feedback.
Thanks