Skip to content

Commit

Permalink
Remove the image demo, models, dataset, and other related documentati…
Browse files Browse the repository at this point in the history
…on from the LIT examples.

PiperOrigin-RevId: 640191591
  • Loading branch information
llcourage authored and LIT team committed Jun 4, 2024
1 parent f4c0990 commit 6aa2eb6
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 2,401 deletions.
15 changes: 0 additions & 15 deletions lit_nlp/examples/blank_slate_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
left-to-right language model, with the Stanford Sentiment Treebank dataset,
the IMDB reviews dataset, Billion Word Benchmark (lm1b) dataset and the option
to load sentences from a flat text file.
- MobileNet model, with the Imagenette TFDS dataset.
To run:
python -m lit_nlp.examples.blank_slate_demo --port=5432
Expand All @@ -32,12 +31,10 @@
from lit_nlp import server_flags
from lit_nlp.examples.datasets import classification
from lit_nlp.examples.datasets import glue
from lit_nlp.examples.datasets import imagenette
from lit_nlp.examples.datasets import lm
from lit_nlp.examples.datasets import mt
from lit_nlp.examples.datasets import summarization
from lit_nlp.examples.models import glue_models
from lit_nlp.examples.models import mobilenet
from lit_nlp.examples.models import pretrained_lms
from lit_nlp.examples.models import t5
from lit_nlp.examples.penguin import data as penguin_data
Expand Down Expand Up @@ -111,12 +108,6 @@ def main(argv: Sequence[str]) -> Optional[dev_server.LitServerType]:
pretrained_lms.GPT2LanguageModel.init_spec(),
)

# image model loaders.
model_loaders["image"] = (
mobilenet.MobileNet,
mobilenet.MobileNet.init_spec(),
)

datasets = {}
dataset_loaders: lit_app.DatasetLoadersMap = {}

Expand Down Expand Up @@ -156,12 +147,6 @@ def main(argv: Sequence[str]) -> Optional[dev_server.LitServerType]:
lm.BillionWordBenchmark.init_spec(),
)

# image demo dataset loaders.
dataset_loaders["image"] = (
imagenette.ImagenetteDataset,
imagenette.ImagenetteDataset.init_spec(),
)

# Start the LIT server. See server_flags.py for server options.
lit_demo = dev_server.Server(
models,
Expand Down
34 changes: 0 additions & 34 deletions lit_nlp/examples/datasets/imagenette.py

This file was deleted.

32 changes: 0 additions & 32 deletions lit_nlp/examples/datasets/open_images.py

This file was deleted.

100 changes: 0 additions & 100 deletions lit_nlp/examples/image_demo.py

This file was deleted.

Loading

0 comments on commit 6aa2eb6

Please sign in to comment.