CoinCheung / BiSeNet

Add bisenetv2. My implementation of BiSeNet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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?

The screenshot of the code I ran on the ECS is as follows:
1677157412224

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.

The ECS must enter the directory where the code is located before it can run. It will make a mistake according to your suggestion. Can I take all the files in tools to the outermost folder?
Uploading 1677161798564.png…

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.