-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathclearws.sh
More file actions
executable file
·38 lines (29 loc) · 843 Bytes
/
clearws.sh
File metadata and controls
executable file
·38 lines (29 loc) · 843 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
31
32
33
34
35
36
37
38
#!/bin/bash
#
# Copyright (C) king.com Ltd 2019
# https://github.com/king/s3vdc
# License: MIT, https://raw.github.com/king/s3vdc/LICENSE.md
#
# Clearing the workspace
if [[ $PWD != */s3vdc ]] ; then
# Exit if not in S3VDC folder
echo "Please run within S3VDC folder. Do nothing and exit!"
exit 1
fi
echo "[-] Remove user models, logs, and predictions."
rm -rf ./task_mnist/model
rm -rf ./task_inertial_har/model
rm -rf ./task_fashion/model
rm -rf ./models/mnist/*.log
rm -rf ./models/mnist/prediction_*_*
rm -rf ./models/inertial_har/*.log
rm -rf ./models/inertial_har/prediction_*_*
rm -rf ./models/fashion/*.log
rm -rf ./models/fashion/prediction_*_*
echo "Done."
if [ "$1" = "all" ] ; then
echo "[-] Remove pretrained models and preprocessed datasets."
rm -rf ./models
rm -rf ./datasets
echo "Done."
fi