Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 38e6ef6

Browse files
authored
Merge pull request #614 from Meteorix/patch-2
Add serving batching: point to service-streamer tutorial
2 parents 8ddb3a9 + 9222d13 commit 38e6ef6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

intermediate_source/flask_rest_api_tutorial.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,3 +350,9 @@ def get_prediction(image_bytes):
350350
# - You can also add a UI by creating a page with a form which takes the image and
351351
# displays the prediction. Check out the `demo <https://pytorch-imagenet.herokuapp.com/>`_
352352
# of a similar project and its `source code <https://github.com/avinassh/pytorch-flask-api-heroku>`_.
353+
#
354+
# - In this tutorial, we only showed how to build a service that could return predictions for
355+
# a single image at a time. We could modify our service to be able to return predictions for
356+
# multiple images at once. In addition, the `service-streamer <https://github.com/ShannonAI/service-streamer>`_
357+
# library automatically queues requests to your service and samples them into mini-batches
358+
# that can be fed into your model. You can check out `this tutorial <https://github.com/ShannonAI/service-streamer/wiki/Vision-Recognition-Service-with-Flask-and-service-streamer>`_.

0 commit comments

Comments
 (0)