Skip to content

Commit

Permalink
Merge pull request #14 from tokk-nv/main
Browse files Browse the repository at this point in the history
NanoDB tutorial page and Top page fix
  • Loading branch information
tokk-nv authored Oct 12, 2023
2 parents ea9dd72 + 758aef6 commit ea02529
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 12 deletions.
24 changes: 14 additions & 10 deletions docs/overrides/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,18 +117,20 @@
padding-left: 15px;
}

.col-sm-6 {
-ms-flex: 0 0 50%;
flex: 0 0 50%;
max-width: 50%;
@media (min-width: 576px) {
.col-sm-6 {
-ms-flex: 0 0 50%;
flex: 0 0 50%;
max-width: 50%;
}
}

.col-lg-4 {
-ms-flex: 0 0 33.333333%;
flex: 0 0 33.333333%;
max-width: 33.333333%;
@media (min-width: 992px) {
.col-lg-4 {
-ms-flex: 0 0 33.333333%;
flex: 0 0 33.333333%;
max-width: 33.333333%;
}
}

.mb-4, .my-4 {
margin-bottom: 1.5rem!important;
}
Expand Down Expand Up @@ -385,6 +387,8 @@ <h3 class="mb-3 mt-0">NanoSAM</h3>
</section>
<!-- /feature-box -->



<script type="text/javascript">
function nat_at_top() {
var navtab = document.getElementsByClassName('md-tabs');
Expand Down
22 changes: 20 additions & 2 deletions docs/tutorial_nanodb.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,37 @@ cd jetson-containers

This will take about 2 hours.

Once the database has loaded and completed any start-up operations , it will drop down to a `> ` prompt from which the user can run search queries.<br>
You can quickly check the operation by typing your query on this prompt.

```
> a girl riding a horse
* index=80110 /data/datasets/coco/2017/train2017/000000393735.jpg similarity=0.29991915822029114
* index=158747 /data/datasets/coco/2017/unlabeled2017/000000189708.jpg similarity=0.29254037141799927
* index=123846 /data/datasets/coco/2017/unlabeled2017/000000026239.jpg similarity=0.292171448469162
* index=127338 /data/datasets/coco/2017/unlabeled2017/000000042508.jpg similarity=0.29118549823760986
* index=77416 /data/datasets/coco/2017/train2017/000000380634.jpg similarity=0.28964102268218994
* index=51992 /data/datasets/coco/2017/train2017/000000256290.jpg similarity=0.28929752111434937
* index=228640 /data/datasets/coco/2017/unlabeled2017/000000520381.jpg similarity=0.28642547130584717
* index=104819 /data/datasets/coco/2017/train2017/000000515895.jpg similarity=0.285491943359375
```

You can press ++ctrl+c++ to exit from the app and the container.

### Interactive web UI

Spin up the Gradio server.

```
cd jetson-containers
./run.sh -v /path/to/your/dataset:/my_dataset $(./autotag nanodb) \
./run.sh -v ${PWD}/data/datasets/coco:/my_dataset $(./autotag nanodb) \
python3 -m nanodb \
--path /my_dataset/nanodb \
--server --port=7860
```

You can use your PC (or any machine) that can access your Jetson via a network, and navigate your browser to `http://<IP_ADDRESS>:7860?__theme=dark`
You can use your PC (or any machine) that can access your Jetson via a network, and navigate your browser to `http://<IP_ADDRESS>:7860`

You can enter text search queries as well as drag/upload images.

Expand Down

0 comments on commit ea02529

Please sign in to comment.