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

PPShitu python3.12 构建索引后识别接口返回结果全是空的 #3247

Open
LeanFly opened this issue Sep 13, 2024 · 1 comment
Open
Assignees

Comments

@LeanFly
Copy link

LeanFly commented Sep 13, 2024

欢迎您使用PaddleClas并反馈相关问题,非常感谢您对PaddleClas的贡献!
提出issue时,辛苦您提供以下信息,方便我们快速定位问题并及时有效地解决您的问题:

  1. PaddleClas版本以及PaddlePaddle版本:paddlepaddle-gpu==2.6.1.post120,paddleclas==2.5.2

  2. 训练环境信息:
    a. Linux,Ubuntu2404-desktop
    b. Python3.12
    c. CUDA12/cuDNN 8.9.7.29

  3. 完整的代码(相比于repo中代码,有改动的地方)、详细的错误信息及相关log
    /home/paddle/venv-paddleclas/lib/python3.8/site-packages/paddleclas/deploy/python/predict_rec.py:93: RuntimeWarning: invalid value encountered in divide batch_output = np.divide(batch_output, feas_norm)

  4. { "err_no": 0, "err_msg": "", "key": [ "result" ], "value": [ "[]" ], "tensors": [] }

@Bobholamovic
Copy link
Member

看起来可能是特征中包含零值,可以断点打印feats_norm的值确认这一点。如果确实如此,建议首先确认模型给出的结果是符合预期的,然后可以考虑在feas_norm的基础上加上一个小偏置以避免除0错误。

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