Iris314 commited on
Commit
69ef03e
·
verified ·
1 Parent(s): 6c793bb

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +83 -15
README.md CHANGED
@@ -1,36 +1,104 @@
1
  ---
 
 
2
  tags:
3
  - automl
4
  - image-classification
5
  - autogluon
6
- - cnn
7
  - cmu-course
8
- language:
9
- - en
10
- license: mit
11
  datasets:
12
  - keerthikoganti/lipstick-image-dataset
13
  metrics:
14
- - accuracy
15
- - f1
16
  model-index:
17
- - name: nn_automl_model
18
  results:
19
  - task:
20
  type: image-classification
21
- name: Image Classification
22
  dataset:
23
  name: keerthikoganti/lipstick-image-dataset
24
- type: image
 
25
  metrics:
26
  - type: accuracy
27
- value: 0.97
28
  - type: f1
29
- value: 0.96
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  ---
31
 
32
- # Model Card for nn_automl_model (Lipstick Image Classifier)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
 
34
- ## Model Summary
35
- This model performs **binary classification** (Lipstick vs. No Lipstick) using CNN backbones (ResNet, EfficientNet) optimized with **AutoGluon Multimodal**.
36
- Trained on the `keerthikoganti/lipstick-image-dataset`.
 
1
  ---
2
+ language:
3
+ - en
4
  tags:
5
  - automl
6
  - image-classification
7
  - autogluon
 
8
  - cmu-course
 
 
 
9
  datasets:
10
  - keerthikoganti/lipstick-image-dataset
11
  metrics:
12
+ - type: accuracy
13
+ - type: f1
14
  model-index:
15
+ - name: Lipstick Detection (Neural Network AutoML)
16
  results:
17
  - task:
18
  type: image-classification
19
+ name: Binary Image Classification
20
  dataset:
21
  name: keerthikoganti/lipstick-image-dataset
22
+ type: classification
23
+ split: augmented
24
  metrics:
25
  - type: accuracy
26
+ value: 1.00
27
  - type: f1
28
+ value: 1.00
29
+ - task:
30
+ type: image-classification
31
+ name: Binary Image Classification
32
+ dataset:
33
+ name: keerthikoganti/lipstick-image-dataset
34
+ type: classification
35
+ split: original
36
+ metrics:
37
+ - type: accuracy
38
+ value: 0.93
39
+ - type: f1
40
+ value: 0.93
41
+ ---
42
+
43
+ # Model Card for Lipstick Detection (Neural Network AutoML)
44
+
45
+ This model performs **binary classification** of images into **lipstick** (1) vs. **no lipstick** (0).
46
+ It was trained with **AutoGluon Multimodal AutoML**, which automatically explored different **neural network backbones** (ResNet18, ResNet34, EfficientNet-B0) under a fixed budget with early stopping.
47
+ The best-performing backbone selected was **EfficientNet-B0**.
48
+
49
  ---
50
 
51
+ ## Model Details
52
+
53
+ ### Model Description
54
+ - **Developed by:** Xinxuan Tang (CMU)
55
+ - **Dataset curated by:** Keerthi Koganti (CMU)
56
+ - **Model type:** AutoML neural network (best = EfficientNet-B0)
57
+ - **Language(s):** N/A (image dataset)
58
+ - **Finetuned from:** `timm/efficientnet_b0` pretrained weights
59
+
60
+ ### Model Sources
61
+ - **Repository:** [Hugging Face Model Repo](https://huggingface.co/)
62
+ - **Dataset:** [keerthikoganti/lipstick-image-dataset](https://huggingface.co/datasets/keerthikoganti/lipstick-image-dataset)
63
+
64
+ ---
65
+
66
+ ## Uses
67
+
68
+ ### Direct Use
69
+ - Educational practice in **binary image classification**.
70
+ - Experimenting with AutoML search over neural architectures.
71
+
72
+ ### Downstream Use
73
+ - Could be adapted for **teaching transfer learning** workflows.
74
+
75
+ ### Out-of-Scope Use
76
+ - **Not suitable for real-world cosmetics applications**.
77
+ - Not for deployment in automated decision-making or safety-critical contexts.
78
+
79
+ ---
80
+
81
+ ## Bias, Risks, and Limitations
82
+
83
+ - **Small dataset**: limited original images, heavy reliance on synthetic augmentation.
84
+ - **Domain bias**: images are from a single source/product and background setup.
85
+ - **Synthetic augmentation**: does not capture real-world variation in lighting, product types, or diversity of appearances.
86
+
87
+ ### Recommendations
88
+ Use primarily for **teaching and demonstration** purposes.
89
+ Do not generalize conclusions beyond this dataset.
90
+
91
+ ---
92
+
93
+ ## How to Get Started with the Model
94
+
95
+ ```python
96
+ from autogluon.multimodal import MultiModalPredictor
97
+ import pandas as pd
98
+
99
+ # Load trained predictor
100
+ predictor = MultiModalPredictor.load("autogluon_efficientnet_b0/")
101
 
102
+ # Run inference on a new image
103
+ test_data = pd.DataFrame([{"image": "example.jpg"}])
104
+ print(predictor.predict(test_data))