Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
491 views
in Technique[技术] by (71.8m points)

python - Convert Numpy Array from Grayscale to RGB

I have a grayscale image input with shape [4, 1, 32, 32]. I want to make the second parameter to 3, which will have three channels and shape becomes [4, 3, 32, 32]. Are there any methods that can achieve this using numpy? Thank you so much for your help in advance.

question from:https://stackoverflow.com/questions/65858202/convert-numpy-array-from-grayscale-to-rgb

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...