1 Star 0 Fork 0

ncnnnnn/TNN

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 1.18 KB
一键复制 编辑 原始数据 按行查看 历史
stephehuang 提交于 2020-09-16 22:41 . pull tflite2tnn tools (#378)
FROM ubuntu:18.04
ENV LANG C.UTF-8
ENV LANGUAGE C.UTF-8
ENV LC_ALL C.UTF-8
RUN sed -i s@/archive.ubuntu.com/@/mirrors.tencent.com/@g /etc/apt/sources.list
RUN sed -i s@/security.ubuntu.com/@/mirrors.tencent.com/@g /etc/apt/sources.list
RUN apt-get clean && apt-get update -y && apt-get -y install --no-install-recommends apt-utils
RUN apt-get -y install git cmake make
RUN apt-get -y install gcc g++
RUN apt-get -y install protobuf-compiler libprotobuf-dev
RUN apt-get -y install python3 python3-dev python3-pip
#RUN mkdir -p /root/.pip && echo "[global]\n index-url = https://mirrors.tencent.com/pypi/simple/" >> /root/.pip/pip.conf
RUN python3 -m pip install --upgrade pip && pip3 install -U onnx==1.6.0 onnxruntime numpy onnx-simplifier setuptools protobuf
RUN pip3 install tensorflow==1.15.0 tf2onnx
ENV TNN_ROOT=/opt/TNN
ENV TOOLS_ROOT=$TNN_ROOT/tools
# COPY ./onnx2tnn $TOOLS_ROOT/onnx2tnn
# COPY ./caffe2onnx $TOOLS_ROOT/caffe2onnx
# COPY ./convert2tnn $TOOLS_ROOT/convert2tnn
COPY . $TNN_ROOT/
#RUN cd $TOOLS_ROOT/onnx2tnn/onnx-converter && ./build.sh
RUN cd $TOOLS_ROOT/convert2tnn && bash ./build.sh
RUN python3 $TOOLS_ROOT/convert2tnn/converter.py -h
WORKDIR $TOOLS_ROOT/convert2tnn/
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ncnnnnn/TNN.git
git@gitee.com:ncnnnnn/TNN.git
ncnnnnn
TNN
TNN
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385