From be4de47940ca6f9c3a9d4873587dfa592b2b2dc6 Mon Sep 17 00:00:00 2001 From: ClawSeven Date: Mon, 27 May 2024 16:52:07 +0800 Subject: [PATCH] [Demos] Fix broken mnist source in paddlepaddle demo --- demos/paddlepaddle/install_python_with_conda.sh | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/demos/paddlepaddle/install_python_with_conda.sh b/demos/paddlepaddle/install_python_with_conda.sh index 58ec82fe..c630f477 100755 --- a/demos/paddlepaddle/install_python_with_conda.sh +++ b/demos/paddlepaddle/install_python_with_conda.sh @@ -21,19 +21,7 @@ sed -i "186 i \ elif sysstr == 'occlum':\n return True" $CORE_PY sed -ie "37,64d" $IMAGE_PY sed -i "37 i \try:\n import cv2\nexcept ImportError:\n cv2 = None" $IMAGE_PY + # Download the dataset -DATASET=$script_dir/mnist +git clone https://github.com/fgnt/mnist.git -[ -d $DATASET ] && exit 0 - -TRAIN_IMAGE=train-images-idx3-ubyte.gz -TRAIN_LABEL=train-labels-idx1-ubyte.gz -TEST_IMAGE=t10k-images-idx3-ubyte.gz -TEST_LABEL=t10k-labels-idx1-ubyte.gz -URL=http://yann.lecun.com/exdb/mnist - -mkdir $DATASET -wget $URL/$TRAIN_IMAGE -P $DATASET -wget $URL/$TRAIN_LABEL -P $DATASET -wget $URL/$TEST_IMAGE -P $DATASET -wget $URL/$TEST_LABEL -P $DATASET