mirror of
https://github.com/THU-MIG/yolov10.git
synced 2025-05-23 13:34:23 +08:00
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
1
.github/workflows/publish.yml
vendored
1
.github/workflows/publish.yml
vendored
@ -33,7 +33,6 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip wheel build twine
|
||||
pip install "git+https://github.com/squidfunk/mkdocs-material@master"
|
||||
pip install -e ".[dev]" --extra-index-url https://download.pytorch.org/whl/cpu
|
||||
- name: Check PyPI version
|
||||
shell: python
|
||||
|
@ -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
|
||||
|
@ -89,7 +89,7 @@ dev = [
|
||||
"pytest",
|
||||
"pytest-cov",
|
||||
"coverage[toml]",
|
||||
"mkdocs-material",
|
||||
"mkdocs-material>=9.5.9",
|
||||
"mkdocstrings[python]",
|
||||
"mkdocs-jupyter", # for notebooks
|
||||
"mkdocs-redirects", # for 301 redirects
|
||||
|
Loading…
x
Reference in New Issue
Block a user