hmorimitsu/ptlflow

AttributeError: 'IOAdapter' object has no attribute 'unpad'

Closed this issue · 4 comments

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?

Yes, that is correct. Thank you for reporting this error. I will update the example later.

Thank you for the update! I will push a fix soon.

Docs were fixed in #29 .