Skip to content

Commit

Permalink
Instructions for inferencing with few labels.
Browse files Browse the repository at this point in the history
  • Loading branch information
shalinidemello committed Apr 3, 2023
1 parent 04c42cb commit e97b06c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions GETTING_STARTED.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,18 @@ to understand its behavior. Some common arguments are:
* To run __on the cpu__, add `train.device=cpu` at the end.
* To save outputs to a directory (for images) or a file (for webcam or video), use the `--output` option.

The default bevahior is to append the user-provided extra vocabulary to the labels from COCO, ADE20K and LVIS.
To use **only** the user-provided vocabulary use `--label ""`.

```
python demo/demo.py --input demo/examples/purse.jpeg --output demo/purse_pred.jpg --label "" --vocab "purse"
```

or

```
python demo/demo.py --input demo/examples/purse.jpeg --output demo/purse_pred.jpg --label "" --caption "there is a black purse"
```

### Command line-based Training & Evaluation

Expand Down
Binary file added demo/examples/purse.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e97b06c

Please sign in to comment.