Discovery will show exactly what the base images for training are. You can view that the outputs are derivative works.
I don't think the mechanism is going to shield the violation, and frankly it shouldn't.
License your source material for the purpose and do it right. Doesn't everyone know it's wrong to steal?