-
Notifications
You must be signed in to change notification settings - Fork 94
Rodrigo/modeltype parameter #401
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
Conversation
tests/manual/debugme.py
Outdated
|
||
|
||
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() |
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.
I think all these changes were for debug?
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.
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
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