13hbeltran commited on
Commit
254df43
·
verified ·
1 Parent(s): 7e35296

Update readme.md

Browse files
Files changed (1) hide show
  1. readme.md +55 -46
readme.md CHANGED
@@ -1,47 +1,56 @@
1
- Model Card: Vision Transformer (ViT) for Animal Image Classification
2
- Model Description
3
-
4
- This application uses a pretrained Vision Transformer (ViT) model from Hugging Face for animal image classification. Vision Transformers adapt the transformer architecture—originally developed for NLP tasks like BERT—to image data by processing images as patches rather than pixels.
5
-
6
- The model is pretrained on large-scale image datasets (such as ImageNet) and is used as-is for inference. Images are resized to 224×224 pixels, which matches the model’s expected input size. No additional fine-tuning was performed for this assignment.
7
-
8
- The goal of this project is to demonstrate how a pretrained computer vision model can be deployed as a simple interactive application that accepts an animal image and returns a predicted class.
9
-
10
- Intended Uses & Limitations
11
- Intended Uses
12
-
13
- Animal Image Classification:
14
- Classify images of animals using a pretrained vision model.
15
-
16
- Educational Demonstration:
17
- Showcase how Hugging Face models and Spaces can be used to build and deploy a simple ML application.
18
-
19
- Limitations
20
-
21
- The model was not fine-tuned specifically for animals, so predictions may be inaccurate for uncommon species or low-quality images.
22
-
23
- Results depend heavily on image clarity, lighting, and background.
24
-
25
- This application is intended for demonstration and learning, not production use.
26
-
27
- How to Use
28
-
29
- Upload an image of an animal using the interface.
30
- The application preprocesses the image and returns the model’s predicted label.
31
-
32
- Internally, the app uses the Hugging Face image-classification pipeline to handle preprocessing, inference, and output formatting.
33
-
34
- Training Data
35
-
36
- This project does not train a new model.
37
- It relies on a pretrained Vision Transformer that was originally trained on large, publicly available image datasets (e.g., ImageNet).
38
-
39
- Notes
40
-
41
- This Space is part of a coursework assignment focused on:
42
-
43
- Using pretrained models responsibly
44
-
45
- Understanding model inputs and outputs
46
-
 
 
 
 
 
 
 
 
 
47
  Deploying simple ML applications locally and via Hugging Face Spaces
 
1
+ ---
2
+ title: Animal Image Classification
3
+ sdk: gradio
4
+ sdk_version: 4.0
5
+ app_file: app.py
6
+ ---
7
+
8
+
9
+
10
+ Model Card: Vision Transformer (ViT) for Animal Image Classification
11
+ Model Description
12
+
13
+ This application uses a pretrained Vision Transformer (ViT) model from Hugging Face for animal image classification. Vision Transformers adapt the transformer architecture—originally developed for NLP tasks like BERT—to image data by processing images as patches rather than pixels.
14
+
15
+ The model is pretrained on large-scale image datasets (such as ImageNet) and is used as-is for inference. Images are resized to 224×224 pixels, which matches the model’s expected input size. No additional fine-tuning was performed for this assignment.
16
+
17
+ The goal of this project is to demonstrate how a pretrained computer vision model can be deployed as a simple interactive application that accepts an animal image and returns a predicted class.
18
+
19
+ Intended Uses & Limitations
20
+ Intended Uses
21
+
22
+ Animal Image Classification:
23
+ Classify images of animals using a pretrained vision model.
24
+
25
+ Educational Demonstration:
26
+ Showcase how Hugging Face models and Spaces can be used to build and deploy a simple ML application.
27
+
28
+ Limitations
29
+
30
+ The model was not fine-tuned specifically for animals, so predictions may be inaccurate for uncommon species or low-quality images.
31
+
32
+ Results depend heavily on image clarity, lighting, and background.
33
+
34
+ This application is intended for demonstration and learning, not production use.
35
+
36
+ How to Use
37
+
38
+ Upload an image of an animal using the interface.
39
+ The application preprocesses the image and returns the model’s predicted label.
40
+
41
+ Internally, the app uses the Hugging Face image-classification pipeline to handle preprocessing, inference, and output formatting.
42
+
43
+ Training Data
44
+
45
+ This project does not train a new model.
46
+ It relies on a pretrained Vision Transformer that was originally trained on large, publicly available image datasets (e.g., ImageNet).
47
+
48
+ Notes
49
+
50
+ This Space is part of a coursework assignment focused on:
51
+
52
+ Using pretrained models responsibly
53
+
54
+ Understanding model inputs and outputs
55
+
56
  Deploying simple ML applications locally and via Hugging Face Spaces