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

Is it possible to export training results? #651

Closed
1 task done
henningheyen opened this issue Apr 20, 2024 · 2 comments
Closed
1 task done

Is it possible to export training results? #651

henningheyen opened this issue Apr 20, 2024 · 2 comments
Assignees
Labels
fixed Bug is resolved question A HUB question that does not involve a bug

Comments

@henningheyen
Copy link

henningheyen commented Apr 20, 2024

Search before asking

Question

Hey,

I trained a custom model using the Ultalytics Hub. Now I would like to export the training results (charts, weights, etc). Similar to "runs/detect/train/" when training locally.

Is there such an export feature?

Environment Details

  • Ultralytics HUB Version: v0.1.40
  • Client User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15
  • Operating System: MacIntel
  • Browser Window Size: 1920 x 1000
  • Server Timestamp: 1713615377
@henningheyen henningheyen added the question A HUB question that does not involve a bug label Apr 20, 2024
@yogendrasinghx
Copy link
Member

Yes, we support exporting training results like charts and weights from the Ultralytics Hub using our HUB SDK. You can easily accomplish this with the following Python code snippet:

from hub_sdk import HUBClient

# Initialize the HUBClient with your API key
credentials = {"api_key": "<API-KEY>"}
client = HUBClient(credentials)
print("Authenticated:", client.authenticated)

# Access your trained model by its ID
model = client.model("<MODEL-ID>")

# Retrieve metrics from the model
metrics = model.get_metrics()
print("Metrics Data:", metrics)

# Get a URL to download the best model weights
weight_url = model.get_weights_url("best")
print("Weight URL link:", weight_url)

Make sure to replace <API-KEY> and <MODEL-ID> with your actual API key and model ID. This script will authenticate you, fetch the training metrics, and provide a direct link to download the best weights.

For more details and additional functionalities, refer to the Ultralytics HUB SDK documentation.

@sergiuwaxmann sergiuwaxmann added the fixed Bug is resolved label May 7, 2024
@sergiuwaxmann sergiuwaxmann mentioned this issue Jun 12, 2024
Closed
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed Bug is resolved question A HUB question that does not involve a bug
Projects
None yet
Development

No branches or pull requests

4 participants
@yogendrasinghx @sergiuwaxmann @henningheyen and others