jhb86253817 / PIPNet

Efficient facial landmark detector
MIT License
412 stars 82 forks source link

troubleshooting sh run_train.sh #43

Closed apecundo closed 1 year ago

apecundo commented 1 year ago

Hi!

Thank you very much for this and making it public!

I have tried running the training for ResNet101 for 300W dataset (I am using Python on WSL with Ubuntu distro) and I have been getting this error.

"Traceback (most recent call last): File "lib/train.py", line 32, in my_config = importlib.import_module(config_path, package = 'PIPNet') File "/home/apecundo725/anaconda3/envs/PIPNet/lib/python3.8/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 970, in _find_and_load_unlocked ModuleNotFoundError: No module named 'PIPNet.experiments.data_300W.pip_32_16_60_r101_l2_l1_10_1_nb10.'; 'PIPNet.experiments.data_300W.pip_32_16_60_r101_l2_l1_10_1_nb10' is not a package"

I have kept the folder structure as is from the github but I keep getting this error. I am wondering what fixes can be applied (I have tried adding init.py files but it does not help)

I have been able to run the preprocessing.py script but am stuck at the training part of the process.

Thank you very much for the support.

jhb86253817 commented 1 year ago

Hi, this is really strange as I just tried it on WSL, which seems fine. Let me know if you have other infomation for debugging.

apecundo commented 1 year ago

Hello! I applied the following fix that made my code run

image

For some reason, experiment_name variable gets an extra "." at the end which is why it would not run.

I tried excluding the period by using [-4] instead of [-3] when extracting the experiment name.

Thanks!

jhb86253817 commented 1 year ago

Great, good to know!