Add PerSAM [bis]
# What does this PR do?

This PR adds support for [PerSAM](https://arxiv.org/abs/2305.03048). Simplification of #23652. 

2 optional arguments are introduced: 

- attention_similarity
- target_embedding.

Those are used by PerSAM, a method which enables SAM to be quickly adapted to new concepts.
_The documentation is not available anymore as the PR was closed or merged._