Merged
Conversation
iurisilvio
reviewed
Aug 8, 2025
Comment on lines
+50
to
+78
|
|
||
|
|
||
| def run_api_train(): | ||
| rf = Roboflow() | ||
| project = rf.workspace("model-evaluation-workspace").project("penguin-finder") | ||
| # version_number = project.generate_version( | ||
| # settings={ | ||
| # "augmentation": { | ||
| # "bbblur": {"pixels": 1.5}, | ||
| # "image": {"versions": 2}, | ||
| # }, | ||
| # "preprocessing": { | ||
| # "auto-orient": True, | ||
| # }, | ||
| # } | ||
| # ) | ||
| version_number = "18" | ||
| print(version_number) | ||
| version = project.version(version_number) | ||
| model = version.train( | ||
| speed="fast", # Options: "fast" (default) or "accurate" (paid feature) | ||
| checkpoint=None, # Use a specific checkpoint to continue training | ||
| modelType="rfdetr-nano", | ||
| ) | ||
| print(model) | ||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| # run_cli() |
Contributor
There was a problem hiding this comment.
I think all these changes were for debug?
Contributor
Author
There was a problem hiding this comment.
I understood this file is more of a custom test file, with no real utility at the end project. But I will remove this, it keeps less diffs.
- Add model_type parameter to CLI train command - Update version.py to handle model_type in train method - Snake_case naming convention for model_type parameter - Simplify CLI workspace handling - Maintain API payload order minimal
d969f5c to
f927635
Compare
iurisilvio
approved these changes
Aug 11, 2025
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Creates modelType parameter to train method.
Type of change
Please delete options that are not relevant.
How has this change been tested, please provide a testcase or example of how you tested the change?
staging
Creating models with different types of model. And also sending invalid modelTypes.
Any specific deployment considerations
Docs