Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ppvideo --model_name="ppTSM" --use_gpu=False --video_file="data/example.avi" 报错 #701

Open
xsbrsg opened this issue Aug 16, 2024 · 0 comments
Assignees

Comments

@xsbrsg
Copy link

xsbrsg commented Aug 16, 2024

window conda虚拟环境:
paddlepaddle 2.5.2
paddlepaddle-gpu 2.5.2
pandas 1.3.5
Pillow 9.5.0
pip 24.0
ppvideo 2.3.0

执行ppvideo --model_name="ppTSM" --use_gpu=False --video_file="data/example.avi" 报错ModuleNotFoundError: No module named 'paddlevideo'

pip install paddlevideo后,使用ppvideo命令行可以正常输出,
但运行代码
from ppvideo import PaddleVideo clas = PaddleVideo(model_name="ppTSM", use_gpu=False) video_file = 'data/example.avi' clas.predict(video_file)
报错AttributeError: module 'tools.utils' has no attribute 'decode',不安装paddlevideo前,代码输出正常。

综上,命令行运行和脚本运行不能同时使用,请问可能是什么问题?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants