-
Notifications
You must be signed in to change notification settings - Fork 0
/
cleanTraining.sh
49 lines (37 loc) · 1.36 KB
/
cleanTraining.sh
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
39
40
41
42
43
44
45
46
#!/bin/sh
##################################################
#
# 2018
#
##################################################
dUser=$HOME"/";
dApplication="OrangeResults/bySize/PSMet2/";
dMethod="Training/";
fullPath=$dUser$dApplication$dMethod;
# ----------------------------------------
# Output Directories
# ----------------------------------------
dOutput=$fullPath"output/"; #output files for training
dTmpToLearn=$fullPath"tmpToLearn/"; # intermediate images
dTmpBr=$dTmpToLearn"br/"; #image with background removed all in one image
dTmpRemoved=$dTmpToLearn"removed/"; #image whith background removed, cut
dTmpRoiSilhouettes=$dTmpToLearn"roi/"; #only regions of interest
dTmpFruitsSilhouettes=$dTmpToLearn"sFruits/"; #fruit segmented
files="*";
echo "------------------- \n";
echo "Attention this script will erase previous results, do you want to continue? \n";
echo "------------------- \n";
echo "------------------- \n";
echo "CLEANING IMAGE DIRECTORIES \n";
echo "------------------- \n";
# --------------------------------
echo "FILES->"$files;
echo "BR->"$dTmpBr$files;
echo "BACKGROUND REMOVED->"$dTmpRemoved$files;
echo "ROI->"$dTmpRoiSilhouettes$files;
echo "FRUITS SILHOUETTER->"$dTmpFruitsSilhouettes$files;
rm -Rf $dTmpBr$files;
rm -Rf $dTmpRemoved$files;
rm -Rf $dTmpRoiSilhouettes$files;
rm -Rf $dTmpFruitsSilhouettes$files;