From 5c8d654ec337a4cf75545d9de1572f5016bad2f2 Mon Sep 17 00:00:00 2001 From: Kaipeng Deng Date: Tue, 4 Jun 2019 12:28:01 +0800 Subject: [PATCH] fix slim weight path (#2352) --- PaddleSlim/run.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/PaddleSlim/run.sh b/PaddleSlim/run.sh index 14b2b14a..791b42da 100644 --- a/PaddleSlim/run.sh +++ b/PaddleSlim/run.sh @@ -2,8 +2,8 @@ # download pretrain model root_url="http://paddle-imagenet-models-name.bj.bcebos.com" -MobileNetV1="MobileNetV1_pretrained.zip" -ResNet50="ResNet50_pretrained.zip" +MobileNetV1="MobileNetV1_pretrained.tar" +ResNet50="ResNet50_pretrained.tar" pretrain_dir='./pretrain' if [ ! -d ${pretrain_dir} ]; then @@ -14,12 +14,12 @@ cd ${pretrain_dir} if [ ! -f ${MobileNetV1} ]; then wget ${root_url}/${MobileNetV1} - unzip ${MobileNetV1} + tar xf ${MobileNetV1} fi if [ ! -f ${ResNet50} ]; then wget ${root_url}/${ResNet50} - unzip ${ResNet50} + tar xf ${ResNet50} fi cd - -- GitLab