mirror of
https://github.com/arnaucube/objectImageIdentifierAI.git
synced 2026-02-07 03:36:51 +01:00
deploy.sh to run the server in one script
This commit is contained in:
24
deploy.sh
Normal file
24
deploy.sh
Normal file
@@ -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
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user