Skip to content

Versionless model deploy/upload#356

Merged
lrosemberg merged 7 commits intomainfrom
lean/deploy-versionless-model
Jan 31, 2025
Merged

Versionless model deploy/upload#356
lrosemberg merged 7 commits intomainfrom
lean/deploy-versionless-model

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
Copy link
Collaborator

@tonylampada tonylampada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@lrosemberg lrosemberg merged commit 01d713f into main Jan 31, 2025
8 checks passed
@lrosemberg lrosemberg deleted the lean/deploy-versionless-model branch January 31, 2025 17:04
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.

2 participants

Comments