79557283

Date: 2025-04-05 17:07:20
Score: 0.5
Natty:
Report link

Assuming you have the RGP in the numpy array and the shape of of your array with thousands of pictures with 32*32 Pixels is (50000,32,32,3), then you can create gray scale by average of RGB

X_gray = np.sum(X_color/3, axis=3, keepdims=True)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Yasin Amini