Skip to content

Conversation

@digaobarbosa
Copy link
Contributor

@digaobarbosa digaobarbosa commented Aug 8, 2025

Description

Creates modelType parameter to train method.

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

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

  • Docs updated? What were the changes: Waiting for gitbook access.

@digaobarbosa digaobarbosa marked this pull request as ready for review August 8, 2025 20:25
@digaobarbosa digaobarbosa requested a review from iurisilvio August 8, 2025 20:27
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()
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@CLAassistant
Copy link

CLAassistant commented Aug 9, 2025

CLA assistant check
All committers have signed the CLA.

- 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
@digaobarbosa digaobarbosa force-pushed the rodrigo/modeltype-parameter branch from d969f5c to f927635 Compare August 11, 2025 12:53
@digaobarbosa digaobarbosa merged commit 03f2cd7 into main Aug 11, 2025
14 checks passed
@iurisilvio iurisilvio deleted the rodrigo/modeltype-parameter branch August 27, 2025 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants