Technical requirements
The code for this chapter has been developed and tested on macOS with Anaconda or in Google Colab with Python. If you are using another environment, please make the appropriate changes to your env
variables. Please ensure you have the correct version before running the code.
In this chapter, we will primarily be using the following Python modules, mentioned with their versions:
pytorch-lightning
(version 1.5.10)torch
(version 1.11.0)requests
(version 2.27.1)torchvision
(version 0.12.0)flask
(version 2.0.2)pillow
(version 8.2.0)numpy
(version 1.21.3)json
(version 2.0.9)onnxruntime
(version 1.10.0))
Working examples for this chapter can be found at this GitHub link: https://github.com/PacktPublishing/Deep-Learning-with-PyTorch-Lightning/tree/main/Chapter09.
In order to make sure that these modules work together and not go out of sync, we have used the specific version of torch, torchvision, torchtext...