Closed drewleonard closed 6 years ago
This error was simple to fix: mold_inputs()
in model.py
calls the resize_image
method from utils.py
, but provides only 4 variables to receive the 5 values returned by resize_image
(see below).
molded_image, window, scale, padding = utils.resize_image(
image,
min_dim=self.config.IMAGE_MIN_DIM,
max_dim=self.config.IMAGE_MAX_DIM,
min_scale=self.config.IMAGE_MIN_SCALE,
mode=self.config.IMAGE_RESIZE_MODE
)
To fix the ValueError
this returns, supply an extra variable when calling resize_image
:
molded_image, window, scale, padding, crop = utils.resize_image(
image,
min_dim=self.config.IMAGE_MIN_DIM,
max_dim=self.config.IMAGE_MAX_DIM,
min_scale=self.config.IMAGE_MIN_SCALE,
mode=self.config.IMAGE_RESIZE_MODE
)
I'm working with
demo.ipynb
and am having trouble runningmodel.detect()
. Specifically, when running the following block of code:the following error is returned:
Any help on this issue would be much appreciated. Please let me know if I can provide extra information. Thank you very much!