Skip to content

Commit

Permalink
link to web demo
Browse files Browse the repository at this point in the history
  • Loading branch information
alvinwan committed Mar 25, 2020
1 parent 38b2812 commit 4dc43d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Neural-Backed Decision Trees

[Project Page]()  //  [Paper]()  //  [No-code Web Demo]()  //  [Colab Notebook](https://colab.research.google.com/github/alvinwan/neural-backed-decision-trees/blob/master/examples/load_pretrained_nbdts.ipynb)
[Project Page]()  //  [Paper]()  //  [No-code Web Demo](https://nbdt--alvinwan1.repl.co)  //  [Colab Notebook](https://colab.research.google.com/github/alvinwan/neural-backed-decision-trees/blob/master/examples/load_pretrained_nbdts.ipynb)

Run decision trees that achieve state-of-the-art accuracy for explainable models on CIFAR10, CIFAR100, TinyImagenet200, and ImageNet. NBDTs achieve accuracies within 1% of the original neural network on CIFAR10, CIFAR100, and TinyImagenet200 with the recently state-of-the-art WideResNet; and within 2% of the original neural network on Imagenet, using recently state-of-the-art EfficientNet.

Expand All @@ -22,7 +22,7 @@ Per the pipeline illustration above, we (1) [generate the hierarchy](https://git

## Running Pretrained NBDT on Examples

<i>Don't want to download? Try your own images on the [web demo]().</i>
<i>Don't want to download? Try your own images on the [web demo](https://nbdt--alvinwan1.repl.co).</i>

Pip install the `nbdt` utility and run it on an image of your choosing. This can be a local image path or an image URL. Below, we evaluate on an image of a cat, from the web. This cat is pictured below.

Expand Down
2 changes: 2 additions & 0 deletions examples/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
from torchvision import transforms
from nbdt.utils import DATASET_TO_CLASSES, load_image_from_path, maybe_install_wordnet


maybe_install_wordnet()
app = Flask(__name__)


Expand Down

0 comments on commit 4dc43d8

Please sign in to comment.