Open Joeper214 opened 5 years ago
@iizukak ResizeWithMask seems to be a pre-process used in Segmentation.
I searched for ResizeWithMask, but it doesn't seem to be in use. https://github.com/blue-oil/blueoil/search?q=ResizeWithMask&unscoped_q=ResizeWithMask There is no config file used. In addition, ResizeWithMask is not tested.
Segmentation's config file uses Resize. https://github.com/blue-oil/blueoil/blob/a0078e1e0225dc627c5010429ea5f55d86af39d3/blueoil/configs/core/segmentation/lm_bisenet_quantize_camvid.py#L24 People may think that this is an unnecessary function
Deleting ResizeWithMask merit
de-merit
use a flag merit
de-merit
Which is preferable?
Resize
https://github.com/blue-oil/blueoil/blob/master/lmnet/lmnet/pre_processor.py#L278-L294ResizeWithMask
https://github.com/blue-oil/blueoil/blob/master/lmnet/lmnet/pre_processor.py#L242-L258Maybe it's better to use a flag in
__init__
to include mask during initialization inResize
class to remove redundant code? then remove the other one?