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

oc工程搭建 #36

Closed
brightzhengh opened this issue Jul 26, 2017 · 12 comments
Closed

oc工程搭建 #36

brightzhengh opened this issue Jul 26, 2017 · 12 comments

Comments

@brightzhengh
Copy link

ncnn应该要初始化文件,看android里工程里有assets里有相关文件;
oc的话应该是参考在linux的示例吧?
net.load_param("model.param");
net.load_model("model.bin");
这两个文件怎么生成?

@nihui
Copy link
Member

nihui commented Jul 26, 2017

@brightzhengh
Copy link
Author

brightzhengh commented Jul 27, 2017

@nihui 帮忙看看这个问题:

qq20170727-205904 2x

堆栈:

@nihui
Copy link
Member

nihui commented Jul 27, 2017

param 文件的路径不对

@brightzhengh
Copy link
Author

@nihui 这个要传相对路径还是全路径,image我也是这样读的能读到

image

@nihui
Copy link
Member

nihui commented Jul 27, 2017

pathforresource 后面 oftype param ...

@brightzhengh
Copy link
Author

用的example的资源文件,squeezenet_v1.1.param.bin 是param文件吧?

@nihui
Copy link
Member

nihui commented Jul 27, 2017

#24

@brightzhengh
Copy link
Author

不是一个param是squeezenet_v1.1.param.bin,一个model文件是squeezenet_v1.1.bin;难道要改名?

@brightzhengh
Copy link
Author

我用NSFileHandle方式能读到文件,且文件大小一样;在这个地方挂的原因是?
frame #4: 0x00000001035d7a98 ncnndemo`ncnn::Net::load_param(__sFILE*) + 1560

@nihui
Copy link
Member

nihui commented Jul 28, 2017

@brightzhengh
Copy link
Author

OK,确实这个问题导致,谢谢!

@dangbo
Copy link

dangbo commented Jul 29, 2017

https://github.com/dangbo/ncnn-mobile use ncnn in Android and iOS

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

3 participants