Datasets:
cls
string | custom_metrics
null | ytrue
list | ypred
list | confs
list | weights
null | ytrue_ids
list | ypred_ids
list | classes
list | missing
string |
---|---|---|---|---|---|---|---|---|---|
fiftyone.utils.eval.classification.ClassificationResults
| null |
[
"bo",
"bo",
"bo",
"bo",
"bo",
"bo",
"bo",
"bo",
"bo",
"bo",
"not_bo",
"not_bo",
"not_bo",
"not_bo",
"not_bo",
"not_bo",
"not_bo",
"not_bo",
"not_bo",
"not_bo",
"not_bo",
"not_bo",
"not_bo",
"not_bo",
"not_bo",
"not_bo",
"not_bo",
"not_bo",
"not_bo",
"not_bo"
] |
[
"bo",
"bo",
"bo",
"bo",
"bo",
"bo",
"not_bo",
"bo",
"bo",
"bo",
"not_bo",
"not_bo",
"not_bo",
"not_bo",
"not_bo",
"not_bo",
"not_bo",
"not_bo",
"not_bo",
"not_bo",
"not_bo",
"not_bo",
"not_bo",
"not_bo",
"not_bo",
"not_bo",
"not_bo",
"not_bo",
"not_bo",
"not_bo"
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | null |
[
"6874e8cd7463c421d9a3c0bb",
"6874e8cd7463c421d9a3c0bd",
"6874e8cd7463c421d9a3c0be",
"6874e8cd7463c421d9a3c0bf",
"6874e8cd7463c421d9a3c0c0",
"6874e8cd7463c421d9a3c0c1",
"6874e8cd7463c421d9a3c0c2",
"6874e8cd7463c421d9a3c0c3",
"6874e8cd7463c421d9a3c0c4",
"6874e8cd7463c421d9a3c0cd",
"6874e8cd7463c421d9a3c0ce",
"6874e8cd7463c421d9a3c0cf",
"6874e8cd7463c421d9a3c0d0",
"6874e8cd7463c421d9a3c0d1",
"6874e8cd7463c421d9a3c0d2",
"6874e8cd7463c421d9a3c0d3",
"6874e8cd7463c421d9a3c0d4",
"6874e8cd7463c421d9a3c0d5",
"6874e8cd7463c421d9a3c0d6",
"6874e8cd7463c421d9a3c0d7",
"6874e8cd7463c421d9a3c0d8",
"6874e8cd7463c421d9a3c0d9",
"6874e8cd7463c421d9a3c0da",
"6874e8cd7463c421d9a3c0db",
"6874e8cd7463c421d9a3c0dc",
"6874e8cd7463c421d9a3c0dd",
"6874e8cd7463c421d9a3c0de",
"6874e8cd7463c421d9a3c0df",
"6874e8cd7463c421d9a3c0e0",
"6874e8cd7463c421d9a3c0e1"
] |
[
"6874ea407463c421d9a3c4b1",
"6874ea407463c421d9a3c4b2",
"6874ea407463c421d9a3c4b3",
"6874ea407463c421d9a3c4b4",
"6874ea407463c421d9a3c4b5",
"6874ea407463c421d9a3c4b6",
"6874ea407463c421d9a3c4b7",
"6874ea407463c421d9a3c4b8",
"6874ea407463c421d9a3c4b9",
"6874ea407463c421d9a3c4ba",
"6874ea407463c421d9a3c4bb",
"6874ea407463c421d9a3c4bc",
"6874ea407463c421d9a3c4bd",
"6874ea407463c421d9a3c4be",
"6874ea407463c421d9a3c4bf",
"6874ea407463c421d9a3c4c0",
"6874ea407463c421d9a3c4c1",
"6874ea407463c421d9a3c4c2",
"6874ea407463c421d9a3c4c3",
"6874ea407463c421d9a3c4c4",
"6874ea407463c421d9a3c4c5",
"6874ea407463c421d9a3c4c6",
"6874ea407463c421d9a3c4c7",
"6874ea407463c421d9a3c4c8",
"6874ea407463c421d9a3c4c9",
"6874ea407463c421d9a3c4ca",
"6874ea407463c421d9a3c4cb",
"6874ea407463c421d9a3c4cc",
"6874ea407463c421d9a3c4cd",
"6874ea407463c421d9a3c4ce"
] |
[
"bo",
"not_bo"
] |
(none)
|
Dataset Card for bo-dataset
This is a FiftyOne dataset with 169 samples designed for binary classification of Bo (Barack Obama's Portuguese Water Dog) versus other pets.
Installation
If you haven't already, install FiftyOne:
pip install -U fiftyone
Usage
import fiftyone as fo
from fiftyone.utils.huggingface import load_from_hub
# Load the dataset
# Note: other available arguments include 'max_samples', etc
dataset = load_from_hub("Voxel51/bo_or_not")
# Launch the App
session = fo.launch_app(dataset)
Dataset Details
Dataset Description
This dataset contains images for binary classification between Bo (Barack Obama's Portuguese Water Dog) and other pets (cats and dogs). The dataset was created to demonstrate transfer learning techniques using a pre-trained VGG16 model. Bo was a Portuguese Water Dog who lived in the White House during Barack Obama's presidency.
- Curated by: Antonio Rueda-Toicen ([email protected])
- Language(s): en
- License: MIT
- Source code to produce the FiftyOne dataset: Colab Notebook
Dataset Sources
- Original Data Source: Presidential Doggy Door - Kaggle
- Tutorial Implementation: Google Colab Notebook
- Alternative Access: Google Drive
Uses
Direct Use
This dataset is intended for:
- Binary image classification tasks
- Transfer learning demonstrations
- Computer vision education and tutorials
- Experimenting with pre-trained models like VGG16
- Learning FiftyOne dataset management and visualization
Out-of-Scope Use
This dataset should not be used for:
- Production security systems
- Real-world pet identification systems
- Commercial applications without proper validation
- Any application requiring high accuracy pet identification
Dataset Structure
The dataset contains 169 images split across three sets:
- Training set: 50% of original training data
- Validation set: 50% of original training data
- Test set: Independent test images
Data Fields
filepath
: Path to the image fileground_truth
: Classification label ("bo" or "not_bo")tags
: Dataset split indicators ("train", "validation", "test")vgg16-imagenet-predictions
: Original VGG16 ImageNet predictionsvgg16-imagenet-embeddings
: Feature embeddings from VGG16fine_tuned_vgg16_prediction
: Fine-tuned model predictions (test set only)
Label Distribution
- bo: Images of Bo (Barack Obama's Portuguese Water Dog)
- not_bo: Images of other pets (cats and dogs)
Dataset Creation
Curation Rationale
This dataset was created to demonstrate transfer learning concepts using a real-world scenario where a computer vision system needs to identify a specific individual (Bo) among other similar animals. The task simulates a security application while providing an engaging educational example.
Source Data
Data Collection and Processing
The images were collected and organized into a binary classification structure:
- Images of Bo were labeled as "bo"
- Images of other pets (cats and dogs) were labeled as "not_bo"
- Data was split into training/validation and test sets
- Images were processed using standard computer vision preprocessing techniques
Data Augmentation
The training process includes augmentation techniques:
- Affine transformations (translation, scaling, rotation)
- Elastic deformations
- Perspective transformations
- Horizontal flipping
- Brightness and contrast adjustments
- Random grayscale conversion
Who are the source data producers?
The dataset was curated by Antonio Rueda-Toicen for educational purposes as part of FiftyOne documentation and tutorials.
Model Training Details
The dataset includes results from transfer learning using:
- Base Model: VGG16 pre-trained on ImageNet
- Architecture Modification: Replaced final classifier for binary classification
- Training Strategy: Froze base VGG16 layers, trained only new classifier layers
- Loss Function: Binary Cross Entropy with Logits
- Optimizer: Adam (lr=0.003)
- Training Epochs: 10 epochs with early stopping
Technical Implementation
Preprocessing Pipeline
Images are processed using:
- Conversion to RGB format
- Resizing to 256x256 pixels
- Center cropping to 224x224 pixels
- Normalization with ImageNet statistics (mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])
Evaluation Metrics
The model performance is evaluated using:
- Binary classification accuracy
- Confusion matrix
- Per-class precision and recall
- FiftyOne's built-in evaluation tools
Bias, Risks, and Limitations
Limitations
- Small dataset size (169 samples) limits generalization
- Limited to specific breeds and individuals
- May not generalize to other Portuguese Water Dogs
- Training data may not represent full diversity of pet appearances
- Designed for educational purposes, not production use
Potential Biases
- Dataset may be biased toward specific lighting conditions, angles, or image quality
- Limited representation of pet diversity
- Potential overfitting due to small dataset size
Recommendations
Users should be aware that this dataset is primarily educational and should not be used for production applications without significant additional validation and testing. The small size makes it unsuitable for robust real-world applications.
Citation
BibTeX:
@misc{rueda_toicen_2024_bo_dataset,
author = {Rueda-Toicen, Antonio},
title = {Bo or Not Bo: Binary Classification with Transfer Learning},
year = {2024},
url = {https://colab.research.google.com/drive/1XFoKgM_WQ9l2WgK6aS5GLFGc8uv0cdGB},
note = {FiftyOne educational dataset}
}
Dataset Card Authors
Antonio Rueda-Toicen ([email protected])
Dataset Card Contact
For questions about this dataset, please contact Antonio Rueda-Toicen at [email protected] or visit the FiftyOne documentation.
- Downloads last month
- 148