Zaktualizuj 'Find_animal.py'
This commit is contained in:
parent
7a8b8b4a8e
commit
ec6ee7f2fa
@ -90,9 +90,9 @@ textGraph = "./mask.pbtxt";
|
|||||||
modelWeights = "./mask/frozen_inference_graph.pb";
|
modelWeights = "./mask/frozen_inference_graph.pb";
|
||||||
|
|
||||||
# Załadowanie z sieci
|
# Załadowanie z sieci
|
||||||
net = cv.dnn.readNetFromTensorflow(modelWeights, textGraph);
|
#net = cv.dnn.readNetFromTensorflow(modelWeights, textGraph);
|
||||||
net.setPreferableBackend(cv.dnn.DNN_BACKEND_OPENCV)
|
#net.setPreferableBackend(cv.dnn.DNN_BACKEND_OPENCV)
|
||||||
net.setPreferableTarget(cv.dnn.DNN_TARGET_CPU)
|
#net.setPreferableTarget(cv.dnn.DNN_TARGET_CPU)
|
||||||
|
|
||||||
# załadowanie klas
|
# załadowanie klas
|
||||||
colorsFile = "colors.txt";
|
colorsFile = "colors.txt";
|
||||||
|
Loading…
Reference in New Issue
Block a user