Toybrick

楼主: jefferyzhang

[Latest Version] [1.3.2] rknn-toolkit & rknn-api for Toybrick

tomyhome

中级会员

积分
258
发表于 2020-3-3 11:50:09 | 显示全部楼层
jefferyzhang 发表于 2020-3-3 11:37
直接访问是不行的,需要通过pip3安装访问,我让负责人去确认下,需要点时间,你明天再试试
...

root@debian10:/etc# dpkg -s rknn-toolkit
dpkg-query: package 'rknn-toolkit' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files.
root@debian10:/etc# dpkg -s rknn-rk3399pro
Package: rknn-rk3399pro
Status: install ok installed
Priority: optional
Section: utils
Installed-Size: 23118
Maintainer: Addy Ke <addy.ke@rock-chips.com>
Architecture: arm64
Version: 1.3.0-1
Depends: libc6 (>= 2.17), libgcc1 (>= 1:4.2), libstdc++6 (>= 6)
Description: Rockchip rknn toolkits for rk3399pro
root@debian10:/etc# pip3 -V
pip 20.0.2 from /usr/local/lib/python3.7/dist-packages/pip (python 3.7)
root@debian10:/etc# pip3 install rknn
Looking in indexes: https://pypi.org/simple, http://mirrors.aliyun.com/pypi/simple/, http://repo.rock-chips.com/pypi/simple
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f83673d68>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/rknn/
^CERROR: Operation cancelled by user
root@debian10:/etc# pip3 install -U rknn
Looking in indexes: https://pypi.org/simple, http://mirrors.aliyun.com/pypi/simple/, http://repo.rock-chips.com/pypi/simple
ERROR: Could not find a version that satisfies the requirement rknn (from versions: none)
ERROR: No matching distribution found for rknn
root@debian10:/etc#
回复

使用道具 举报

tomyhome

中级会员

积分
258
发表于 2020-3-3 14:16:54 | 显示全部楼层
终于可以访问那个网了,可以下载了,早上一直访问不了
回复

使用道具 举报

tomyhome

中级会员

积分
258
发表于 2020-3-3 16:33:50 | 显示全部楼层
jefferyzhang 发表于 2020-3-3 10:05
pip3 list | grep rknn-toolkit
看下你的版本,如果用的是我们pypi源,你肯定已经是1.3了 ...

你好,下午可以打开RK的源了,不过还是装不了rknn,在debian10系统下,安装rknn,可以下载,不过其他依赖项会安装失败!!
回复

使用道具 举报

jefferyzhang

超级版主

积分
5388
 楼主| 发表于 2020-3-3 17:01:45 | 显示全部楼层
tomyhome 发表于 2020-3-3 16:33
你好,下午可以打开RK的源了,不过还是装不了rknn,在debian10系统下,安装rknn,可以下载,不过其他依赖 ...

失败log发出来
回复

使用道具 举报

kexuejia

新手上路

积分
42
发表于 2020-3-3 17:03:22 | 显示全部楼层
jefferyzhang 发表于 2020-3-2 20:48
rknn-rk3399pro is already the newest version (1.3.0-1).
有什么问题么?


rknn-api是已经更新到1.3.0了,但是rknn-toolkit 还是1.2.1版本
【 pip3 install --user -U rknn】依旧会提示错误


pip3 list | grep rknn
rknn-toolkit         1.2.1   
回复

使用道具 举报

tomyhome

中级会员

积分
258
发表于 2020-3-3 17:17:57 | 显示全部楼层
本帖最后由 tomyhome 于 2020-3-3 17:20 编辑

你好,是onnx安装错误,因为没有1.4.1版本当然,scipy也是没有对应版本
root@debian10:~# pip3 install -U rknn
Looking in indexes: https://pypi.org/simple, http://repo.rock-chips.com/pypi/simple
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', OSError(0, 'Error'))': /simple/rknn/
Collecting rknn
  Downloading http://repo.rock-chips.com/pypi/ ... m-linux_aarch64.whl (58.6 MB)
     |████████████████████████████████| 58.6 MB 1.2 MB/s
Collecting flatbuffers==1.10
  Downloading flatbuffers-1.10-py2.py3-none-any.whl (15 kB)
Collecting psutil==5.6.2
  Downloading psutil-5.6.2.tar.gz (432 kB)
     |████████████████████████████████| 432 kB 14 kB/s
Collecting protobuf==3.6.1
  Downloading protobuf-3.6.1-py2.py3-none-any.whl (390 kB)
     |████████████████████████████████| 390 kB 4.7 kB/s
Collecting onnx==1.4.1
  Downloading onnx-1.4.1.tar.gz (2.9 MB)
     |███████▎                        | 664 kB 6.9 kB/s eta 0:05:30
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fab4507f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/requests/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7faaf1c198>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/requests/
Collecting requests==2.22.0
  Using cached requests-2.22.0-py2.py3-none-any.whl (57 kB)
Collecting scipy==1.3.0
  Using cached scipy-1.3.0.tar.gz (23.6 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 /usr/local/lib/python3.7/dist-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpxbfkyxg7
         cwd: /tmp/pip-install-a0opmqov/scipy
    Complete output (139 lines):
    lapack_opt_info:
    lapack_mkl_info:
    customize UnixCCompiler
      libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/aarch64-linux-gnu']
      NOT AVAILABLE
   
    openblas_lapack_info:
    customize UnixCCompiler
    customize UnixCCompiler
      libraries openblas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/aarch64-linux-gnu']
      NOT AVAILABLE
   
    openblas_clapack_info:
    customize UnixCCompiler
    customize UnixCCompiler
      libraries openblas,lapack not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/aarch64-linux-gnu']
      NOT AVAILABLE
   
    atlas_3_10_threads_info:
    Setting PTATLAS=ATLAS
    customize UnixCCompiler
      libraries tatlas,tatlas not found in /usr/local/lib
    customize UnixCCompiler
      libraries lapack_atlas not found in /usr/local/lib
    customize UnixCCompiler
      libraries tatlas,tatlas not found in /usr/lib
    customize UnixCCompiler
      libraries lapack_atlas not found in /usr/lib
    customize UnixCCompiler
      libraries tatlas,tatlas not found in /usr/lib/aarch64-linux-gnu
    customize UnixCCompiler
      libraries lapack_atlas not found in /usr/lib/aarch64-linux-gnu
    <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
      NOT AVAILABLE
   
    atlas_3_10_info:
    customize UnixCCompiler
      libraries satlas,satlas not found in /usr/local/lib
    customize UnixCCompiler
      libraries lapack_atlas not found in /usr/local/lib
    customize UnixCCompiler
      libraries satlas,satlas not found in /usr/lib
    customize UnixCCompiler
      libraries lapack_atlas not found in /usr/lib
    customize UnixCCompiler
      libraries satlas,satlas not found in /usr/lib/aarch64-linux-gnu
    customize UnixCCompiler
      libraries lapack_atlas not found in /usr/lib/aarch64-linux-gnu
    <class 'numpy.distutils.system_info.atlas_3_10_info'>
      NOT AVAILABLE
   
    atlas_threads_info:
    Setting PTATLAS=ATLAS
    customize UnixCCompiler
      libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
    customize UnixCCompiler
      libraries lapack_atlas not found in /usr/local/lib
    customize UnixCCompiler
      libraries ptf77blas,ptcblas,atlas not found in /usr/lib
    customize UnixCCompiler
      libraries lapack_atlas not found in /usr/lib
    customize UnixCCompiler
      libraries ptf77blas,ptcblas,atlas not found in /usr/lib/aarch64-linux-gnu
    customize UnixCCompiler
      libraries lapack_atlas not found in /usr/lib/aarch64-linux-gnu
    <class 'numpy.distutils.system_info.atlas_threads_info'>
      NOT AVAILABLE
   
    atlas_info:
    customize UnixCCompiler
      libraries f77blas,cblas,atlas not found in /usr/local/lib
    customize UnixCCompiler
      libraries lapack_atlas not found in /usr/local/lib
    customize UnixCCompiler
      libraries f77blas,cblas,atlas not found in /usr/lib
    customize UnixCCompiler
      libraries lapack_atlas not found in /usr/lib
    customize UnixCCompiler
      libraries f77blas,cblas,atlas not found in /usr/lib/aarch64-linux-gnu
    customize UnixCCompiler
      libraries lapack_atlas not found in /usr/lib/aarch64-linux-gnu
    <class 'numpy.distutils.system_info.atlas_info'>
      NOT AVAILABLE
   
    lapack_info:
    customize UnixCCompiler
      libraries lapack not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/aarch64-linux-gnu']
      NOT AVAILABLE
   
    lapack_src_info:
      NOT AVAILABLE
   
      NOT AVAILABLE
   
    setup.py:111: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
      import imp
    setup.py:388: UserWarning: Unrecognized setuptools command ('dist_info --egg-base /tmp/pip-modern-metadata-le07gp8_'), proceeding with generating Cython sources and expanding templates
      ' '.join(sys.argv[1:])))
    Running from scipy source directory.
    /tmp/pip-build-env-dwm9tdfg/overlay/lib/python3.7/site-packages/numpy/distutils/system_info.py:624: UserWarning:
        Atlas (http://math-atlas.sourceforge.net/) libraries not found.
        Directories to search for the libraries can be specified in the
        numpy/distutils/site.cfg file (section [atlas]) or by setting
        the ATLAS environment variable.
      self.calc_info()
    /tmp/pip-build-env-dwm9tdfg/overlay/lib/python3.7/site-packages/numpy/distutils/system_info.py:624: UserWarning:
        Lapack (http://www.netlib.org/lapack/) libraries not found.
        Directories to search for the libraries can be specified in the
        numpy/distutils/site.cfg file (section [lapack]) or by setting
        the LAPACK environment variable.
      self.calc_info()
    /tmp/pip-build-env-dwm9tdfg/overlay/lib/python3.7/site-packages/numpy/distutils/system_info.py:624: UserWarning:
        Lapack (http://www.netlib.org/lapack/) sources not found.
        Directories to search for the sources can be specified in the
        numpy/distutils/site.cfg file (section [lapack_src]) or by setting
        the LAPACK_SRC environment variable.
      self.calc_info()
    Traceback (most recent call last):
      File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/pep517/_in_process.py", line 257, in <module>
        main()
      File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/pep517/_in_process.py", line 240, in main
        json_out['return_val'] = hook(**hook_input['kwargs'])
      File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/pep517/_in_process.py", line 110, in prepare_metadata_for_build_wheel
        return hook(metadata_directory, config_settings)
      File "/tmp/pip-build-env-dwm9tdfg/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 158, in prepare_metadata_for_build_wheel
        self.run_setup()
      File "/tmp/pip-build-env-dwm9tdfg/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 250, in run_setup
        self).run_setup(setup_script=setup_script)
      File "/tmp/pip-build-env-dwm9tdfg/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 143, in run_setup
        exec(compile(code, __file__, 'exec'), locals())
      File "setup.py", line 505, in <module>
        setup_package()
      File "setup.py", line 501, in setup_package
        setup(**metadata)
      File "/tmp/pip-build-env-dwm9tdfg/overlay/lib/python3.7/site-packages/numpy/distutils/core.py", line 135, in setup
        config = configuration()
      File "setup.py", line 403, in configuration
        raise NotFoundError(msg)
    numpy.distutils.system_info.NotFoundError: No lapack/blas resources found.
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 /usr/local/lib/python3.7/dist-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpxbfkyxg7 Check the logs for full command output.

回复

使用道具 举报

jefferyzhang

超级版主

积分
5388
 楼主| 发表于 2020-3-3 17:49:56 | 显示全部楼层
tomyhome 发表于 2020-3-3 17:17
你好,是onnx安装错误,因为没有1.4.1版本当然,scipy也是没有对应版本
root@debian10:~# pip3 install -U ...

看1.3.0的发布贴,手动安装完再装。帖子里都写着。
回复

使用道具 举报

tomyhome

中级会员

积分
258
发表于 2020-3-3 17:56:21 | 显示全部楼层
jefferyzhang 发表于 2020-3-3 17:49
看1.3.0的发布贴,手动安装完再装。帖子里都写着。

你好,还请明示,这贴不是发布贴嘛?
回复

使用道具 举报

kexuejia

新手上路

积分
42
发表于 2020-3-3 21:27:42 | 显示全部楼层
lijie 发表于 2020-3-2 23:17
问题是,rknn-api是1.3.0但是rknn-toolkit是1.2。

正解,兄弟,你后面解决了么?
回复

使用道具 举报

kexuejia

新手上路

积分
42
发表于 2020-3-3 22:48:02 | 显示全部楼层
执行pip3 install --user -U rknn语句后,需要下载
Collecting scipy==1.3.0
  Downloading https://files.pythonhosted.org/p ... /scipy-1.3.0.tar.gz (23.6MB)
而安装 scipy==1.3.0过程中报错如下:
ERROR: Command errored out with exit status 2: /usr/bin/python3 /usr/local/lib/python3.7/dist-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-_j1c4izy/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple --extra-index-url http://repo.rock-chips.com/pypi/simple --trusted-host repo.rock-chips.com -- wheel setuptools 'Cython>=0.29.2' 'numpy==1.13.3; python_version=='"'"'3.5'"'"'' 'numpy==1.13.3; python_version=='"'"'3.6'"'"'' 'numpy==1.14.5; python_version>='"'"'3.7'"'"'' Check the logs for full command output.

如安装http://repo.rock-chips.com/pypi/simple/scipy/页面提供的1.12版本
sudo pip3 install scipy-1.2.0-cp36-cp36m-linux_aarch64.whl ,则会有以下错误:
ERROR: scipy-1.2.0-cp36-cp36m-linux_aarch64.whl is not a supported wheel on this platform.

请问如何解决?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表