convert .weights to .pb error
shahla-ai opened this issue · 0 comments
hello
I installed all requirements correctly and tried the detection_demo.py script
I had a problem while converting yolov3.weights to .pb model
Traceback (most recent call last): File "C:\Users\test\Downloads\Deep Learning\Apps\tensorflow-tensorRT\TensorFlow-2.x-YOLOv3-master\TensorFlow-2.x-YOLOv3-master\tools\Convert_to_pb.py", line 38, in <module> yolo.save(f'C:\\Users\\test\\Downloads\\Deep\ Learning\\Apps\\tensorflow-tensorRT\\TensorFlow-2.x-YOLOv3-master\\TensorFlow-2.x-YOLOv3-master\\checkpoints\\yolov3-416') File "C:\Users\test\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\keras\engine\training.py", line 1979, in save signatures, options) File "C:\Users\test\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\keras\saving\save.py", line 134, in save_model signatures, options) File "C:\Users\test\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\keras\saving\saved_model\save.py", line 80, in save save_lib.save(model, filepath, signatures, options) File "C:\Users\test\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\saved_model\save.py", line 985, in save options=ckpt_options) File "C:\Users\test\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\training\tracking\util.py", line 1200, in save file_prefix_tensor, object_graph_tensor, options) File "C:\Users\test\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\training\tracking\util.py", line 1145, in _save_cached_when_graph_building save_op = saver.save(file_prefix, options=options) File "C:\Users\test\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\training\saving\functional_saver.py", line 295, in save return save_fn() File "C:\Users\test\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\training\saving\functional_saver.py", line 269, in save_fn sharded_saves.append(saver.save(shard_prefix, options)) File "C:\Users\test\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\training\saving\functional_saver.py", line 78, in save return io_ops.save_v2(file_prefix, tensor_names, tensor_slices, tensors) File "C:\Users\test\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\ops\gen_io_ops.py", line 1731, in save_v2 ctx=_ctx) File "C:\Users\test\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\ops\gen_io_ops.py", line 1751, in save_v2_eager_fallback ctx=ctx, name=name) File "C:\Users\test\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\eager\execute.py", line 60, in quick_execute inputs, attrs, num_outputs) tensorflow.python.framework.errors_impl.NotFoundError: Failed to create a NewWriteableFile: C:\Users\test\Downloads\Deep\ Learning\Apps\tensorflow-tensorRT\TensorFlow-2.x-YOLOv3-master\TensorFlow-2.x-YOLOv3-master\checkpoints\yolov3-416\variables\variables_temp_bcd0d9960ca546b9bd6a85fa7db5fc5f/part-00000-of-00001.data-00000-of-00001.tempstate2886868755773747615 : The system cannot find the path specified. ; No such process [Op:SaveV2]
I wish you can help me
best regards