Using openvino needs to write, causes issues with read-only container
See original GitHub issueHi,
I’ve been encountering an issue when using the openvino
extra arg for calling variants. When I do not use this flag, things progress as expected. When using the extra flag, both via --call_variants_extra_args "use_openvino=true"
to run_deepvariant as well as the --use_openvino
to call_variants, there is the following error about being unable to save the new model due to read-only system.
This is running V1.1.0 via singularity on a linux system, using the pacbio hifi model.
Instructions for updating:
Use `tf.compat.v1.graph_util.remove_training_nodes`
Traceback (most recent call last):
File "/scratch/13530063.tmpdir/Bazel.runfiles_69_p3nci/runfiles/com_google_deepvariant/deepvariant/call_variants.py", line 502, in <module>
tf.compat.v1.app.run()
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/platform/app.py", line 40, in run
_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
File "/scratch/13530063.tmpdir/Bazel.runfiles_69_p3nci/runfiles/absl_py/absl/app.py", line 299, in run
_run_main(main, args)
File "/scratch/13530063.tmpdir/Bazel.runfiles_69_p3nci/runfiles/absl_py/absl/app.py", line 250, in _run_main
sys.exit(main(argv))
File "/scratch/13530063.tmpdir/Bazel.runfiles_69_p3nci/runfiles/com_google_deepvariant/deepvariant/call_variants.py", line 492, in main
use_tpu=FLAGS.use_tpu,
File "/scratch/13530063.tmpdir/Bazel.runfiles_69_p3nci/runfiles/com_google_deepvariant/deepvariant/call_variants.py", line 409, in call_variants
checkpoint_path, input_fn=tf_dataset, model=model)
File "/scratch/13530063.tmpdir/Bazel.runfiles_69_p3nci/runfiles/com_google_deepvariant/deepvariant/openvino_estimator.py", line 89, in __init__
freeze_graph(model, checkpoint_path, tensor_shape)
File "/scratch/13530063.tmpdir/Bazel.runfiles_69_p3nci/runfiles/com_google_deepvariant/deepvariant/openvino_estimator.py", line 81, in freeze_graph
f.write(graph_def.SerializeToString())
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/lib/io/file_io.py", line 101, in write
self._prewrite_check()
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/lib/io/file_io.py", line 87, in _prewrite_check
compat.as_bytes(self.__name), compat.as_bytes(self.__mode))
tensorflow.python.framework.errors_impl.PermissionDeniedError: model.pb; Read-only file system
I guess since the model resides in the container, it can’t be updated as singularity is read-only without sudo. Would there be some way of passing the --checkpoint "/opt/models/pacbio/model.ckpt"
parameter, but allowing it to be saved elsewhere?
Thanks, Alex
Issue Analytics
- State:
- Created 3 years ago
- Comments:10
Top Results From Across the Web
Question about openvino_2020.1.033 and non AVX CPU #387
I'm mainly using OpenVINO in a Docker container - as it installs quite a lot which clashes with some of my packages on...
Read more >Optimization Guide - OpenVINO™ Documentation
Introduction. The purpose of this document is to give you performance-related insights to every step of the network deployment process. For information on...
Read more >Introduction to nGraph Flow in Inference Engine
Thus the OpenVINO IR becomes a new serialization format for the nGraph IR, and it can be deserialized reading the CNNNetwork . IMPORTANT:...
Read more >Benchmark C++ Tool - OpenVINO™ Documentation
The benchmarking application works with models in the OpenVINO IR ( model.xml and model.bin ) and ONNX ( model.onnx ) formats. Make sure...
Read more >Troubleshooting - OpenVINO™ Documentation
Using GCS model behind a proxy¶ · If your environment is required to use proxy but http_proxy / https_proxy is not passed to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @ASLeonard , thanks for the report. Now I think about it, I might not have tested the combination of Singularity and our use of OpenVINO together. I’ll run this through the PacBio example and confirm that I can reproduce this issue.
There are a few fixes I can think of, which you also suggested:
I’ll first try to reproduce the issue, and then I’ll likely try with option 2 above. Thanks for reporting this issue. I’ll update again when I look into it more.
Also tagging @dkurt here as an FYI.
Thank you @ASLeonard for sharing your current solution.
On my end I’ll continue to try to reproduce the issue. If I’m unable to, I might need to ask you to help test out my updated code after I have it. I might reach out again later on this thread. For now, I’ll close this issue. Please feel free to update with more information, or submit another issue if you have other questions.