Skip to content

Commit 2459425

Browse files
feat(project): release 0.1.0beta2 (#30)
* feat(project): release 0.1.0 beta2 Co-authored-by: MegEngine <[email protected]>
1 parent 4d6ea01 commit 2459425

File tree

149 files changed

+40310
-722
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+40310
-722
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ pyo3
1919
docs/_build
2020
*.dot
2121
.clippy.toml
22+
run_with_plugins_inner

Cargo.lock

+97-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
members = [
33
"flow-rs",
44
"flow-derive",
5-
"flow-plugins"
5+
"flow-plugins",
6+
"flow-debugger",
7+
"flow-message"
68
]
79

810
[profile.dev]

README.md

+9-12
Original file line numberDiff line numberDiff line change
@@ -23,27 +23,24 @@ MegFlow 提供快速视觉应用落地流程,最快 15 分钟搭建起视频
2323
* how to use
2424
* [tutorial01: image classification service](docs/how-to-add-my-service/01-single-classification-model.zh.md)
2525
* [tutorial02: detect and classify on video stream](docs/how-to-add-my-service/02-single-det-classify.zh.md)
26+
* [tutorial03: batching and pipeline test](docs/how-to-add-my-service/03-batching-and-pipeline-test.zh.md)
2627
* [how to debug](docs/how-to-debug.zh.md)
2728
* [how to contribute](docs/how-to-contribute.zh.md)
2829
* [FAQ](docs/FAQ.zh.md)
2930

30-
## Current Support List
31+
## Current Support Matrix
3132

32-
| 系统环境 | 支持情况 |
33-
| ---------------------- | -------- |
34-
| Windows 10 wsl2 | ✔️ |
35-
| Windows 10 docker | ✔️ |
36-
| x86 Ubuntu16.04 有 GPU | ✔️ |
37-
| x86 Ubuntu18.04 无 GPU | ✔️ |
38-
| x86 macos | ✔️ |
39-
| ARM | ✔️ |
33+
| 系统环境 | win10 docker/wsl2 | ubuntu | centOS | macos |
34+
| ----------- | ------------------------- | ---------- | --------- | ----- |
35+
| x86 | ✔️ | ✔️ | ✔️ | ✔️ |
36+
| ARMv8 | - | ✔️ | ✔️ | - |
4037

4138
| Python 版本 | 支持情况 |
4239
| ----------- | -------- |
4340
| 3.6 | ✔️ |
4441
| 3.7 | ✔️ |
4542
| 3.8 | ✔️ |
46-
| 3.9 | / |
43+
| 3.9 | ✔️ |
4744

4845
## Built-in Applications
4946
* 猫猫围栏
@@ -59,12 +56,12 @@ MegFlow 提供快速视觉应用落地流程,最快 15 分钟搭建起视频
5956
- 支持 demux/reorder/transform 等通用函数式组件
6057
- Python 插件内置有栈协程,不依赖 asyncio
6158
- 基础测试工具,支持插件沙盒,用于单测插件
59+
- 基础调试工具,支持建图实时预览/qps profile
6260

6361
## Coming Soon
6462
- 进程级别的节点、子图支持
6563
- 插件自动化测试部署
66-
- 调试工具,建图实时预览 profile 工具
67-
- 性能监控,inspect 工具
64+
- 性能监控,inspect 等工具
6865
- 更多内置应用和组件
6966

7067
## Contact Us

ci/build_doc.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash -ex
2+
3+
rm -rf public
4+
5+
: ${TARGET_DIR:=/target/${CI_COMMIT_SHA}}
6+
7+
cargo doc --no-deps
8+
9+
echo '<meta http-equiv=refresh content=0;url=flow_rs/index.html>' > ${TARGET_DIR}/doc/index.html
10+
11+
mv ${TARGET_DIR}/doc public

ci/run_test.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash -ex
2+
3+
cd flow-python
4+
5+
python3 setup.py install
6+
7+
cd examples
8+
9+
cargo run --example run_with_plugins -- -p logical_test

docs/FAQ.zh.md

-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
# FAQ
22

3-
Q:`error while loading shared libraries: libpython3.8.xxx`
4-
5-
A:如果使用 conda 只需要
6-
```bash
7-
$ export LD_LIBRARY_PATH=`conda info --base`/pkgs/python-3.8.11-xxx/lib:${LD_LIBRARY_PATH}
8-
```
9-
___
103
Q:`run_with_plugins -p logical_test ` 无法运行怎么办?
114

125
A1:如果报错 `message: "No such file or directory" }'`,确认是否`cd flow-python/examples`

docs/how-to-add-my-service/01-single-classification-model.zh.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ connections = [
9999
* `classify` 结点的参数。最重要的是 `ty="Classify"`指明了类名,MegFlow 将在当前目录搜索`Classify`类。path/device/device_id 分别是模型路径/用 CPU 推理/用哪个核,属于用户自定义配置
100100
* 服务类型。这里想运行图片服务 `ty = "ImageServer"`,如果想运行视频解析服务改 `ty = "VideoServer"`;图片服务默认返回图片,想返回 string 需要配置 `response = "json"`
101101

102-
[完整的计算图 config 定义](appendix-A-graph-definition.md)
102+
[完整的计算图 config 定义](appendix-A-graph-definition.zh.md)
103103

104104
## 实现配置中的 node
105105

docs/how-to-add-my-service/02-single-det-classify.zh.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ $ cat ${MegFlow}/flow-python/examples/simple_det_classify/dump.py
2525
# div
2626
_div = mge.Tensor(np.array([57.375, 57.120, 58.395], dtype=np.float32))
2727
out = F.div(out, _div)
28-
# dimshuffile
28+
# dimshuffle
2929
out = F.transpose(out, (0,3,1,2))
3030

3131
outputs = model(out)

0 commit comments

Comments
 (0)