made relative path to model
This commit is contained in:
parent
6dbec012a7
commit
0bfeeb2486
@ -103,7 +103,10 @@ class LoadModelThread(threading.Thread):
|
||||
self.__runThread = True
|
||||
|
||||
def run(self):
|
||||
model_path = 'D:\\Nauka\\Studia\\4_sem\\SztucznaInteligencja\\ProjektAI\\kelner\\src\\algorithms\\CNN\\trainedModels\\big_model_trained_3class.hdf5'
|
||||
cwd = os.getcwd()
|
||||
print(cwd)
|
||||
model_path = os.path.join(cwd, 'src', 'algorithms', 'CNN', 'trainedModels', 'big_model_trained_3class.hdf5')
|
||||
# model_path = 'D:\\Nauka\\Studia\\4_sem\\SztucznaInteligencja\\ProjektAI\\kelner\\src\\algorithms\\CNN\\trainedModels\\big_model_trained_3class.hdf5'
|
||||
model = load_model(model_path)
|
||||
settings.tensorflowModel = model
|
||||
print("---MODEL LOADED---")
|
||||
|
@ -33,10 +33,14 @@ class TableManager(threading.Thread):
|
||||
tables = self.__drawableManager.getTables(Status.Waiting)
|
||||
for table in tables:
|
||||
if (table.getX(), table.getY()) == position:
|
||||
|
||||
return table
|
||||
|
||||
def pause(self):
|
||||
self._active = False
|
||||
|
||||
def stop(self):
|
||||
self.__runThread = False
|
||||
|
||||
def resume(self):
|
||||
self._active = True
|
||||
|
Loading…
Reference in New Issue
Block a user