Rulings have said that reproduction of AI models which were trained on copyrighted material are not violating the copyright on those materials. The initial copying of those materials without paying is illegal regardless. You still have to buy or otherwise legally view a copy of the book/movie/photo to train your model on it.