Mask_RCNN:Error: cannot import name‘saving‘问题

When running the Mask_RCNN source code, you will encounter:

from keras.engine import saving
cannot import name’saving’
Insert picture description here

This is a very unpopular error. The previous method of checking on the Internet, such as the wrong version of keras, needs to download the higher version. . .

Reinstalled various versions for a long time to no effect. . . .

Later, I found that this problem has nothing to do with the keras library, it is the cause of the mrcnn library.

My previous error was because when I was running the Mask_RCNN source code, it reported an error that the mrcnn library could not be found, and then I went straight to the pip install mrcnnresult and it was installed. . .
In fact, the source code package comes with the mrcnn folder, but the path was not right at the time, so I couldn’t find it.mrcnn

The final solution:
Uninstall the mrcnnpackage downloaded by pip : pip uninstall mrcnn
then adjust the path and directly use the mrcnn package in the Mask_RCNN source code.

Guess you like

Origin blog.csdn.net/sazass/article/details/109885504