TypeError: read() got an unexpected keyword argument ‘ignoregamma‘

Cause of the problem: This error is caused by the imageio.imread() function not supporting the ignoregamma parameter. According to the error message, the version of imageio used is lower and does not support this parameter.

Solution:

There are a few things to try:

1. Upgrade imageio package: Try to upgrade imageio package to the latest version, use the following command

pip install --upgrade imageio

2. Use an older imageio version: If upgrading imageio does not work, you can try An older imageio version, which supports the ignoregamma parameter. You can install the specified version of imageio with the following command:

pip install imageio==2.9.0

Guess you like

Origin blog.csdn.net/qq_46684028/article/details/132722953