chaoyuaw / pytorch-coviar

Compressed Video Action Recognition
https://www.cs.utexas.edu/~cywu/projects/coviar/
GNU Lesser General Public License v2.1
502 stars 126 forks source link

from coviar import load #77

Open Pari-singh opened 5 years ago

Pari-singh commented 5 years ago

Hi,

I followed the instructions till ./install.sh in dataloader. But after that I am confused where should the from coviar import load run? When I run it from dataloader file, I get no module named coviar, when I run it from the root which contains coviar, I get the error - cannot import name load.

Can someone who has successfully run this instruction be bale to help me, did I install the FFmpeg wrongly? I could carry out the instructions successfully though. Thanks

DawnChou commented 4 years ago

Hi, it's been a long time so I am not sure if this reply would help you. I met the same problem at first but then I found there was a sign after you successfully run ./install.sh, which in my screen was copying build/lib.linux-x86_64-3.6/coviar.cpython-36m-x86_64-linux-gnu.so -> /home/zyp/.local/lib/python3.6/site-packages . So this means the coviar library has been linked to python3.6, one version that I had installed before. But when I input python3, it actually opens python3.7, not python 3.6. After I input python3.6 and from coviar import load, the code runs successfully. I just wonder maybe you also installed several version of python in your computer and you can check whether the coviar is linked to other versions rather than your default version.