Browse Source

deploy.sh to run the server in one script

master
arnaucode 6 years ago
parent
commit
26f61c02f5
4 changed files with 33 additions and 8 deletions
  1. +24
    -0
      deploy.sh
  2. +1
    -0
      imagesToDataset/main.py
  3. +4
    -4
      nnTrain/nn.pkl
  4. +4
    -4
      serverPredictor/nn.pkl

+ 24
- 0
deploy.sh

@ -0,0 +1,24 @@
timestamp() {
date +"%T"
}
timestamp
echo "Starting imagesToDataset"
cd imagesToDataset && python main.py
cd ..
cp ./imagesToDataset/dataset.npy ./nnTrain/dataset.npy
timestamp
echo "Starting nnTrain"
cd nnTrain && python train.py
cd ..
cp ./nnTrain/nn.pkl ./serverPredictor/nn.pkl
timestamp
echo "Starting serverPredictor"
cd serverPredictor && python main.py
echo "----- deploy.sh finished -----"
timestamp

+ 1
- 0
imagesToDataset/main.py

@ -28,6 +28,7 @@ def getDirectoryFiles(path, imgClass):
#print filename
image_data = imgFileToData(path + "/" + filename)
images.append([image_data, imgClass])
print path + "/" + filename
return images

+ 4
- 4
nnTrain/nn.pkl
File diff suppressed because it is too large
View File


+ 4
- 4
serverPredictor/nn.pkl
File diff suppressed because it is too large
View File


Loading…
Cancel
Save