I have tried installing the automatic1111 extension version of Layer Divider.
The first time I installed it, I managed to get the segment function to work:

However, I could not create a psd file with it:

And in the end, this error popped up:

Also, after I closed the webui and opened it again, segment function does not work anymore.