AMCT (TensorFlow,Ascend)

This scenario applies only to.

Use the AMCT installation user to install the dependent software. If the installation user is a non-root user, ensure that the user has the sudo permission. Run the su - username command to switch to the non-root user and run the following commands. If the installation user is root, delete --user from the command for installing the dependent software. .

After the installation is complete, run the following commands to install the dependencies (the Pillow software is required for image processing):

Table 1 Dependency list

Dependency

Version

Installation Command

CPU version of TensorFlow

2.6.5 or 1.15.0

Select one based on your requirements.

  • CPU version of TensorFlow 2.6.5
    python3 -m pip install tensorflow-cpu==2.6.5 --user
  • CPU version of TensorFlow 1.15
    python3 -m pip install tensorflow-cpu==1.15 --user
NOTICE:
  • If different TensorFlow versions are used, ensure that the Python version in your installation command is correct. (Change the environment variables to match the Python version in use.)
  • Currently, quantization is supported only in TensorFlow 1.15.0, whereas inferences during quantization can be run in both TensorFlow 1.15.0 and 2.6.5.

Pillow

6.0.0+

pip3 install pillow==6.0.0 --user