I think it's almost impossible to tell whether what comes out of an AI art program is in breach of someone's copyright. That's the problem. Tweaking prompts might make it less recognisable, I guess, but I'm no expert. Check out the court cases - some of those were obvious lifts from other people's work.