English | 中文
MegEngine 是一个快速、可拓展、易于使用且支持自动求导的深度学习框架。
注意: MegEngine 现在支持在 Linux-64bit/Windows-64bit/macos-10.14及其以上 (MacOS只支持cpu) 等平台上安装 Python 包,支持Python3.5 到 Python3.8。对于 Windows 10 用户,可以通过安装 Windows Subsystem for Linux (WSL) 进行体验,同时我们也原生支持Windows。MegEngine 也支持在很多其它平台上进行推理运算。
通过 pip 安装的命令如下:
python3 -m pip install megengine -f https://megengine.org.cn/whl/mge.html
大多数编译 MegEngine 的依赖位于 third_party 目录,可以通过以下命令自动安装:
./third_party/prepare.sh
./third_party/install-mkl.sh
但是有一些依赖需要手动安装:
MegEngine使用CMake作为构建工具。我们提供以下脚本来帮助编译:
host_build.sh 用于本地编译。
参数 -h 可用于查询脚本支持的参数:
scripts/cmake-build/host_build.sh -h
cross_build_android_arm_inference.sh 用于ARM-安卓交叉编译。
参数 -h 可用于查询脚本支持的参数:
scripts/cmake-build/cross_build_android_arm_inference.sh -h
cross_build_linux_arm_inference.sh 用于ARM-Linux交叉编译。
参数 -h 可用于查询脚本支持的参数:
scripts/cmake-build/cross_build_linux_arm_inference.sh -h
cross_build_ios_arm_inference.sh 用于iOS交叉编译。
参数 -h 可用于查询脚本支持的参数:
scripts/cmake-build/cross_build_ios_arm_inference.sh
更多细节请参考 BUILD_README.md
我们相信我们能够搭建一个开放友善的开源社区环境,用人工智能造福人类。
MegEngine 使用 Apache License, Version 2.0
Copyright (c) 2014-2021 Megvii Inc. All rights reserved.