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

训练好的模型导入到小程序用coco-ssd加载报错 #57

Open
shuizhuyu1015 opened this issue Mar 2, 2023 · 2 comments
Open

Comments

@shuizhuyu1015
Copy link

shuizhuyu1015 commented Mar 2, 2023

请问怎么调整训练后转化的模型 与 小程序coco-ssd加载的兼容啊。

我训练了一个模型ssd_mobilenet_v1_fpn_model模型,转化成json后在小程序用coco-ssd加载它,detect报错如下
Tensor must have a shape comprised of positive integers but got shape [100,].

这可能是格式问题,但是不知道怎么调整它,大佬知道吗

@HunterXuan
Copy link
Owner

应该是输入的 shape 不匹配,可以往这个方向查查

@shuizhuyu1015
Copy link
Author

shuizhuyu1015 commented Mar 3, 2023

计算方法上参照您的方法设置的,是不是模型不对,怎样才能导出您那样的模型啊。
image
我的模型json
image

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