Do you have bosses know how to set a shape is the picture of (294, 402, 3) into (64,64,3)?
Because of my training data format images are,64,3 (64), but the picture of the shape of test data is uncertain, so I want to ask next have bosses know how, thank you.
CodePudding user response:
Just the size change? Then adjust the size
CodePudding user response:
The
refer to the original poster atypical bad student response: how bosses know how to set a shape is the picture of (294, 402, 3) into (64,64,3)? Because of my training data format images are,64,3 (64), but the picture of the shape of test data is uncertain, so I want to ask next have bosses know how, thank you. Opencv and pillow can use the resize, I don't know what is your model, but recommended to adjust the size of the picture a bit bigger, avoid distortion, in addition to the filter, the interpolation operation, such as can try on the way, on the edge of grey CodePudding user response:
reference 1st floor weixin_45903952 response: just change size? Then adjust the size Thank you for your answer, but in fact is not, you cannot be directly adjust size, otherwise it will lead to image the original information loss, CodePudding user response:
refer to the second floor Dream__xiaobei response: Quote: refer to the original poster atypical bad student response: how bosses know how to set a shape is the picture of (294, 402, 3) into (64,64,3)? Because of my training data format images are,64,3 (64), but the picture of the shape of test data is uncertain, so I want to ask next have bosses know how, thank you. Opencv and pillow can use the resize, I don't know what is your model, but recommended to adjust the size of the picture a bit bigger, avoid distortion, in addition to filter, such as interpolation operation, also can try to add the edge of grey way Yes, yes, thank you for your reply,