Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Xiaomi
Mace
提交
c09e3109
Mace
项目概览
Xiaomi
/
Mace
通知
106
Star
40
Fork
27
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Mace
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c09e3109
编写于
7月 13, 2018
作者:
李
李寅
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'update-docs' into 'master'
Import filelock package when use it. See merge request !658
上级
ab81d04a
ac46edd4
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
18 addition
and
7 deletion
+18
-7
docs/installation/env_requirement.rst
docs/installation/env_requirement.rst
+4
-4
docs/user_guide/advanced_usage.rst
docs/user_guide/advanced_usage.rst
+12
-1
tools/converter.py
tools/converter.py
+0
-1
tools/sh_commands.py
tools/sh_commands.py
+2
-1
未找到文件。
docs/installation/env_requirement.rst
浏览文件 @
c09e3109
...
...
@@ -30,6 +30,9 @@ Required dependencies
* - sh
- pip install -I sh==1.12.14
- 1.12.14
* - Numpy
- pip install -I numpy==1.14.0
- Required by model validation
Optional dependencies
---------------------
...
...
@@ -52,15 +55,12 @@ Optional dependencies
* - Docker
- `docker installation guide <https://docs.docker.com/install/linux/docker-ce/ubuntu/#set-up-the-repository>`__
- Required by docker mode for Caffe model
* - Numpy
- pip install -I numpy==1.14.0
- Required by model validation
* - Scipy
- pip install -I scipy==1.0.0
- Required by model validation
* - FileLock
- pip install -I filelock==3.0.0
- Required by
Android run
- Required by
run on Android
.. note::
...
...
docs/user_guide/advanced_usage.rst
浏览文件 @
c09e3109
...
...
@@ -160,6 +160,17 @@ There are two common advanced use cases:
├── mobilenet-v1.a
└── mobilenet_v1.data
# model_graph_format: code
# model_data_format: code
builds
├── include
│ └── mace
│ └── public
│ ├── mace_engine_factory.h
│ └── mobilenet_v1.h
└── model
└── mobilenet-v1.a
* **3. Deployment**
* Link `libmace.a` and `${library_name}.a` to your target.
...
...
@@ -182,7 +193,7 @@ There are two common advanced use cases:
// Create Engine from compiled code
create_engine_status =
CreateMaceEngineFromCode(model_name.c_str(),
nullptr,
model_data_file, // empty string if model_data_format is code
input_names,
output_names,
device_type,
...
...
tools/converter.py
浏览文件 @
c09e3109
...
...
@@ -13,7 +13,6 @@
# limitations under the License.
import
argparse
import
filelock
import
glob
import
hashlib
import
os
...
...
tools/sh_commands.py
浏览文件 @
c09e3109
...
...
@@ -13,7 +13,6 @@
# limitations under the License.
import
falcon_cli
import
filelock
import
glob
import
logging
import
numpy
as
np
...
...
@@ -69,10 +68,12 @@ def device_lock_path(serialno):
def
device_lock
(
serialno
,
timeout
=
3600
):
import
filelock
return
filelock
.
FileLock
(
device_lock_path
(
serialno
),
timeout
=
timeout
)
def
is_device_locked
(
serialno
):
import
filelock
try
:
with
device_lock
(
serialno
,
timeout
=
0.000001
):
return
False
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录