diff --git a/09_pytorch_model_deployment.ipynb b/09_pytorch_model_deployment.ipynb index f145473..e7171bd 100644 --- a/09_pytorch_model_deployment.ipynb +++ b/09_pytorch_model_deployment.ipynb @@ -1576,7 +1576,7 @@ "5. Get the sample path and ground truth class name (we can do this by infering the class from the path).\n", "6. Start the prediction timer using Python's [`timeit.default_timer()`](https://docs.python.org/3/library/timeit.html#timeit.default_timer).\n", "7. Open the image using [`PIL.Image.open(path)`](https://pillow.readthedocs.io/en/stable/reference/Image.html#functions).\n", - "8. Transform the image so it's capable of being using with the target model as well as add a batch dimension and send the image to the target device.\n", + "8. Transform the image so it's capable of being used with the target model as well as add a batch dimension and send the image to the target device.\n", "9. Prepare the model for inference by sending it to the target device and turning on `eval()` mode.\n", "10. Turn on [`torch.inference_mode()`](https://pytorch.org/docs/stable/generated/torch.inference_mode.html) and pass the target transformed image to the model and calculate the prediction probability using `torch.softmax()` and the target label using `torch.argmax()`.\n", "11. Add the prediction probability and prediction class to the prediction dictionary created in step 4. Also make sure the prediction probability is on the CPU so it can be used with non-GPU libraries such as NumPy and pandas for later inspection.\n",