No module named 'lib'
zercy-99 opened this issue · comments
Why will an error be reported when running the code?
Traceback (most recent call last):
File "demo.py", line 13, in
import lib.data.transform_cv2 as T
ModuleNotFoundError: No module named 'lib'
What is the steps to reproduce this problem? What did you do?
After completing the steps you gave, I just run"demo.py". Then I failed.
Would you show me the screenshot what did you do?
I downloaded the data package(cocostuff) and then unzipped it to the specified path as prompted. After running the "demo.py", an error was reported. The picture is the error
I think the step in the readme use the command of python tools/demo.py
rahther than python demo.py
.
I have specified the path above, which means to run python tools/demo.py
. Is it necessary to modify "init.py" in the folder lib
you need to go the the directory of BiSeNet
rather than BiSeNet/tools
to run the script.
I moved demo.py
to upper level directory of BiSeNet
and run it, I did not meet this problem.
Maybe you have figured out the solution, so let me close this.