-
Notifications
You must be signed in to change notification settings - Fork 1
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
Online Conversion #47
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kozlov721
commented
Oct 31, 2024
conorsim
reviewed
Nov 8, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
hub
subcommand to the CLI__main__.py
Online Conversion API
The online conversion can be run either from CLI or using python API.
model
resource is created on HubAI if it doesn't existmodelVersion
is createdmodelVersion
will be"{model_name} {height}x{width}"
"0.1.0"
version
argument for a custom version numbermodelInstance
is created"{version_name} base instance"
modelInstance
will be"{version_name} exported to {target}"
modelInstance
slugoutput_dir
argumentPython API
It's also possible to specify numerous arguments related to
model
,modelVersion
, andmodelInstance
resources:CLI
Environment Variables
HUBAI_API_KEY
- contains the HubAI API tokenHUBAI_URL
- can be used to change the used URLNew Commands
modelconverter hub convert
model
modelconverter hub model ls
modelconverter hub model info
modelconverter hub model create
modelconverter hub model delete
version
modelconverter hub version ls
modelconverter hub version info
modelconverter hub version create
modelconverter hub version delete
instance
modelconverter hub instance ls
modelconverter hub instance info
modelconverter hub instance create
modelconverter hub instance delete
modelconverter hub instance download
modelconverter hub instance upload
modelconverter hub instance config
Example
modelconvereter hub version ls
modelconverter hub model info 6a3d3f58-ab45-4cdf-8eb9-32a38d6d3297