Closed ryankimky closed 4 years ago
Config file already uploaded, this is it
Which version of python do you use? I don't have an __init__.py
files in modules because it is not necessary for Python 3.3+
Also, there is a next code in run.py
script:
lib_path = os.path.join(os.path.dirname(__file__), 'lib')
if lib_path not in sys.path:
sys.path.insert(0, lib_path)
This code add ./lib folder to sys.path, where python search modules.
So, you can add print(sys.path)
after code i show above and check, that ./lib folder of library was added to sys.path variable.
Are you check availability of ./lib folder in sys.path list after start run
script?
i am using python 3.5.2. i still checking the your run.py script.
Oh, this is my mistake! You try to import config module before add its path to sys.
Try to change in run.py
:
BEFORE:
from config import cfg`
...
from utils.net_utils import parse_additional_params
AFTER:
from lib.config import cfg
...
from lib.utils.net_utils import parse_additional_params
thx, i will try to run it again.
I am update library with https://github.com/loolzaaa/faster-rcnn-pytorch/commit/4231d939eca754329d3912fcabb7ded62be762d1, just pull it.
Feel free to reopen issue if problem did not solved.
For run.py, i can't find config file.
Traceback (most recent call last): File "run.py", line 7, in
from config import cfg
ImportError: No module named 'config'
plz upload config file. thx