facebookresearch / VMZ

VMZ: Model Zoo for Video Modeling
Apache License 2.0
1.04k stars 156 forks source link

ImportError: No module named models.model_builder #39

Closed 953585130 closed 5 years ago

953585130 commented 6 years ago

Hi, I have built the environment according to the tutorial. I want to do a test with two small videos. I created the lmdb database through the script, but when I executed the script to extract the features, I made an error. I tried to modify the path and still failed. Solve, hope to get your help, thanks.

ThinkStation:~/R2Plus1D-master$ sh scripts/extract_feature_myvideos.sh Traceback (most recent call last): File "tools/extract_features.py", line 21, in import models.model_builder as model_builder ImportError: No module named models.model_builder

CHJoanna commented 6 years ago

Do export PYTHONPATH=$PYTHONPATH:`pwd`/lib under root directory. (See tutorials/faq)

dutran commented 6 years ago

@953585130 does it work for you?

953585130 commented 6 years ago

export PYTHONPATH=$PYTHONPATH:`pwd`/lib根目录下。 (参见教程/常见问题解答)

953585130 commented 6 years ago

@dutran Since it was more urgent at the time, I copied the models and utils in the lib folder to the tools folder and then executed it. At the beginning of the tutorial, I said that I tried to test on the cpu. However, I can't perform feature extraction on the cpu. I am trying gpu.

953585130 commented 6 years ago

@CHJoanna Thank you for your reply! Since it was more urgent at the time, I copied the models and utils in the lib folder to the tools folder and then executed it. At the beginning of the tutorial, I said that I tried to test on the cpu. However, I can't perform feature extraction on the cpu. I am trying gpu.I can try this method on gpu.