-
Notifications
You must be signed in to change notification settings - Fork 45.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: in method 'ReadFromStream', argument 2 of type 'size_t' in compression model #7862
Comments
Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks. |
The Colab file also includes the commented line for outputting What is the top-level directory of the model you are using Have I written custom code OS Platform and Distribution TensorFlow installed from TensorFlow version Bazel version CUDA/cuDNN version GPU model and memory Exact command to reproduce |
I edited the code in "msssim.py" file like below,
Then it is working now. |
Is this still an issue.Please, close this thread if your issue was resolved.Thanks! |
@ravikyram I think this can be closed once @brkygokcen changes are applied. I confirmed the changes are working with tf-gpu 1.15. But then tf-gpu 2.x just broke again, probably a different issue...
|
Can we close this issue and open new issue by filling issue template and by providing related code. Thanks! |
...this is still an issue, it is broken out of the box. |
Since the models are now archived, removed from master branch, no longer maintained and not updated for use with TF2, Closing issue... |
System information
Google Colab
Describe the problem
Tried to run image_encoder compression model in Colab, stuck at Comparing Similarity using msssim.py
Attached a written Colab file, just hit Run All:
https://colab.research.google.com/gist/truboxl/1c20fe7b6bc7ff52ceff9a39acdbd721/set-up-tf-models-compression-imageencoder.ipynb
Source code / logs
Traceback (most recent call last):
File "msssim.py", line 217, in
tf.app.run()
File "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/platform/app.py", line 40, in run
_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
File "/usr/local/lib/python3.6/dist-packages/absl/app.py", line 299, in run
_run_main(main, args)
File "/usr/local/lib/python3.6/dist-packages/absl/app.py", line 250, in _run_main
sys.exit(main(argv))
File "msssim.py", line 202, in main
img1_str = image_file.read('rb')
File "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/lib/io/file_io.py", line 128, in read
pywrap_tensorflow.ReadFromStream(self._read_buf, length))
TypeError: in method 'ReadFromStream', argument 2 of type 'size_t'
The text was updated successfully, but these errors were encountered: