-
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
DOCS-2494: Create custom ML training script, upload to registry, and submit training job #3071
Merged
sguequierre
merged 39 commits into
viamrobotics:main
from
sguequierre:DOCS-2494/ml-training-scripts
Jul 11, 2024
Merged
Changes from 19 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
ecaca27
Test workflow
sguequierre 9d8d88b
Edit javascript for custom training script table
sguequierre 04f6308
Fix url
sguequierre 990ebfa
Add proper api key and fix script
sguequierre 06f6d16
Finish upload script page
sguequierre eba2378
Fix from testing
sguequierre f2ff28e
fixup
sguequierre f7fdd55
fixup
sguequierre b47cf27
python linter
sguequierre 2b200ae
Fix broken link
sguequierre 3de2d8e
linter
sguequierre 01dc807
Apply suggestions from code review
sguequierre 10f8447
Merge branch 'main' into DOCS-2494/ml-training-scripts
sguequierre 0cde168
Apply suggestions from code review
sguequierre 78e9a4b
Apply suggestions from code review
sguequierre 4acbd66
Merge branch 'main' into DOCS-2494/ml-training-scripts
sguequierre fc8504c
Fixup for linter
sguequierre a31219d
feedback
sguequierre da1a7cc
add link
sguequierre 2997320
apply feedback
sguequierre f7787d4
Apply suggestions from code review
sguequierre f8743c9
Apply suggestions from code review
sguequierre 0bd6b35
formatting
sguequierre e87c363
Add back in more logic
sguequierre c8befab
improve code samples
sguequierre 531aec6
Apply suggestions from code review
sguequierre 9d87abd
Apply final feedback
sguequierre 45aa03d
fixup
sguequierre 0f2b7e5
Apply suggestions from code review
sguequierre 52d2170
fixup
sguequierre 2660c6d
format
sguequierre 5f6c2b0
Apply suggestions from code review
sguequierre 77ce118
fix json formatting
sguequierre b1c890b
Update docs/services/ml/upload-training-script.md
npentrel fa3991d
More feedback
sguequierre cad4ec2
slight phrasing
sguequierre e70b0b6
linter
sguequierre a3431a1
Remove extra json
sguequierre beaf4f6
Apply suggestions from code review
sguequierre File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -29,48 +29,22 @@ menuindent: true | |||||
The [Viam registry](https://app.viam.com/registry) is the central place where you can browse: | ||||||
|
||||||
{{< cards >}} | ||||||
{{% manualcard link="#ml-models" %}} | ||||||
|
||||||
**ML models** to deploy with machine applications like computer vision | ||||||
|
||||||
{{% /manualcard %}} | ||||||
{{% manualcard link="#modular-resources" %}} | ||||||
|
||||||
**Modular resources** that add capabilities to your machine beyond what is built into `viam-server` | ||||||
|
||||||
{{% /manualcard %}} | ||||||
{{< /cards >}} | ||||||
|
||||||
## ML models | ||||||
|
||||||
Viam provides the ability to train, upload, and deploy machine learning models within the platform. | ||||||
See [Machine Learning](/services/ml/) for more information. | ||||||
{{% manualcard link="#ml-models" %}} | ||||||
|
||||||
The Viam registry hosts trained ML models that users have made public, which you can use to deploy classifiers or detectors for your use case onto your robot instead of training your own. | ||||||
You can also [upload your own model to the registry](/services/ml/upload-model/). | ||||||
**ML models** to deploy with machine applications like computer vision | ||||||
|
||||||
You can search the available ML models from the Viam registry here: | ||||||
{{% /manualcard %}} | ||||||
{{% manualcard link="#ml-training-scripts" %}} | ||||||
|
||||||
<div id="searchboxML"></div> | ||||||
<p> | ||||||
<div id="searchstatsML"></div></p> | ||||||
<div class="mr-model" id=""> | ||||||
<div class="modellistheader"> | ||||||
<div class="name">Model</div> | ||||||
<div>Description</div> | ||||||
</div> | ||||||
<div id="hitsML" class="modellist"> | ||||||
</div> | ||||||
<div id="paginationML"></div> | ||||||
</div> | ||||||
<noscript> | ||||||
<div class="alert alert-caution" role="alert"> | ||||||
<h4 class="alert-heading">Javascript</h4> | ||||||
<p>Please enable javascript to see and search ML models.</p> | ||||||
</div> | ||||||
</noscript> | ||||||
**Training scripts** to train machine learning models in the Viam cloud from custom Python scripts. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How about this? It avoids the awkwardness of using scripts twice
Suggested change
|
||||||
|
||||||
To use an existing model from the registry, [deploy the ML model to your robot](/services/ml/deploy/) and use a [Vision service](/services/vision/) to make detections or classifications on-machine. | ||||||
{{% /manualcard %}} | ||||||
{{< /cards >}} | ||||||
|
||||||
## Modular resources | ||||||
|
||||||
|
@@ -206,3 +180,61 @@ When implementing a custom {{< glossary_tooltip term_id="model" text="model" >}} | |||||
{{% card link="/tutorials/custom/custom-base-dog/" %}} | ||||||
{{% card link="/registry/examples/custom-arm/" %}} | ||||||
{{< /cards >}} | ||||||
|
||||||
## ML models | ||||||
|
||||||
Viam provides the ability to train, upload, and deploy machine learning models within the platform. | ||||||
See [Machine Learning](/services/ml/) for more information. | ||||||
|
||||||
The Viam registry hosts trained ML models that users have made public, which you can use to deploy classifiers or detectors for your use case onto your robot instead of training your own. | ||||||
You can also [upload your own model to the registry](/services/ml/upload-model/). | ||||||
|
||||||
You can search the available ML models from the Viam registry here: | ||||||
|
||||||
<div id="searchboxML"></div> | ||||||
<p> | ||||||
<div id="searchstatsML"></div></p> | ||||||
<div class="mr-model" id=""> | ||||||
<div class="modellistheader"> | ||||||
<div class="name">Model</div> | ||||||
<div>Description</div> | ||||||
</div> | ||||||
<div id="hitsML" class="modellist"> | ||||||
</div> | ||||||
<div id="paginationML"></div> | ||||||
</div> | ||||||
<noscript> | ||||||
<div class="alert alert-caution" role="alert"> | ||||||
<h4 class="alert-heading">Javascript</h4> | ||||||
<p>Please enable javascript to see and search ML models.</p> | ||||||
</div> | ||||||
</noscript> | ||||||
|
||||||
To use an existing model from the registry, [deploy the ML model to your robot](/services/ml/deploy/) and use a [Vision service](/services/vision/) to make detections or classifications on-machine. | ||||||
|
||||||
## ML training scripts | ||||||
|
||||||
The Viam registry hosts trained ML training scripts that users have made public, which you can use to train custom machine learning models from Python source distribution. | ||||||
sguequierre marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
You can also upload your own training script. | ||||||
Follow the guide to [Train a Model with a Custom Python Training Script](/services/ml/upload-training-script/#upload-a-new-training-script-or-new-version). | ||||||
sguequierre marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
|
||||||
You can search the available ML training scripts from the Viam registry here: | ||||||
|
||||||
<div id="searchboxScripts"></div> | ||||||
<p> | ||||||
<div id="searchstatsScripts"></div></p> | ||||||
<div class="training-scripts" id=""> | ||||||
<div class="modellistheader"> | ||||||
<div class="name">Script</div> | ||||||
<div>Description</div> | ||||||
</div> | ||||||
<div id="hitsScripts" class="modellist"> | ||||||
</div> | ||||||
<div id="paginationScripts"></div> | ||||||
npentrel marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
</div> | ||||||
<noscript> | ||||||
<div class="alert alert-caution" role="alert"> | ||||||
<h4 class="alert-heading">Javascript</h4> | ||||||
<p>Please enable javascript to see and search ML custom training scripts.</p> | ||||||
</div> | ||||||
</noscript> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@tahiyasalam Is this accurate or would you know of a more descriptive way to phrase it?
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.
Maybe
Python source distributions used to train and produce models in the Viam cloud for custom machine learning
?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.
Python source distributions sounds to me like the source code for python 3.9 o or other versions...
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.
That's fair, we can just say Python scripts