Ushbu rasmni numpy-da ishlatish uchun siz PIL tasvirini `np.array` bilan aylantirishingiz mumkin. Mana bir misol: ``` PIL import Image # Image img = Image.open (("image.jpg") # Rasmni numpy matrisini np_img = np.array ((img) # shakliga aylantiring HWC np_img.shape # => (128, 128, 3) ``` Natijada numpy matrisi 0 va 255 o'rtasidagi pixel qiymatlarini belgilaydigan butun sonlar matrisi bo'ladi. Chiqish shakli (ko'tarish, og'irlik, kanallar).
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence