Downloads · 30 days
0
oeg/RoBERTa-CelebA-Sp
RoBERTa-CelebA-Sp is a text-to-image model from oeg. Use it when you need an image from a text prompt. The card lists the license as cc-by-nc-4.0.
- Language: Spanish - Data: CelebARoBERTaSp. - Architecture: roberta-base - - Paper: Information Processing and Management
Downloads · 30 days
0
Access
Public
Updated Feb 5, 2024
Repo size
1.4 GB
Likes
0
Public
Click a slice to open those files.
.bin1.4 GB · 100%
From the Hugging Face model README
In order to improve the RoBERTa-large-bne encoder performance, this model has been trained using the generated corpus (in this respository) and following the strategy of using a Siamese network together with the loss function of cosine similarity. The following steps were followed:
The total training time using the sentence-transformer library in Python was 42 days using all the available GPUs of the server, and with exclusive dedication.
A comparison was made between the Spearman's correlation for 1000 test sentences between the base model and our trained model. As can be seen in the following table, our model obtains better results (correlation closer to 1).
| Models | Spearman's correlation |
|---|---|
| RoBERTa-base-bne | 0.827176427 |
| RoBERTa-celebA-Sp | 0.999913276 |
Downloading the model results in a directory called roberta-large-bne-celebAEs-UNI that contains its main files. To make use of the model use the following code in Python:
from sentence_transformers import SentenceTransformer, InputExample, models, losses, util, evaluation
model_sbert = SentenceTransformer('roberta-large-bne-celebAEs-UNI')
caption = ['La mujer tiene pomulos altos. Su cabello es de color negro.
Tiene las cejas arqueadas y la boca ligeramente abierta.
La joven y atractiva mujer sonriente tiene mucho maquillaje.
Lleva aretes, collar y lapiz labial.']
vector = model_sbert.encode(captions)
print(vector)
As a result, the encoder will generate a numeric vector whose dimension is 1024.
>>$ print(vector)
>>$ [0.2,0.5,0.45,........0.9]
>>$ len(vector)
>>$ 1024
To see more detailed information about the implementation visit the following link.
This model is available under the CC BY-NC 4.0.
Citing: If you used RoBERTa+CelebA model in your work, please cite the paper publish in Information Processing and Management:
@article{YAURILOZANO2024103667,
title = {Generative Adversarial Networks for text-to-face synthesis & generation: A quantitative–qualitative analysis of Natural Language Processing encoders for Spanish},
journal = {Information Processing & Management},
volume = {61},
number = {3},
pages = {103667},
year = {2024},
issn = {0306-4573},
doi = {https://doi.org/10.1016/j.ipm.2024.103667},
url = {https://www.sciencedirect.com/science/article/pii/S030645732400027X},
author = {Eduardo Yauri-Lozano and Manuel Castillo-Cara and Luis Orozco-Barbosa and Raúl García-Castro}
}
Universidad Nacional de Ingeniería, Ontology Engineering Group, Universidad Politécnica de Madrid.
See the full list of contributors and more resources here.
<kbd><img src="https://www.uni.edu.pe/images/logos/logo_uni_2016.png" alt="Universidad Politécnica de Madrid" width="100"></kbd> <kbd><img src="https://raw.githubusercontent.com/oeg-upm/TINTO/main/assets/logo-oeg.png" alt="Ontology Engineering Group" width="100"></kbd> <kbd><img src="https://raw.githubusercontent.com/oeg-upm/TINTO/main/assets/logo-upm.png" alt="Universidad Politécnica de Madrid" width="100"></kbd>