Earlier quoted context omitted.
It seems clear that such training of AIs requires copying an image onto a computer system in which the training algorithms are performed. Maybe that fits in Fair Use (I doubt it: it's commercial and harms the original creators) but it certainly doesn't fit in Fair Dealing (in UK). I certainly, personally, approve of weak copyright laws that allows for things like training AIs without getting permission; neither USA,…
The AI doesn't actually need the image. It needs a two dimensional array that represents the pixel values. I am sure there are some very clever ways to get around that hurdle if that is where the bar is set.
IME, limited as it is, courts don't take kindly to overly clever attempts to differentiate things from what everyone agrees they are; like 'the file isn't the image, so I can copy that', judges aren't stupid.