Downloads · 30 days
8
24% of all-time downloads
aimhkimi74/Bert-Model-living-room
Bert-Model-living-room is a text classification model from aimhkimi74. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
This is a fine-tuned BERT model for interior design prompt validation and style classification. It was developed as part of my Final Year Project: Text-to-Image Interior Design Generator with Generative AI Assistance.
Downloads · 30 days
8
24% of all-time downloads
All-time downloads
34
Public
Parameters
109M
876 MB on disk
Likes
0
Public
Click a slice to open those files.
.bin438 MB · 50%
From the Hugging Face model README
This is a fine-tuned BERT model for interior design prompt validation and style classification. It was developed as part of my Final Year Project: Text-to-Image Interior Design Generator with Generative AI Assistance.
The model supports:
✅ Prompt Validation – distinguish valid vs. invalid design prompts
🏷️ Style Classification – classify valid prompts into 7 living room design styles:
Base model: bert-base-uncased
Library: Transformers (PyTorch)
Trained with: custom dataset of interior design prompts
Labels mapping:
{
"id2label": {
"0": "Modern",
"1": "Scandinavian",
"2": "Rustic",
"3": "Industrial",
"4": "Traditional",
"5": "Mid-Century Modern",
"6": "Coastal"
},
"label2id": {
"Modern": 0,
"Scandinavian": 1,
"Rustic": 2,
"Industrial": 3,
"Traditional": 4,
"Mid-Century Modern": 5,
"Coastal": 6
}
}
from transformers import BertTokenizer, BertForSequenceClassification
import torch
# Load model from Hugging Face Hub
tokenizer = BertTokenizer.from_pretrained("aimhkimi74/Bert-Model-living-room")
model = BertForSequenceClassification.from_pretrained("aimhkimi74/Bert-Model-living-room")
# Example prompt
text = "A modern living room with a gray sofa and wooden floor."
inputs = tokenizer(text, return_tensors="pt")
outputs = model(**inputs)
pred = torch.argmax(outputs.logits, dim=1)
# Map prediction to style
label_map = {
0: "Modern",
1: "Scandinavian",
2: "Rustic",
3: "Industrial",
4: "Traditional",
5: "Mid-Century Modern",
6: "Coastal"
}
print("Predicted Style:", label_map[pred.item()])
This model is released under the MIT License.