{"conversations": [{"from": "user", "value": "Escriu un codi en Python per separar una imatge en un conjunt de cel\u00b7 les de 10px x 10px"}, {"from": "assistant", "value": "import numpy as np from patchify import patchify from PIL import Image image = Image.open (\"ruta/imagen\") image = np. asarray( image) patchify( image, (10,10, 3), step=10) print( patches. shape)"}]}