image imagewidth (px) 64 64 |
|---|
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Bollywood Celebrity Faces Dataset
Dataset: VashuTheGreat2/bollywood_celeb_faces
Overview
The Bollywood Celebrity Faces Dataset contains facial images of popular Indian Bollywood celebrities. The dataset is designed for computer vision tasks such as:
- Face Recognition
- Face Classification
- Celebrity Identification
- Metric Learning / Embedding Training
All images are mapped to their corresponding celebrity names using a structured CSV file.
Dataset Structure
bollywood_celeb_faces/
│
├── images/
│ ├── img_0001.jpg
│ ├── img_0002.jpg
│ ├── ...
│
├── data.csv
└── README.md
data.csv Format
The data.csv file maps each image to the corresponding celebrity.
| image_path | name |
|---|---|
| images/img_0001.jpg | Shah_Rukh_Khan |
| images/img_0002.jpg | Deepika_Padukone |
| images/img_0003.jpg | Salman_Khan |
Columns:
- image_path → relative path to the image
- name → celebrity name label
Dataset Creation
This dataset was created by scraping publicly available images of Bollywood celebrities, inspired by the structure of the CelebA dataset. Images were collected and then organized with a CSV mapping file.
Steps involved:
- Scraping celebrity images from public sources.
- Cleaning and filtering corrupted images.
- Assigning labels to each image.
- Creating a CSV mapping file (
data.csv) for training pipelines.
Example Usage
Load Dataset
import pandas as pd
from PIL import Image
df = pd.read_csv("data.csv")
img_path = df.iloc[0]["image_path"]
label = df.iloc[0]["name"]
image = Image.open(img_path)
print(label)
PyTorch Example
import pandas as pd
from PIL import Image
from torch.utils.data import Dataset
class BollywoodFaces(Dataset):
def __init__(self, csv_file):
self.df = pd.read_csv(csv_file)
def __len__(self):
return len(self.df)
def __getitem__(self, idx):
img_path = self.df.iloc[idx]["image_path"]
label = self.df.iloc[idx]["name"]
image = Image.open(img_path).convert("RGB")
return image, label
Possible Use Cases
- Face Recognition research
- Celebrity face classification
- Deep learning model training
- Computer vision experiments
License
This dataset contains images of public figures collected from publicly available sources for research and educational purposes only.
Users should ensure compliance with applicable copyright and privacy laws when using this dataset.
Author
Created by Vansh Sharma (VashuTheGreat).
- Downloads last month
- 5,515