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

请问当将打架识别模型导出为inference模型时,输入为 shape=[None, cfg.num_seg, 3, cfg.target_size, cfg.target_size],怎么去掉第一个维度呢? #697

Open
muuda opened this issue May 28, 2024 · 0 comments
Assignees

Comments

@muuda
Copy link

muuda commented May 28, 2024

我现在正在按着此教程导出inference模型:https://github.com/PaddlePaddle/PaddleVideo/blob/develop/applications/FightRecognition/README.md
但是我现在遇到了一个问题:

shape=[None, cfg.num_seg, 3, cfg.target_size, cfg.target_size],

这里的输入维度为五个维度,我想将网络的输入改为[batch_size * cfg.num_seg, 3, cfg.target_size, cfg.target_size]这四个维度。当我简单的去掉第一个维度时,导出inference模型失败。
我查看网络模型源码:https://github.com/PaddlePaddle/PaddleVideo/blob/develop/paddlevideo/modeling/backbones/resnet_tweaks_tsm.py,
发现此网络的输入确实为四个维度,但是为什么导出inference模型时是需要五个维度呢?我想将网络的输入改为四个维度应该怎么做呢?
谢谢解答🙏

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