tensorflow / compression

Data compression in TensorFlow
Apache License 2.0
850 stars 248 forks source link

tf.image.decode_image can not output image shape #91

Closed Yaoxingtian closed 3 years ago

Yaoxingtian commented 3 years ago

hi, thanks for your opensource. the problem is as below, tf1.15 version cannot work of tf.image.decode_image, any solutions to solve this problem ? thanks so much!

File "tfci.py", line 124, in compress bitstring = compress_image(model, input_image) File "tfci.py", line 107, in compress_image packed.pack(tensors) TypeError: pack() missing 1 required positional argument: 'arrays'

jonycgn commented 3 years ago

Hi, this is most likely a mismatch between versions. If you are using TF 1.15 and TFC 1.3, you need to download the model script from here. This is the corresponding older version of the script.