Update README.md
Browse files
README.md
CHANGED
|
@@ -53,7 +53,7 @@ backbone fine-tuned end-to-end with a single linear projection head.
|
|
| 53 |
from inference_tagger_standalone import Tagger
|
| 54 |
|
| 55 |
tagger = Tagger(
|
| 56 |
-
checkpoint_path="
|
| 57 |
vocab_path="tagger_vocab.json",
|
| 58 |
device="cuda",
|
| 59 |
)
|
|
@@ -70,7 +70,7 @@ tags = tagger.predict("https://example.com/image.jpg", threshold=0.35)
|
|
| 70 |
```bash
|
| 71 |
# top-30 tags, pretty output
|
| 72 |
python inference_tagger_standalone.py \
|
| 73 |
-
--checkpoint
|
| 74 |
--vocab tagger_vocab.json \
|
| 75 |
--images photo.jpg https://example.com/image.jpg \
|
| 76 |
--topk 30
|
|
@@ -88,7 +88,7 @@ python inference_tagger_standalone.py ... --format json
|
|
| 88 |
pip install fastapi uvicorn jinja2 aiofiles
|
| 89 |
|
| 90 |
python tagger_ui_server.py \
|
| 91 |
-
--checkpoint
|
| 92 |
--vocab tagger_vocab.json \
|
| 93 |
--port 7860
|
| 94 |
# → open http://localhost:7860
|
|
|
|
| 53 |
from inference_tagger_standalone import Tagger
|
| 54 |
|
| 55 |
tagger = Tagger(
|
| 56 |
+
checkpoint_path="tagger_proto.safetensors",
|
| 57 |
vocab_path="tagger_vocab.json",
|
| 58 |
device="cuda",
|
| 59 |
)
|
|
|
|
| 70 |
```bash
|
| 71 |
# top-30 tags, pretty output
|
| 72 |
python inference_tagger_standalone.py \
|
| 73 |
+
--checkpoint tagger_proto.safetensors \
|
| 74 |
--vocab tagger_vocab.json \
|
| 75 |
--images photo.jpg https://example.com/image.jpg \
|
| 76 |
--topk 30
|
|
|
|
| 88 |
pip install fastapi uvicorn jinja2 aiofiles
|
| 89 |
|
| 90 |
python tagger_ui_server.py \
|
| 91 |
+
--checkpoint tagger_proto.safetensors \
|
| 92 |
--vocab tagger_vocab.json \
|
| 93 |
--port 7860
|
| 94 |
# → open http://localhost:7860
|