-
Notifications
You must be signed in to change notification settings - Fork 56
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
加载 ncnn 模型失败 #5
Comments
应该是转换参数有问题, 找到出现错误的操作, 检查一下转换后的参数吧,如果方便可以提供下网络模型文件 |
我使用的是 yolov3-tiny 版的模型训练的自己的数据,darkNet cfg 文件如下: Testingbatch=1 Training#batch=64 learning_rate=0.01 [convolutional] [maxpool] [convolutional] [maxpool] [convolutional] [maxpool] [convolutional] [maxpool] [convolutional] [maxpool] [convolutional] [maxpool] [convolutional] ################### [convolutional] [convolutional] [convolutional] [yolo] [route] [convolutional] [upsample] [route] [convolutional] [convolutional] [yolo] =========================================================== 我尝试注释掉 DarknetActivation 这一层 加载便成功了 不知道如何解决,请教一下 |
DarknetActivation 是自定义的网络层, 你需要将其注册到ncnn network中, 具体的你可以参考example/yolo.cpp
|
谢谢 |
使用 Darknet 训练模型后,转化为 ncnn 模型,最后使用 ncnn 加载 .param 文件,返回 -1 ,加载失败。不知道何原因?使用caffe 训练的模型,转化后,可以加载成功。
The text was updated successfully, but these errors were encountered: