Deep learning encountered an error bug solution (updated from time to time)

All the following problems and solutions were encountered by me personally, and were successfully solved according to the solutions. If you still have problems, please discuss them in the comment area.

No module named ‘pycocotools‘

Reference blog: super simple solution No module named 'pycocotools'

Each version of pycocotools.whl file

Click any version in the link, (I installed 2.0.0), you must pay attention to the corresponding python version when downloading, cp36 refers to python3.6, cp37 and cp38 are the same.

After downloading, put it in your favorite folder, then start the command line, enter the directory where the whl file is located, and enter the following command. Note that install is followed by the full name of the whl file you downloaded

activate tensorflow
E:
cd E:/windows/Downloads
pip install pycocotools_windows-2.0-cp36-cp36m-win_amd64.whl

Convert Tensorflow version to 1.x version when using Google Colab

Reference blog: https://blog.csdn.net/qq_44262417/article/details/105222696

%tensorflow_version 1.x

maskrcnn training tips: FutureWarning: Input image dtype is bool

Reference blog: https://blog.csdn.net/qq_39483453/article/details/118598535

There is a problem with the scikit-image=0.17.2 version, modify the scikit-image package version to 0.16.2

pip install -U scikit-image==0.16.2

Successfully resolved AttributeError: 'str' object has no attribute 'decode'

Reference blog: https://blog.csdn.net/qq_41185868/article/details/82079079

pip install 'h5py<3.0.0' -i https://pypi.tuna.tsinghua.edu.cn/simple

TypeError: expected str, bytes or os.PathLike object, not NoneType

Most of the problems occur because there is no specified path. The translation of the above problem is that a string or byte path is expected instead of the default value. If this problem occurs, you need to assign the variable of the specified path. This kind of error mostly occurs when running open source code.

Check the string variable at the corresponding position in the code, whether a certain value is passed in instead of None.

This blog post was first published on the personal blog website: https://www.mahaofei.com/ , welcome to visit.

Guess you like

Origin blog.csdn.net/weixin_44543463/article/details/125628102