AttributeError: 'IOAdapter' object has no attribute 'unpad'
Closed this issue · 4 comments
duckduck-sys commented
Following the colab example , the line:
# Some padding may have been added during prepare_inputs. The line below ensures that the padding is removed
# to make the predictions have the same size as the original images.
predictions = io_adapter.unpad(predictions)
gives the error
AttributeError: 'IOAdapter' object has no attribute 'unpad'
A simple fix seems to be to replace the line with
predictions = io_adapter.unpad_and_unscale(predictions)
which makes the example run. Is this correct?
hmorimitsu commented
Yes, that is correct. Thank you for reporting this error. I will update the example later.
zplizzi commented
It is still incorrect here: https://ptlflow.readthedocs.io/en/latest/starting/inference.html
hmorimitsu commented
Thank you for the update! I will push a fix soon.
hmorimitsu commented
Docs were fixed in #29 .