-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathctu.sh
More file actions
30 lines (23 loc) · 847 Bytes
/
ctu.sh
File metadata and controls
30 lines (23 loc) · 847 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
eval "$(conda shell.bash hook)"
conda activate timemaster
# Create the target directory
if [ ! -d "./ori_data" ]; then
mkdir ./ori_data
fi
if [ ! -d "./data" ]; then
mkdir ./data
fi
# Download the ZIP file
echo "Downloading Computers.zip to ./ori_data"
gdown https://www.timeseriesclassification.com/aeon-toolkit/Computers.zip -O ./ori_data/Computers.zip
# Unzip the downloaded file
echo "Unzipping Computers.zip into ./ori_data/Computers"
unzip ./ori_data/Computers.zip -d ./ori_data/Computers && rm -rf ./ori_data/Computers.zip
# Convert time-series data to images
echo "Converting time-series data to images..."
python create_data/image_processing/ctu.py
# Build the multimodal dataset
echo "Building multimodal dataset..."
python create_data/multimodal_data_processing/ctu.py
echo "All tasks completed successfully."