Skip to content

Commit

Permalink
Merge pull request #273 from SunshineList/main
Browse files Browse the repository at this point in the history
Solve Dockfile run error
  • Loading branch information
hjessmith authored Mar 26, 2024
2 parents 289215e + be5b632 commit 9be969e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions torchserve/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,20 @@ RUN apt-get update && \

# install python dependencies
RUN pip install openmim
RUN pip install torch
RUN pip install torch==2.0.0
RUN mim install mmcv-full==1.7.0
RUN pip install mmdet==2.27.0
RUN pip install torchserve

# bugfix for xtcocoapi, an mmpose dependency
RUN git clone https://github.com/hjessmith/xtcocoapi-bugfix.git
WORKDIR xtcocoapi-bugfix
RUN git clone https://github.com/jin-s13/xtcocoapi.git
WORKDIR xtcocoapi
RUN pip install -r requirements.txt
RUN python setup.py install
WORKDIR /
RUN pip install mmpose==0.29.0
RUN pip install torchvision==0.15.1 # solve torch version problem


# prep torchserve
RUN mkdir -p /home/torchserve/model-store
Expand Down

0 comments on commit 9be969e

Please sign in to comment.