Skip to content
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

Versionless model deploy/upload #356

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

lrosemberg
Copy link
Contributor

Description

You can now deploy versions without specifying the version number. To do this, you can use the deploy_model method from the Workspace:

Example:

workspace.deploy_model(
    model_type="yolov8",
    model_path="/path/to/model",
    model_name="my-model123"
    project_ids=["project1", "project2", "project3"],
    filename="weights/best.pt"
)

Alternatively, you can use the CLI:

# Deploy to a specific version
roboflow upload_model -p project1 -v 1 ...

# Deploy to multiple projects without specifying a version
roboflow upload_model -p project1 -p project2 -p project3 -n my-model123 ...

General overview

image

Type of change

  • 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?

  • I tested it locally using the CLI and the Python package, both pointing to the staging environment with the changes introduced in the PR #5188

@lrosemberg lrosemberg self-assigned this Jan 28, 2025
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.

1 participant