Commit
•
e6320fd
1
Parent(s):
0c72d9c
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,8 @@ Here is sample code for an Image Classification pipeline with the ResNet model.
|
|
21 |
from deepsparse import Pipeline
|
22 |
pipeline = Pipeline.create(task="image_classification",
|
23 |
model_path="zoo:cv/classification/resnet_v1-50/pytorch/sparseml/imagenet/base-none")
|
24 |
-
|
|
|
25 |
print(inference)
|
26 |
```
|
27 |
## Use Case Description
|
|
|
21 |
from deepsparse import Pipeline
|
22 |
pipeline = Pipeline.create(task="image_classification",
|
23 |
model_path="zoo:cv/classification/resnet_v1-50/pytorch/sparseml/imagenet/base-none")
|
24 |
+
input_image = "my_image.png" # path to input image
|
25 |
+
inference = pipeline(input_image)
|
26 |
print(inference)
|
27 |
```
|
28 |
## Use Case Description
|