Updated SQL Query Plot Code (#8120)
Co-authored-by: Ayush Chaurasia <ayush.chaurarsia@gmail.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
bcd4225680
commit
22364dc6d1
3 changed files with 3 additions and 4 deletions
|
|
@ -192,8 +192,8 @@ You can also plot the results of a SQL query using the `plot_sql_query` method.
|
|||
exp = Explorer(data='coco128.yaml', model='yolov8n.pt')
|
||||
exp.create_embeddings_table()
|
||||
|
||||
df = exp.sql_query("WHERE labels LIKE '%person%' AND labels LIKE '%dog%'")
|
||||
print(df.head())
|
||||
# plot the SQL Query
|
||||
exp.plot_sql_query("WHERE labels LIKE '%person%' AND labels LIKE '%dog%' LIMIT 10")
|
||||
```
|
||||
|
||||
## 4. Advanced - Working with Embeddings Table
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue