alibaba / MNN

MNN is a blazing fast, lightweight deep learning framework, battle-tested by business-critical use cases in Alibaba
http://www.mnn.zone/
8.79k stars 1.67k forks source link

Install python package with MNN #437

Closed buiduchanh closed 5 years ago

buiduchanh commented 5 years ago

I install this git follow the instruction https://www.yuque.com/mnn/en/build_linux It success and I got this file libMNN.so but I can not import the MNN from python. Anyone can help me ?

Naville commented 5 years ago

That's the C++ core library not the python binding

buiduchanh commented 5 years ago

That's the C++ core library not the python binding

@Naville https://github.com/alibaba/MNN/blob/master/pymnn/examples/MNNEngineDemo/mobilenet_demo.py This demo using MNN as python lib. Could you check it ?

stanleywang8888 commented 5 years ago

https://www.yuque.com/mnn/en/usage_in_python

Please see the above link for doc. Generally speaking, you need to install Python MNN package. command line like pip install -U MNN

buiduchanh commented 5 years ago

@stanleywang8888 I know. I'm working on raspberrypi so I can not install It from pip. Do you have any suggestion ?

stanleywang8888 commented 5 years ago

Sorry, Python package depends on pip, either you can try to solve the pip issue, or you can try the c++ interface.

buiduchanh commented 5 years ago

Sorry, Python package depends on pip, either you can try to solve the pip issue, or you can try the c++ interface.

I can build it con raspberry pi. Thanks for support :D

abhishek1390 commented 5 years ago

Hi @buiduchanh , We are using nvidia jetson nano, We are able to build for c++ but unable get the python bindings. We have given the pip3 command and got the error as below

nvdia@nvdia-desktop:~$ sudo pip3 install -U MNN ERROR: Could not find a version that satisfies the requirement MNN (from versions: none) ERROR: No matching distribution found for MNN

Can you please share the steps you followed for raspberry pi so that we can try on our board. Any help is much appreciated. Thanks and regards

chakri-muthyala commented 5 years ago

@abhishek1390 Can you try pip package from my repo ?

congvm-cs commented 4 years ago

hi @buiduchanh, can you share you way to compile this lib on raspbian? thanks in advance!

buiduchanh commented 3 years ago

Sorry all. At first, we need understand when we build pip package It will build 2 function :

Dliang110 commented 3 years ago

i see ,many thanks------------------ 原始邮件 ------------------ 发件人: "Bùi&nbsp;Đức&nbsp;Hạnh"<notifications@github.com> 发送时间: 2020年12月17日(星期四) 中午11:16 收件人: "alibaba/MNN"<MNN@noreply.github.com>; 抄送: "Daliang"<oktai@qq.com>;"Comment"<comment@noreply.github.com>; 主题: Re: [alibaba/MNN] Install python package with MNN (#437)

Co2Link commented 3 years ago

@buiduchanh can you tell me which mnn version you used ?