Toybrick

rknn-toolkit & rknn-api for Toybrick

 

米小二

新手上路

积分
36
楼主
发表于 2019-10-30 14:45:50 | 显示全部楼层
你好 官方下载最新的fedora的纯linux镜像。rknn1.2.0
按照上面提示方法,pip升级1.2.1,折腾几遍了都是失败,能帮忙看看什么原因吗?
安装完系统,没有做其他配置的情况下。

[toybrick@toybrick work]$ pip3 install --user -U tensorflow==1.14.0
Collecting tensorflow==1.14.0
  Could not find a version that satisfies the requirement tensorflow==1.14.0 (from versions: 1.10.1)
No matching distribution found for tensorflow==1.14.0
[toybrick@toybrick work]$ ls /etc/pip.conf
/etc/pip.conf
[toybrick@toybrick work]$ cat /etc/pip.conf
[global]
extra-index-url = http://repo.rock-chips.com/pypi/simple
trusted-host = repo.rock-chips.com
[toybrick@toybrick work]$
[toybrick@toybrick work]$
[toybrick@toybrick work]$ cat /proc/version
Linux version 4.4.167 (kfx@inno) (gcc version 6.3.1 20170404 (Linaro GCC 6.3-2017.05) ) #78 SMP Wed Aug 21 09:15:51 CST 2019
[toybrick@toybrick work]$
回复

使用道具 举报

米小二

新手上路

积分
36
沙发
发表于 2019-10-30 15:19:34 | 显示全部楼层
直接跳过上面的一步:pip3 install --user -U tensorflow==1.14.0

执行:pip3 install --user -U rknn,会中断,不知是否能给出一些建议。

会出现以下错误情况:
  ----------------------------------------
  Failed building wheel for h5py
  Running setup.py clean for h5py
  Running setup.py bdist_wheel for Pillow ... error


  ----------------------------------------
  Failed building wheel for Pillow
  Running setup.py clean for Pillow
  Running setup.py bdist_wheel for numpy ... done


    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-hppw_6k2/h5py/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-eh73ou6d-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-hppw_6k2/h5py/
[toybrick@toybrick work]$
[toybrick@toybrick work]$


[toybrick@toybrick work]$ pip3 list |grep tensor
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
tensorboard (1.10.0)
tensorflow (1.10.1)
回复

使用道具 举报

米小二

新手上路

积分
36
板凳
发表于 2019-10-30 15:45:03 | 显示全部楼层
jefferyzhang 发表于 2019-10-30 15:39
Fedora的先参看 wiki安装:http://t.rock-chips.com/wiki.php?mod=view&id=36

基本思想就是能dnf instal ...

好的 谢谢及时的回复。

rk3399pro的fedora版本还只支持到tf 1.10,无法跟随rk1.2.1升级到rf 1.14?

回复

使用道具 举报

米小二

新手上路

积分
36
地板
发表于 2019-10-30 15:46:52 | 显示全部楼层
米小二 发表于 2019-10-30 15:45
好的 谢谢及时的回复。

rk3399pro的fedora版本还只支持到tf 1.10,无法跟随rk1.2.1升级到rf 1.14?

好的 谢谢 看到了
回复

使用道具 举报

米小二

新手上路

积分
36
5#
发表于 2019-10-30 21:46:49 | 显示全部楼层
HI jeffery.

按照安装说明,我在rk3399上已经升级到了debian,把tensorflow升级到了1.14.但是执行
升级rknn 1.2.1的时候,发现升级失败,是不是你们配置的服务器缺少rknn 1.2.1呢?
Thanks。

---------------------------
toybrick@debian10:~/work/rknn-toolkit-V1.2.1/example/caffe_upsample$ pip3 install --user -U rknn
Looking in indexes: https://pypi.org/simple, http://repo.rock-chips.com/pypi/simple
Collecting rknn
Could not install packages due to an EnvironmentError: 404 Client Error: Not Found for url: https://pypi.org/simple/rknn/


toybrick@debian10:~/work/rknn-toolkit-V1.2.1/example/caffe_upsample$ cat /etc/pip.conf
[global]
extra-index-url = http://repo.rock-chips.com/pypi/simple
trusted-host = repo.rock-chips.com

toybrick@debian10:~/work/rknn-toolkit-V1.2.1/example/caffe_upsample$ pip3 list |grep rknn
rknn-toolkit         1.2.0
回复

使用道具 举报

米小二

新手上路

积分
36
6#
发表于 2019-11-4 14:46:42 | 显示全部楼层
jefferyzhang 发表于 2019-11-4 14:17
是的,因为我们没找到py3.6版本的 tensorflow-1.14.0 for aarch64

咨询下rk3399 pro带的npu是来自芯原verisilicon吗?
另外你们有没有试过fp16模型直接在npu上计算呢?
因为我们考虑用来做产品,评估下精度损失的影响。

ps:多谢支持噢。
回复

使用道具 举报

米小二

新手上路

积分
36
7#
发表于 2019-11-4 22:18:54 | 显示全部楼层
jefferyzhang 发表于 2019-11-4 19:07
1. 来自哪里我不太懂额,我不是IC部门的。
2. fp16直接计算NPU也是支持的(不量化就行了),只是算力很低 ...

好的 感谢专业解答
回复

使用道具 举报

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

本版积分规则

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


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