From 912168431cddcb527669843f9f5d139366e540a3 Mon Sep 17 00:00:00 2001 From: TheShadeEngine Date: Mon, 3 Jul 2023 11:39:36 +0100 Subject: [PATCH 1/2] splling error fix --- 09_pytorch_model_deployment.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/09_pytorch_model_deployment.ipynb b/09_pytorch_model_deployment.ipynb index f145473..b610e69 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", @@ -5069,7 +5069,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.13" + "version": "3.10.5" }, "vscode": { "interpreter": { From 8def9c3acd77d86e7a84f73d7694b1b231d11e7c Mon Sep 17 00:00:00 2001 From: TheShadeEngine <63643948+Ganryuu@users.noreply.github.com> Date: Mon, 3 Jul 2023 12:05:19 +0100 Subject: [PATCH 2/2] Update 09_pytorch_model_deployment.ipynb python version --- 09_pytorch_model_deployment.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/09_pytorch_model_deployment.ipynb b/09_pytorch_model_deployment.ipynb index b610e69..e7171bd 100644 --- a/09_pytorch_model_deployment.ipynb +++ b/09_pytorch_model_deployment.ipynb @@ -5069,7 +5069,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.5" + "version": "3.8.13" }, "vscode": { "interpreter": {