This might be a pretty big idea.
Since GIMP is highly scriptable afaik it should be possible to have an AI do all the work.
But as always... you would need a lot of training data.
You could definitely script it in python
It should be possible to create a community pool of training data. Some place people can donate data to.