Reference for ultralytics/data/explorer/utils.py
Note
This file is available at https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/explorer/utils.py. If you spot a problem please help fix it by contributing a Pull Request 🛠️. Thank you 🙏!
ultralytics.data.explorer.utils.get_table_schema
Extracts and returns the schema of a database table.
Source code in ultralytics/data/explorer/utils.py
ultralytics.data.explorer.utils.get_sim_index_schema
Returns a LanceModel schema for a database table with specified vector size.
Source code in ultralytics/data/explorer/utils.py
ultralytics.data.explorer.utils.sanitize_batch
Sanitizes input batch for inference, ensuring correct format and dimensions.
Source code in ultralytics/data/explorer/utils.py
ultralytics.data.explorer.utils.plot_query_result
Plot images from the similar set.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
similar_set |
list
|
Pyarrow or pandas object containing the similar data points |
required |
plot_labels |
bool
|
Whether to plot labels or not |
True
|
Source code in ultralytics/data/explorer/utils.py
ultralytics.data.explorer.utils.prompt_sql_query
Plots images with optional labels from a similar data set.
Source code in ultralytics/data/explorer/utils.py
📅 Created 9 months ago
✏️ Updated 26 days ago