Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -20,24 +20,6 @@ The dataset covers diverse domains including character attributes, clothing, acc
|
|
| 20 |
|
| 21 |
## Usage
|
| 22 |
|
| 23 |
-
The dataset can be used with the `dghs-imgutils` library for efficient vocabulary processing:
|
| 24 |
-
|
| 25 |
-
```python
|
| 26 |
-
from dghs_imgutils import load_vocabulary
|
| 27 |
-
|
| 28 |
-
# Load vocabulary from any of the available tagger models
|
| 29 |
-
vocab = load_vocabulary('deepghs/tagger_vocabs', subfolder='deepdanbooru')
|
| 30 |
-
|
| 31 |
-
# Access tag information
|
| 32 |
-
for tag in vocab.tags[:5]: # First 5 tags
|
| 33 |
-
print(f"Name: {tag.name}")
|
| 34 |
-
print(f"Aliases: {tag.aliases}")
|
| 35 |
-
print(f"Category: {tag.category}")
|
| 36 |
-
print(f"Count: {tag.count}")
|
| 37 |
-
print(f"Words: {tag.words}")
|
| 38 |
-
print("---")
|
| 39 |
-
```
|
| 40 |
-
|
| 41 |
For direct file access:
|
| 42 |
|
| 43 |
```python
|
|
|
|
| 20 |
|
| 21 |
## Usage
|
| 22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
For direct file access:
|
| 24 |
|
| 25 |
```python
|