---
tags:
- sentence-transformers
- sentence-similarity
- feature-extraction
- generated_from_trainer
- dataset_size:6113
- loss:MultipleNegativesRankingLoss
base_model: sentence-transformers/clip-ViT-B-32
widget:
- source_sentence: Some buildings and many green trees are located in an average residential
area.some buildings and many green trees are located in an average residential
area.some buildings and many green trees are located in an average residential
area.some buildings and many green trees are in an average residential area.some
buildings and many green trees are in a medium residential area .
sentences:
- Seawater in the wind triggered layers of white spray.a pedestrian are on the shore
of the sea .a lot of people on the beach .water is dark blue light blue .sea water
in the wind set off layers of white spray .
- the brown roof stage is located in the middle of the road.Many large trees were
planted around the stadium.many tall trees were planted around the stadium .the
brown roof stadium is located in the middle of the road.the brown roof stadium
is located in the middle of the road .
- Seawater in the wind triggered layers of white spray.a pedestrian are on the shore
of the sea .a lot of people on the beach .water is dark blue light blue .sea water
in the wind set off layers of white spray .
- source_sentence: Many white snows cover the irregular mountain.Many white snows
cover irregular mountain.Many white snows cover the irregular mountain.Many white
snows cover irregular mountain.many white snows cover irregular mountain .
sentences:
- Cylinder storage tanks are built on two square concrete fields near some trees
and a parking lot.Cylinder storage tanks are built on two square concrete grounds
near some trees and a parking lot.cylinder storage tanks are built on two square
concrete ground near some trees and a parking lot .these storage tanks are painted
in different colors located next to the wood .many storage tanks are near some
green trees .
- Seawater in the wind triggered layers of white spray.a pedestrian are on the shore
of the sea .Many people are in a beach near a piece of ocean with waves.many people
are in a beach near a piece of ocean with waves .sea water in the wind set off
layers of white spray .
- 19 oil storage tanks are there.the storage tank is next to the green sea .Many
storage tanks are located between a river and a road.many storage tanks are between
a river and a road .19 oil storage tanks are there .
- source_sentence: this piece of forest is green yellow and dense.this piece of the
yellow green forest is dense .Many green trees are in a piece of forest.many green
trees are in a piece of forest .this piece of the forest is yellow green and dense
.
sentences:
- Many ordered ships are in a port.Many ordered ships are in a port.Many ordered
boats are in a port.Many ordered boats are in a port.many orderly boats are in
a port .
- a swimming pool is located between a road and a beach in a seaside resort.a swimming
pool is located between a road and a beach in a complex.a swimming pool is located
between a street and a beach in a resort.a swimming pool is between a road and
a beach in a resort.a swimming pool is between a road and a beach in a resort
.
- You can see the dendritic texture on the desert.we can see dendritic texture on
the desert .there is a desert with the figure of blood vessel .lots of lines stretches
across this yellow desert .many ripples are in a piece of yellow desert .
- source_sentence: a parking lot and many green trees are close to a viaduct with
a circle like a ring track.a parking lot and many green trees are close to a viaduct
with a circle like a ring track.a parking lot and many green trees are close to
a viaduct with a circle like a ring track.a parking lot and many green trees are
close to a viaduct with a circle like a ring track.a parking lot and many green
trees are near a viaduct with a circle like a ring runway .
sentences:
- Many aircraft are parked next to the terminals near the runways of an airport.Many
aircraft are parked next to terminals near airstrips at an airport.Many planes
are parked next to the terminals near the runways in an airport.many planes are
parked next to terminals near runways at an airport.many planes are parked next
to terminals near runways in an airport .
- many buildings are close to a port with many boats.it is practical that the industrial
zone is located next to the port.it is convenient that the industrial area is
located next to the port .Many buildings are close to a port with many boats.many
buildings are near a port with many boats .
- a clear sea and a quiet beach.the dark blue sea is very beautiful .Yellow beach
is near a piece of green ocean.yellow beach is near a piece of green ocean .a
clear sea and a quiet beach .
- source_sentence: It's a mountainous area.it is white, brown and green .It's a piece
of green mountains.it is a piece of green mountains .this is mountainous region
.
sentences:
- yellow ribbon beach is between green trees and dark green ocean with white waves.yellow
ribbon beach lies between green trees and dark green ocean with white waves.Yellow
ribbon beach is between green trees and dark green ocean with white waves.Yellow
ribbon beach is between green trees and dark green ocean with white waves.yellow
ribbon beach is between green trees and dark green ocean with white waves .
- Many aircraft are parked next to the terminals near the runways of an airport.Many
aircraft are parked next to terminals near airstrips at an airport.Many planes
are parked next to the terminals near the runways in an airport.many planes are
parked next to terminals near runways at an airport.many planes are parked next
to terminals near runways in an airport .
- several buildings are around a church.The church seems very grand.the church seems
very grandear .several buildings are around a church.several buildings are around
a church .
pipeline_tag: sentence-similarity
library_name: sentence-transformers
metrics:
- cosine_accuracy
model-index:
- name: SentenceTransformer based on sentence-transformers/clip-ViT-B-32
results:
- task:
type: triplet
name: Triplet
dataset:
name: clip valid triplet
type: clip-valid-triplet
metrics:
- type: cosine_accuracy
value: 0.9992366433143616
name: Cosine Accuracy
- task:
type: triplet
name: Triplet
dataset:
name: clip train triplet
type: clip-train-triplet
metrics:
- type: cosine_accuracy
value: 0.9996728301048279
name: Cosine Accuracy
- task:
type: triplet
name: Triplet
dataset:
name: clip test triplet
type: clip-test-triplet
metrics:
- type: cosine_accuracy
value: 0.9992372393608093
name: Cosine Accuracy
---
# SentenceTransformer based on sentence-transformers/clip-ViT-B-32
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [sentence-transformers/clip-ViT-B-32](https://huggingface.co/sentence-transformers/clip-ViT-B-32). It maps sentences & paragraphs to a None-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
## Model Details
### Model Description
- **Model Type:** Sentence Transformer
- **Base model:** [sentence-transformers/clip-ViT-B-32](https://huggingface.co/sentence-transformers/clip-ViT-B-32)
- **Maximum Sequence Length:** 77 tokens
- **Output Dimensionality:** None dimensions
- **Similarity Function:** Cosine Similarity
### Model Sources
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
- **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
- **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
### Full Model Architecture
```
SentenceTransformer(
(0): CLIPModel()
)
```
## Usage
### Direct Usage (Sentence Transformers)
First install the Sentence Transformers library:
```bash
pip install -U sentence-transformers
```
Then you can load this model and run inference.
```python
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("WorkStation0/clip-finetuned-satellite-v.0.11")
# Run inference
sentences = [
"It's a mountainous area.it is white, brown and green .It's a piece of green mountains.it is a piece of green mountains .this is mountainous region .",
'Many aircraft are parked next to the terminals near the runways of an airport.Many aircraft are parked next to terminals near airstrips at an airport.Many planes are parked next to the terminals near the runways in an airport.many planes are parked next to terminals near runways at an airport.many planes are parked next to terminals near runways in an airport .',
'yellow ribbon beach is between green trees and dark green ocean with white waves.yellow ribbon beach lies between green trees and dark green ocean with white waves.Yellow ribbon beach is between green trees and dark green ocean with white waves.Yellow ribbon beach is between green trees and dark green ocean with white waves.yellow ribbon beach is between green trees and dark green ocean with white waves .',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 1024]
# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]
```
## Evaluation
### Metrics
#### Triplet
* Datasets: `clip-valid-triplet`, `clip-train-triplet` and `clip-test-triplet`
* Evaluated with [TripletEvaluator](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.TripletEvaluator)
| Metric | clip-valid-triplet | clip-train-triplet | clip-test-triplet |
|:--------------------|:-------------------|:-------------------|:------------------|
| **cosine_accuracy** | **0.9992** | **0.9997** | **0.9992** |
## Training Details
### Training Dataset
#### Unnamed Dataset
* Size: 6,113 training samples
* Columns: anchor, positive, and negative
* Approximate statistics based on the first 1000 samples:
| | anchor | positive | negative |
|:--------|:--------------------------------|:-----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|
| type | PIL.PngImagePlugin.PngImageFile | string | string |
| details |
| Many buildings and some green trees are located in an industrial area.there are many parking cars on the area next to the buildings in the industrial region.there are many cars parking on the region beside the buildings in the industrial region .many buildings and some green trees are located in an industrial area.many buildings and some green trees are in an industrial area . | It's a piece of white snow mountain.It's a piece of snow white mountain.It's a piece of white snow mountain.It's a piece of white snow mountain.it is a piece of white snow mountain . |
| | Many buildings are located in a commercial area.Many buildings are located in a commercial area.Many buildings are located in a commercial area.Many buildings are in a commercial area.many buildings are in a commercial area . | The mountain of yellow and green has a vein texture.the mountain of yellow and green has a vein texture.the mountain of yellow and green has a texture of vein .mountains with long and narrow ridges traverse in this range .it is a piece of irregular green mountains . |
| | There's a strong bridge over the river.There are many houses on both sides of the river.there are many houses on both sides of the river .There's a strong bridge over the river.there is a strong bridge over the river . | many small green spots are scattered in a piece of kaki nueland.Many small green spots are scattered in a piece of naked khaki.Many small green spots are scattered in a piece of khaki stripe.many small green spots are scattered in a piece of khaki bareland.many small green spots are scattered in a piece of khaki bareland . |
* Loss: [MultipleNegativesRankingLoss](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
```json
{
"scale": 20.0,
"similarity_fct": "cos_sim"
}
```
### Evaluation Dataset
#### Unnamed Dataset
* Size: 1,310 evaluation samples
* Columns: anchor, positive, and negative
* Approximate statistics based on the first 1000 samples:
| | anchor | positive | negative |
|:--------|:--------------------------------|:-----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|
| type | PIL.PngImagePlugin.PngImageFile | string | string |
| details | | Many trees are planted around the playground.There's a green football pitch on the red track.there's a green football field on the red track .a lot of trees are planted around the playground.a lot of trees are planted around the playground . | It's a piece of uneven kaki nueland.It's a piece of uneven naked khaki.It's a piece of irregular Kaki stripping.It's a piece of unequally brazen khaki.it is a piece of uneven khaki bareland . |
| | It's a big bridge and a few buildings with some grass.the roads are grey and the ground is brown .two parallel bridges on a black river are close to many green plants and several buildings.two parallel bridges on a black river are near many green plants and several buildings .this is a big bridge and some buildings with a little grass . | Cylinder storage tanks are built on two square concrete fields near some trees and a parking lot.Cylinder storage tanks are built on two square concrete grounds near some trees and a parking lot.cylinder storage tanks are built on two square concrete ground near some trees and a parking lot .these storage tanks are painted in different colors located next to the wood .many storage tanks are near some green trees . |
| | the lake with borders is surrounded by roads a parking lot and rows of houses.the lake with edges is surrounded by roads a parking lot and rows of houses.the lake with bylands is surrounded by roads a parking lot and rows of houses .green ponds sit in this resort surrounded by rows of red houses .some buildings and green trees are in a resort with several green ponds . | many storage tanks of different sizes are in a factory.Many storage tanks in different sizes are in a factory.Many storage tanks in different sizes are in a factory.many storage tanks in different sizes are in a factory.many storage tanks in different sizes are in a factory . |
* Loss: [MultipleNegativesRankingLoss](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
```json
{
"scale": 20.0,
"similarity_fct": "cos_sim"
}
```
### Training Hyperparameters
#### Non-Default Hyperparameters
- `eval_strategy`: epoch
- `per_device_train_batch_size`: 2
- `per_device_eval_batch_size`: 2
- `gradient_accumulation_steps`: 4
- `fp16`: True
- `dataloader_num_workers`: 2
- `load_best_model_at_end`: True
#### All Hyperparameters