Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
Generated from Trainer
dataset_size:90
loss:MatryoshkaLoss
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use mbudisic/e5-small-v2-ft-pstuts with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use mbudisic/e5-small-v2-ft-pstuts with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("mbudisic/e5-small-v2-ft-pstuts") sentences = [ "How does the improved Content Aware technology in Photoshop CC, including the use of Color Adaptation and adjustable Structure and Color settings, contribute to image refinement when removing distracting elements and repositioning objects, and what tools are specifically mentioned for these tasks?", ">> What I want to show you in this video is something that is absolutely amazing. It's a brand new feature in Adobe Photoshop Creative Cloud called Perspective Warp. Now I have a photograph open. I didn't take this photo. It was taken by a company called PhotoSpin. And don't forget if you want to follow along, you can download the assets for this video. What I want to do first though is make a copy of it. I'm going to drag it down- this is one way to do it-make a copy. That is not necessary, but this way we get to see kind of a before and an after. Now it will work with just about any image, but your first test is to go up to the word Edit on the pull-down menu and go down, and you better see Perspective Warp. If you don't, no big deal. Just go out to the cloud, and download the latest version of Photoshop. Now what does it do? What does Perspective Warp do? It literally allows me to re-enter a three-dimensional world to change the perspective of the image as if, as the photographer, I change my position. Now we're going to do two things. One is very easy. I'm going to straighten the buildings out. The other part's more fun. Change the perspective. Now, we've got the tool selected. You do this by building grids, perspective grids. So if I click somewhere, you can see your first grid. We can get in the middle. Let's talk about how this works. Get in the middle. Move it around as a whole. Go to a pin, move the pins just like that. If I go to the side, top, or bottom and drag, I can move it. But the trick is if you hold down the shift key at the same time and move it, it changes the perspective too. It can help you out. The other thing I do like is if you select a pin, you can use your arrow keys to gently nudge it into place or get on it, click it, delete it. Now we need two. We're working with a three-dimensional item that's been compressed two dimensionally. We need two planes on this, and we're going to use this right here as our dividing line. Click and drag this time. Save you some time in moving it around. I'm going to leave it right there. I'm going to come up here and click this one and move it over. What I want to do is grab and select that line. Now down here, I think I'll use my arrow keys. Do you have to do this? Not really. But if you do, if you spend the time to get these lines down right based on perspective of the image, it's going to save you time later on. So I'm going to come over here and grab this one. I'm going to drag it down. Now I can use these lines to match up with these, and that's what I'm doing. Let's do this one down here too. So what I'm trying to do here is just match those up. Let's come down just a little bit more, just about like that. That doesn't look too bad. Now we need the other side of our box, if you will. So if I click and drag, I can make another one of these. Now here's the fun part. Grab it right here, and drag it over. Don't hold the shift key. Just drag it over until you see a blue line up here. Let go. Pin to pin, it will match it. We can now do the other side. So what I'm going to do here is bring that over and again, I can use these lines here against those lines there. And I'm going to try to line that up as best I can, come down to this one obviously and bring that one up just about like that. Again, don't forget you can use your arrow keys if you want it precise. That's not too bad. What I want to do is extend it out. So hold the shift key before you drag it just like that. All right. Now we've got the box built around the buildings or whatever the object is. Come over here and click Warp. Now when we move the pins, it will change it. Now since I took the time to get the angles and the first thing I want to do maybe is straighten it out. That's going to be much easier. Click this button right here and watch what happens. Well it begins to straighten it out, but the pins are still independent. In other words, I can come over to this one and still move it if I wanted to. if I don't like what it did. I find most of the time that if I spend the time to get the perspective, it does help things out. Now you have another one that does your horizontals if you want to do that. We don't. This one does both. This one says, \"you know what? I so messed this up. I wish I could start all over again.\" And if you click it, it will take you right back to where you were. You say, \"I want to redesign the whole thing,\" you can click here. Go right back to Layout. Let's go back here, and let's click that button again because that did work. Now that's easy. In fact you might not even need Perspective Warp to straighten a building. What I love about it is changing the perspective. Now if I come down to this point right here and move it, these are still independent, and here's the trick. Come over to this line, hold the shift key down until it turns yellow, and then click on it. Now that does two things. If it", "<1-hop>\n\n>> What I want to show you in this video is something that is absolutely amazing. It's a brand new feature in Adobe Photoshop Creative Cloud called Perspective Warp. Now I have a photograph open. I didn't take this photo. It was taken by a company called PhotoSpin. And don't forget if you want to follow along, you can download the assets for this video. What I want to do first though is make a copy of it. I'm going to drag it down- this is one way to do it-make a copy. That is not necessary, but this way we get to see kind of a before and an after. Now it will work with just about any image, but your first test is to go up to the word Edit on the pull-down menu and go down, and you better see Perspective Warp. If you don't, no big deal. Just go out to the cloud, and download the latest version of Photoshop. Now what does it do? What does Perspective Warp do? It literally allows me to re-enter a three-dimensional world to change the perspective of the image as if, as the photographer, I change my position. Now we're going to do two things. One is very easy. I'm going to straighten the buildings out. The other part's more fun. Change the perspective. Now, we've got the tool selected. You do this by building grids, perspective grids. So if I click somewhere, you can see your first grid. We can get in the middle. Let's talk about how this works. Get in the middle. Move it around as a whole. Go to a pin, move the pins just like that. If I go to the side, top, or bottom and drag, I can move it. But the trick is if you hold down the shift key at the same time and move it, it changes the perspective too. It can help you out. The other thing I do like is if you select a pin, you can use your arrow keys to gently nudge it into place or get on it, click it, delete it. Now we need two. We're working with a three-dimensional item that's been compressed two dimensionally. We need two planes on this, and we're going to use this right here as our dividing line. Click and drag this time. Save you some time in moving it around. I'm going to leave it right there. I'm going to come up here and click this one and move it over. What I want to do is grab and select that line. Now down here, I think I'll use my arrow keys. Do you have to do this? Not really. But if you do, if you spend the time to get these lines down right based on perspective of the image, it's going to save you time later on. So I'm going to come over here and grab this one. I'm going to drag it down. Now I can use these lines to match up with these, and that's what I'm doing. Let's do this one down here too. So what I'm trying to do here is just match those up. Let's come down just a little bit more, just about like that. That doesn't look too bad. Now we need the other side of our box, if you will. So if I click and drag, I can make another one of these. Now here's the fun part. Grab it right here, and drag it over. Don't hold the shift key. Just drag it over until you see a blue line up here. Let go. Pin to pin, it will match it. We can now do the other side. So what I'm going to do here is bring that over and again, I can use these lines here against those lines there. And I'm going to try to line that up as best I can, come down to this one obviously and bring that one up just about like that. Again, don't forget you can use your arrow keys if you want it precise. That's not too bad. What I want to do is extend it out. So hold the shift key before you drag it just like that. All right. Now we've got the box built around the buildings or whatever the object is. Come over here and click Warp. Now when we move the pins, it will change it. Now since I took the time to get the angles and the first thing I want to do maybe is straighten it out. That's going to be much easier. Click this button right here and watch what happens. Well it begins to straighten it out, but the pins are still independent. In other words, I can come over to this one and still move it if I wanted to. if I don't like what it did. I find most of the time that if I spend the time to get the perspective, it does help things out. Now you have another one that does your horizontals if you want to do that. We don't. This one does both. This one says, \"you know what? I so messed this up. I wish I could start all over again.\" And if you click it, it will take you right back to where you were. You say, \"I want to redesign the whole thing,\" you can click here. Go right back to Layout. Let's go back here, and let's click that button again because that did work. Now that's easy. In fact you might not even need Perspective Warp to straighten a building. What I love about it is changing the perspective. Now if I come down to this point right here and move it, these are still independent, and here's the trick. Come over to this line, hold the shift key down until it turns yellow, and then click on it. Now that does two things. If it", "<1-hop>\n\n>> Removing distracting elements is easier than ever with the 2014 release of Photoshop CC. Not only has the Content Aware technology improved in terms of quality, but the speed has also been improved significantly. Let's go ahead take a look at a few examples. Now in this image of the cactus, I'm going to select the Lasso Tool and I simply want to get rid of this cactus here in the background. The easiest way to do this would be to select Edit and then Fill. I'll use Content Aware, but when I click OK, you'll notice there's a little bit of a seam here where the colors aren't blended very well. And that's because, in the past, the Content Aware technology really focused on the texture in the image. So let's undo that Command + Z or Ctrl + Z. And this time when I select Edit, Fill, I'm going to use the new Color Adaptation option. This time when I click OK, you can see that Photoshop does a much better job in blending those colors. Now let's go ahead and try to remove the other two cacti here that are blurred. So I'm going to go ahead and just zoom in a bit, and you can see that we're going to have a problem probably right in this area. So what I'll do is I'll just select this area here because I know that I want this flower to be preserved, right. So I will just drag a little selection around it. And then I'll hold down the Shift key and I probably want to drag around this area right here, and I'll also want to preserve this area here. Now what I can do is I can just jump those up to their own layer using Command + J so that now we've got just that area on its own layer. I want to make sure that I go back, I drop down to the background layer, then I'll zoom back out and then all use my Lasso Tool and I'll make kind of a general more broad selection around this area here that I want to patch and then switch over to the Patch Tool. Now I need to make sure that the Patch Tool is set to Content Aware. And let's take a look at the Adaptation Options. It used to be that we only had one option here. But now I can change the structure, which is going to help blend the edges. Let's go ahead and make that just one for now and I'll leave the color set to zero as well. The great thing about these settings is that I can always come back to them even after I use the Patch Tool in order to select a different area of the image. So you can see that it's done a fairly good job. It just has a little bit of a problem right down here. But let's try changing some of these options. So if I change the Structure up to 3, for example, we can watch as it goes ahead and it recalculates that area. And that's looking much better. Now I also am looking at the color area here, and it just looks a little bit blotchy, so I'm gonna move the Color up to 5. Now the Structure has a range from 1 to 5. But the Color actually has a range from 0 to 10. So this is looking much better, it's not as blotchy, but let's see what happens if we actually move it up to 10. I think now we can see that that background area is really blending in a lot better, so I'll go ahead and deselect. So you can see how just copying that little area up onto its own layer helps me to use these Content Aware tools around edges of areas that are really busy. Okay, let's move to this other image right here. Now not only do I want to reposition this bird, but I actually have two layers in this document and I want to take this bird and move it over into this background area where you can see there's quite a difference between the blues. So let's switch to the Content Aware Move Tool and I'll make a rough selection here around the first egret and then I'll reposition that bird right down to here. Let's go ahead and zoom in a little bit and pan over and take a look at what we have. I'm gonna use Command + H or Ctrl + H in order to hide those edges. And let's look at the different options. If I move the Structure up to 5, you can see that the bird is actually rendered a little bit better. But with the Color set down to 0, you can see this mismatch between the background of the bird from the position in the sky where it was to this area here. So let's move the Color also to maybe 5. And it does a much better job blending. Now let's zoom out again. This time, I'm going to select the bird over on the right-hand side and I want to scoot it over. So we again, I'll use the Move Tool, I'll drag it over and position it the way I want it. And then we can see how good of a job it does at blending. So it's done a really nice job. Let's go ahead and zoom in again. And one of the reasons it did such a nice job, as you can see here, that my Color blending is set up to 5. Again, I'll hide the edges here so we can make sure that we see that seam using Command + H or Ctrl + H. And if the blending wasn't enough, we could go ahead and move this to 10. That's just going to help the seams a little" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!