Spaces:
Building
Building
Update torchserve_setup.sh
Browse files- torchserve_setup.sh +3 -4
torchserve_setup.sh
CHANGED
@@ -29,10 +29,9 @@ pip install torchserve
|
|
29 |
git clone https://github.com/jin-s13/xtcocoapi.git
|
30 |
cd xtcocoapi
|
31 |
pip install -r requirements.txt
|
32 |
-
|
33 |
cd /
|
34 |
|
35 |
-
# Additional dependencies
|
36 |
pip install mmpose==0.29.0
|
37 |
pip install torchvision==0.15.1 # solve torch version problem
|
38 |
pip install numpy==1.24.4 # solve numpy version problem
|
@@ -42,5 +41,5 @@ mkdir -p /home/torchserve/model-store
|
|
42 |
wget https://github.com/facebookresearch/AnimatedDrawings/releases/download/v0.0.1/drawn_humanoid_detector.mar -P /home/torchserve/model-store/
|
43 |
wget https://github.com/facebookresearch/AnimatedDrawings/releases/download/v0.0.1/drawn_humanoid_pose_estimator.mar -P /home/torchserve/model-store/
|
44 |
|
45 |
-
#
|
46 |
-
cp torchserve/config.properties /home/torchserve/config.properties
|
|
|
29 |
git clone https://github.com/jin-s13/xtcocoapi.git
|
30 |
cd xtcocoapi
|
31 |
pip install -r requirements.txt
|
32 |
+
python setup.py install
|
33 |
cd /
|
34 |
|
|
|
35 |
pip install mmpose==0.29.0
|
36 |
pip install torchvision==0.15.1 # solve torch version problem
|
37 |
pip install numpy==1.24.4 # solve numpy version problem
|
|
|
41 |
wget https://github.com/facebookresearch/AnimatedDrawings/releases/download/v0.0.1/drawn_humanoid_detector.mar -P /home/torchserve/model-store/
|
42 |
wget https://github.com/facebookresearch/AnimatedDrawings/releases/download/v0.0.1/drawn_humanoid_pose_estimator.mar -P /home/torchserve/model-store/
|
43 |
|
44 |
+
# Use absolute path to config.properties
|
45 |
+
cp /app/torchserve/config.properties /home/torchserve/config.properties
|