Preparations Before Training
- To ensure that the subsequent training can be successfully performed, modify the following code in the training script (main.py). The following lines are for reference only.
- Check the NumPy and Pillow versions. The NumPy version must be 1.23.0 or later, and the Pillow version must be 8.2.0 or later. If the versions do not meet the requirements, perform the following operations based on the Python version:
- If Python 3.8 or later is used, run the following commands to upgrade the dependencies:
pip3 install numpy==1.23.0 pip3 install pillow==8.2.0
- If Python 3.7.x (3.7.0-3.7.11) is used, comment out certain code in the __init__.py file in the x2ms_adapter directory. (The following lines are for reference only.)
Figure 1 Commenting out certain code
- If Python 3.8 or later is used, run the following commands to upgrade the dependencies:
Parent topic: Migration Tool (X2MindSpore)

