Skip to content

Commit

Permalink
onnx export
Browse files Browse the repository at this point in the history
  • Loading branch information
xxaier committed Jul 30, 2023
1 parent 427cdf2 commit eb58f2b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions onnx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,20 @@ RUN git clone --depth=1 $GIT

ADD os/ /

RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ PyYAML scikit-learn Pillow

RUN cd FlagAI &&\
sed -i '/PyYAML/d' setup.py &&\
sed -i '/scikit-learn/d' setup.py &&\
sed -i '/Pillow/d' setup.py &&\
rm setup.cfg &&\
python setup.py install

RUN pip uninstall -y google-auth

RUN \
pip uninstall -y protobuf &&\
pip install -i https://mirrors.aliyun.com/pypi/simple/ protobuf

RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ onnx
ENV PYTHONPATH /app

0 comments on commit eb58f2b

Please sign in to comment.