Commit
·
cd82a57
1
Parent(s):
c35a712
Update README.md
Browse files
README.md
CHANGED
|
@@ -33,6 +33,18 @@ In this context, the total training time lasted 7 hours working with all CPUs at
|
|
| 33 |
As a result, it generates a _bin_ extension file which can be downloaded from this repository.
|
| 34 |
|
| 35 |
## How to use
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
## Licensing information
|
| 38 |
This model is available under the [Apache License 2.0.](https://www.apache.org/licenses/LICENSE-2.0)
|
|
|
|
| 33 |
As a result, it generates a _bin_ extension file which can be downloaded from this repository.
|
| 34 |
|
| 35 |
## How to use
|
| 36 |
+
Download the model, as a result there is a **sent2vec_celebAEs-UNI.bin** file which will be loaded using the _sent2vec_ library in Python as follows:
|
| 37 |
+
|
| 38 |
+
```python
|
| 39 |
+
import sent2vec
|
| 40 |
+
Model_path="sent2vec_celebAEs-UNI.bin"
|
| 41 |
+
s2vmodel = sent2vec.Sent2vecModel()
|
| 42 |
+
s2vmodel.load_model(Model_path)
|
| 43 |
+
caption = """El hombre luce una sombra a las 5 en punto. Su cabello es de color negro. Tiene una nariz grande con cejas tupidas. El hombre se ve atractivo"""
|
| 44 |
+
vector = s2vmodel.embed_sentence(caption)
|
| 45 |
+
print(vector)
|
| 46 |
+
```
|
| 47 |
+
To see detailed information on the use of the trained model, enter the [following link](https://github.com/eduar03yauri/DCGAN-text2face-forSpanish/blob/main/Data/encoder-models/Sent2vec_model_trained.md)
|
| 48 |
|
| 49 |
## Licensing information
|
| 50 |
This model is available under the [Apache License 2.0.](https://www.apache.org/licenses/LICENSE-2.0)
|