Skip to content

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

Merged
merged 2 commits into from
Aug 11, 2025
Merged

Rodrigo/modeltype parameter #401

merged 2 commits into from
Aug 11, 2025

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
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
2 out of 3 committers have signed the CLA.

✅ tonylampada
✅ digaobarbosa
❌ cursoragent
You have signed the CLA already but the status is still pending? Let us recheck it.

- 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
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.

3 participants