When I try this command in the anaconda prompt:
(from ...Tensorflow\models\research\object_detection)
python legacy/train.py
--train_dir=training/
--pipeline_config_path=training/faster_rcnn_inception_v2_pets.config
--logtostderr
It should start training to detect the objects I want but I get this error:
tensorflow.python.framework.errors_impl.NotFoundError: NewRandomAccessFile failed to Create/Open: data/object-detection.pbtxt : Le fichier sp\udce9cifi\udce9 est introuvable.
; No such file or directory
And I can't figure why I get this error, the object-detection.pbtxt is in the right place, I have also tried to put entire path ( C:/folder1/folder2/.../data/object-detection.pbtxt ) in the config file. I tried to use normal / double slash or backslash in my command line and inside the config file.
Is it because of object-detection.pbtxt that is considered as a .txt file when I created it with the notepad ?
Hoping to find a solution quick.
Here is the part of the CONFIG file where I specified the different paths:
train_input_reader: {
tf_record_input_reader {
input_path: "data\train.record-?????-of-00010"
}
label_map_path: "data\objectdetection.pbtxt"
}
eval_config: {
metrics_set: "coco_detection_metrics"
num_examples: 1101
}
eval_input_reader: {
tf_record_input_reader {
input_path: "data\test.record-?????-of-00010"
}
label_map_path: "data\objectdetection.pbtxt"
shuffle: false
num_readers: 1
}
For me the combination of escaping the backslash AND using the full path worked:
eval_input_reader: {
tf_record_input_reader {
input_path: "D:\\Projects\\TFruns\\Run1\\data\\eval.record"
}
label_map_path: "D:\\Projects\\TFruns\\Run1\\data\\labelmap.pbtxt"
shuffle: false
num_readers: 1
}
Hope this helps.
In any case, I'm calling model_main: python object_detection/model_main.py, which might handle things differently.. Not sure, but you could try to use that instead.
For me the combination of escaping the backslash AND using the full path worked:
eval_input_reader: { tf_record_input_reader { input_path: "D:\\Projects\\TFruns\\Run1\\data\\eval.record" } label_map_path: "D:\\Projects\\TFruns\\Run1\\data\\labelmap.pbtxt" shuffle: false num_readers: 1 }Hope this helps.
In any case, I'm calling model_main:
python object_detection/model_main.py, which might handle things differently.. Not sure, but you could try to use that instead.
Thank you bro you solved my day
Most helpful comment
For me the combination of escaping the backslash AND using the full path worked:
Hope this helps.
In any case, I'm calling model_main:
python object_detection/model_main.py, which might handle things differently.. Not sure, but you could try to use that instead.