You can, but it’s tricky as a lot of things are intelligently handling numpy arrays, hence your error. So you can only update in certain ways:
I couldn’t find a way that works without that warning, though it is updating properly in this case.
Though unless you have a pretty small dataset loading all your images into RAM like that is probably not a good idea.