Skip to content

Commit

Permalink
Fixed example for zero-shot-detection-transformer-torch
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Bogdoll committed Dec 5, 2024
1 parent 1649f2f commit 06cab9a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/scripts/make_model_zoo_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,17 @@
model = foz.load_zoo_model("{{ name }}")
embeddings = dataset.compute_embeddings(model)
{% elif 'zero-shot-detection-transformer-torch' in name %}
model = foz.load_zoo_model(
"{{ name }}",
classes=["person", "dog", "cat", "bird", "car", "tree", "chair"]
)
dataset.apply_model(model, label_field="predictions")
session = fo.launch_app(dataset)
{% else %}
model = foz.load_zoo_model("{{ name }}")
Expand Down

0 comments on commit 06cab9a

Please sign in to comment.