alexander-pv / maskrcnn_tf2

Mask R-CNN for object detection and instance segmentation with Keras and TensorFlow V2 and ONNX and TensorRT optimization support.
Other
40 stars 11 forks source link

FileNotFoundError: [Errno 2] No such file or directory: '../tests/samples/balloon' #22

Closed JuliaHarvey closed 1 year ago

JuliaHarvey commented 1 year ago

After running 'example_training_balloon', I tried to run 'example_training_balloon' to confirm everything was working correctly. However, an error about being unable to find the file for the model weights appeared and, after checking a few places and attempting to run other notebooks which used the same path, I was still getting an error about the weights path. At what point in the code should that path be created? Or should this path be modified to check/store items under ./src/samples/balloon' instead?

JuliaHarvey commented 1 year ago

Nevermind. I was able to find the path of the most recently stored model as '../logs/scalars/maskrcnn_mobilenet_2022-10-19_16-21-48/checkpoints/maskrcnn_mobilenet_4b720a79042047bbff5ef21f95630ea2_cp-0027.ckpt' and changed the weights_path variable to that, which fixed the issue.