Skip to content

Commit

Permalink
Add nest opr (#55)
Browse files Browse the repository at this point in the history
* feat(flow-rs): add opr

* improvement(flow-plugin): use ffmpeg rev

* fix(workflows): update build env

Co-authored-by: MegEngine <megengine@megvii.com>
  • Loading branch information
tpoisonooo and megvii-mge authored Jan 9, 2022
1 parent be14073 commit c8a46d3
Show file tree
Hide file tree
Showing 77 changed files with 1,413 additions and 1,488 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/macos-x86-cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ jobs:
with:
python-version: '3.8'
architecture: 'x64'
- run: cd $HOME && git clone https://github.com/tpoisonooo/rust-ffmpeg && cd rust-ffmpeg && git checkout dylib && cargo build
- run: cat ${HOME}/megflow_ffmpeg_dynamic_link.sh
- run: ls -alh `cat ${HOME}/megflow_ffmpeg_dynamic_link.sh | head -n 1`/lib/
- run: cd $HOME && git clone https://github.com/tpoisonooo/rust-ffmpeg && cd rust-ffmpeg && cargo build --release
- run: cat /tmp/megflow_ffmpeg_dynamic_link.sh
- run: ls -alh `cat /tmp/megflow_ffmpeg_dynamic_link.sh | head -n 1`/lib/
- run: echo 'export FFMPEG_DIR=`cat ${HOME}/megflow_ffmpeg_dynamic_link.sh | head -n 1`' >> $HOME/myenv
- run: echo 'export CARGO_FEATURE_PREBUILD="PREBUILD"' >> $HOME/myenv
- run: echo 'export CARGO_FEATURE_DYNAMIC="DYNAMIC"' >> $HOME/myenv
- run: echo 'export LD_LIBRARY_PATH=${FFMPEG_DIR}/lib:${LD_LIBRARY_PATH}' >> $HOME/myenv
- run: echo 'export PKG_CONFIG_PATH=${FFMPEG_DIR}/lib/pkgconfig:${PKG_CONFIG_PATH}' >> $HOME/myenv
- run: chmod +x $HOME/myenv
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/ubuntu-x86-cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ jobs:
- run: sudo apt install -y libssl-dev
- run: sudo apt update && sudo apt-get install -y pkg-config --fix-missing
- run: sudo apt install -y libv4l-dev liblzma-dev
- run: cd $HOME && git clone https://github.com/tpoisonooo/rust-ffmpeg && cd rust-ffmpeg && git checkout dylib && cargo build
- run: echo 'export FFMPEG_DIR=`cat ${HOME}/megflow_ffmpeg_dynamic_link.sh | head -n 1`' >> $HOME/myenv
- run: cd $HOME && git clone https://github.com/tpoisonooo/rust-ffmpeg && cd rust-ffmpeg && cargo build --release
- run: echo 'export FFMPEG_DIR=`cat /tmp/megflow_ffmpeg_dynamic_link.sh | head -n 1`' >> $HOME/myenv
- run: echo 'export CARGO_FEATURE_PREBUILD="PREBUILD"' >> $HOME/myenv
- run: echo 'export CARGO_FEATURE_DYNAMIC="DYNAMIC"' >> $HOME/myenv
- run: echo 'export LD_LIBRARY_PATH=${FFMPEG_DIR}/lib:${LD_LIBRARY_PATH}' >> $HOME/myenv
- run: echo 'export PKG_CONFIG_PATH=${FFMPEG_DIR}/lib/pkgconfig:${PKG_CONFIG_PATH}' >> $HOME/myenv
- run: chmod +x $HOME/myenv
Expand Down
50 changes: 50 additions & 0 deletions ACKNOWLEDGEMENTS
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
MegFlow application refers:
* [MegEngine](https://github.com/megengine/megengine)
* [Models](https://github.com/megengine/models)
* [onnx](https://github.com/onnx/onnx)
* [YOLOX](https://github.com/Megvii-BaseDetection/YOLOX)
* [AlignedReID](https://github.com/huanghoujing/AlignedReID-Re-Production-Pytorch)
* [MEMD](https://github.com/megvii-research/MEMD)

MegFlow visualization refers:
* [flv.js](http://bilibili.github.io/flv.js/demo/)

MegFlow Python:
* [OpenCV](https://github.com/opencv/opencv)
* [numpy](https://github.com/numpy/numpy)
* [loguru](https://pypi.org/project/loguru/)
* [scipy](https://github.com/scipy/scipy)
* [redis](https://github.com/redis/redis)

MegFlow Rust refers:
* [anyhow](https://github.com/dtolnay/anyhow)
* [async-std](https://github.com/async-rs/async-std)
* [async-channel](https://github.com/smol-rs/async-channel)
* [clap](https://github.com/clap-rs/clap)
* [concurrent-queue](https://github.com/stjepang/concurrent-queue)
* [ctrlc](https://github.com/Detegr/rust-ctrlc.git)
* [ctor](https://github.com/mmastrac/rust-ctor)
* [dyn-clone](https://github.com/dtolnay/dyn-clone)
* [event-listener](https://github.com/stjepang/event-listener)
* [ffmpeg-next](https://github.com/zmwangx/rust-ffmpeg)
* [hyper](https://github.com/bluss/hyper)
* [headers](https://github.com/bluss/headers)
* [image](https://github.com/image-rs/image)
* [indexmap](https://github.com/bluss/indexmap)
* [lazy-static](https://github.com/rust-lang-nursery/lazy-static.rs)
* [mime](https://github.com/hyperium/mime)
* [numpy](https://github.com/rust-numpy/rust-numpy)
* [oneshot](https://github.com/faern/oneshot)
* [proc-macro2](https://github.com/dtolnay/proc-macro2)
* [pretty-env-logger](https://github.com/seanmonstar/pretty-env-logger)
* [pyo3](https://github.com/pyo3/pyo3)
* [quote](https://github.com/dtolnay/quote)
* [rand](https://github.com/rust-random/rand)
* [rweb](https://github.com/kdy1/rweb)
* [serde](https://github.com/serde-rs/serde)
* [serde_json](https://github.com/serde-rs/json)
* [stackful](https://github.com/nbdd0121/stackful)
* [syn](https://github.com/dtolnay/syn)
* [toml](https://github.com/alexcrichton/toml-rs)
* [urlencoding](https://github.com/kornelski/urlencoding)
* [warp](https://github.com/seanmonstar/warp)
Loading

0 comments on commit c8a46d3

Please sign in to comment.