ultralytics 8.0.70 minor fixes and improvements (#1892)
Co-authored-by: feicccccccc <49809204+feicccccccc@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Laughing-q <1185102784@qq.com>
This commit is contained in:
parent
c2cd3fd20e
commit
c38b17a0d8
17 changed files with 71 additions and 90 deletions
|
|
@ -18,7 +18,7 @@ def login(api_key=''):
|
|||
from ultralytics import hub
|
||||
hub.login('API_KEY')
|
||||
"""
|
||||
Auth(api_key)
|
||||
Auth(api_key, verbose=True)
|
||||
|
||||
|
||||
def logout():
|
||||
|
|
@ -82,7 +82,7 @@ def export_model(model_id='', format='torchscript'):
|
|||
|
||||
def get_export(model_id='', format='torchscript'):
|
||||
# Get an exported model dictionary with download URL
|
||||
assert format in export_fmts_hub, f"Unsupported export format '{format}', valid formats are {export_fmts_hub}"
|
||||
assert format in export_fmts_hub(), f"Unsupported export format '{format}', valid formats are {export_fmts_hub()}"
|
||||
r = requests.post('https://api.ultralytics.com/get-export',
|
||||
json={
|
||||
'apiKey': Auth().api_key,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue