Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

download_dataset.sh 802 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  1. DATASET_NAME=$1
  2. if [[ $DATASET_NAME != "day-night" && $DATASET_NAME != "leather-fabric" && $DATASET_NAME != "metal-stone" && $DATASET_NAME != "oil-chinese" && $DATASET_NAME != "plastic-metal" && $DATASET_NAME != "facades" && $DATASET_NAME != "sketch-photo" && $DATASET_NAME != "plastic-wood" ]]; then
  3. echo "Usage: bash ./datasets/download_dataset.sh dataset_name"
  4. echo "dataset names: facades, day-night, oil-chinese, sketch-photo"
  5. exit 1
  6. fi
  7. LINK=http://www.cs.mun.ca/~yz7241/dataset/$DATASET_NAME.zip
  8. FILE=./datasets/$DATASET_NAME.zip
  9. DIR=./datasets/$DATASET_NAME/
  10. if [ -d "datasets" ]; then
  11. wget -N $LINK -O $FILE
  12. mkdir $DIR
  13. unzip $FILE -d ./datasets/
  14. rm $FILE
  15. else
  16. echo "Remember to run the scripts in the root directory!"
  17. echo "Usage: bash ./datasets/download_dataset.sh dataset_name"
  18. fi
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...