mwitiderrick commited on
Commit
cb7d55a
1 Parent(s): a55a355

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -18,7 +18,6 @@ The DeepSparse library provides an `image_classification` pipeline that you can
18
  The pipeline enables you to choose a sparsified model from the [SparseZoo](https://sparsezoo.neuralmagic.com/).
19
  SparseZoo contains models that have been pruned and quantized. They are, therefore, smaller than the original models. This makes them easier to deploy, especially on edge devices. These small classification models have the same accuracy as the original models but are faster and have a higher throughput.
20
  Here is sample code for an Image Classification pipeline with the ResNet model.
21
-
22
  ```python
23
  from deepsparse import Pipeline
24
  pipeline = Pipeline.create(task="image_classification",model_path = "zoo:cv/classification/resnet_v1-50/pytorch/sparseml/imagenet/base-none")
@@ -26,7 +25,6 @@ input_image = "my_image.png" # path to input image
26
  inference = pipeline(input_image)
27
  print(inference)
28
  ```
29
-
30
  ## Use Case Description
31
  Image classification is applicable in scenarios where you are interested in only classifying an object in an image without localizing it.
32
  For example, you can build an image classification model to classify products in a store.
 
18
  The pipeline enables you to choose a sparsified model from the [SparseZoo](https://sparsezoo.neuralmagic.com/).
19
  SparseZoo contains models that have been pruned and quantized. They are, therefore, smaller than the original models. This makes them easier to deploy, especially on edge devices. These small classification models have the same accuracy as the original models but are faster and have a higher throughput.
20
  Here is sample code for an Image Classification pipeline with the ResNet model.
 
21
  ```python
22
  from deepsparse import Pipeline
23
  pipeline = Pipeline.create(task="image_classification",model_path = "zoo:cv/classification/resnet_v1-50/pytorch/sparseml/imagenet/base-none")
 
25
  inference = pipeline(input_image)
26
  print(inference)
27
  ```
 
28
  ## Use Case Description
29
  Image classification is applicable in scenarios where you are interested in only classifying an object in an image without localizing it.
30
  For example, you can build an image classification model to classify products in a store.