Image Classification
Transformers
Safetensors
cetaceanet
biology
biodiversity
custom_code
MalloryWittwerEPFL commited on
Commit
ff50430
·
verified ·
1 Parent(s): 4c83cf7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +55 -159
README.md CHANGED
@@ -23,187 +23,83 @@ We provide a model for classifying whale species from images of their tails and
23
 
24
  ## Model Details
25
 
26
- The model returns the three most probable cetacean species identified in the input image.
27
 
28
  ### Model Description
29
 
30
  This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
31
 
32
- - **Developed by:** [More Information Needed]
33
- - **Funded by [optional]:** [More Information Needed]
34
- - **Shared by [optional]:** [More Information Needed]
35
  - **Model type:** EfficientNet
36
- - **Finetuned from model [optional]:** [More Information Needed]
37
 
38
- ### Model Sources [optional]
39
 
40
- - **Repository:** [More Information Needed]
41
- - **Paper [optional]:** [More Information Needed]
42
- - **Demo [optional]:** [More Information Needed]
43
 
44
  ## Uses
45
 
46
  This model is intended for research use cases. It is intended to be fine-tuned on new data gathered by research institutions around the World.
47
 
48
- <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
49
-
50
- [More Information Needed]
51
-
52
- ### Downstream Use [optional]
53
 
54
  We think that an interesting downstream use case would be identifying whale IDs based on our model (and future extensions of it).
55
 
56
- <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
57
-
58
- [More Information Needed]
59
-
60
  ### Out-of-Scope Use
61
 
62
  This model is not intended to facilitate marine tourism or the exploitation of cetaceans in the wild and marine wildlife.
63
 
64
- <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
65
-
66
- [More Information Needed]
67
-
68
- ## Bias, Risks, and Limitations
69
-
70
- <!-- This section is meant to convey both technical and sociotechnical limitations. -->
71
-
72
- [More Information Needed]
73
-
74
- ### Recommendations
75
-
76
- <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
77
-
78
- Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
79
-
80
  ## How to Get Started with the Model
81
 
82
- Use the code below to get started with the model.
83
-
84
- [More Information Needed]
85
-
86
- ## Training Details
87
-
88
- ### Training Data
89
-
90
- <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
91
-
92
- [More Information Needed]
93
-
94
- ### Training Procedure
95
-
96
- <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
97
-
98
- #### Preprocessing [optional]
99
-
100
- [More Information Needed]
101
-
102
-
103
- #### Training Hyperparameters
104
-
105
- - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
106
-
107
- #### Speeds, Sizes, Times [optional]
108
-
109
- <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
110
-
111
- [More Information Needed]
112
-
113
- ## Evaluation
114
-
115
- <!-- This section describes the evaluation protocols and provides the results. -->
116
-
117
- ### Testing Data, Factors & Metrics
118
-
119
- #### Testing Data
120
-
121
- <!-- This should link to a Dataset Card if possible. -->
122
-
123
- [More Information Needed]
124
-
125
- #### Factors
126
-
127
- <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
128
-
129
- [More Information Needed]
130
 
131
- #### Metrics
 
 
132
 
133
- <!-- These are the evaluation metrics being used, ideally with a description of why. -->
134
-
135
- [More Information Needed]
136
-
137
- ### Results
138
-
139
- [More Information Needed]
140
-
141
- #### Summary
142
-
143
-
144
-
145
- ## Model Examination [optional]
146
-
147
- <!-- Relevant interpretability work for the model goes here -->
148
-
149
- [More Information Needed]
150
-
151
- ## Environmental Impact
152
-
153
- <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
154
-
155
- Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
156
-
157
- - **Hardware Type:** [More Information Needed]
158
- - **Hours used:** [More Information Needed]
159
- - **Cloud Provider:** [More Information Needed]
160
- - **Compute Region:** [More Information Needed]
161
- - **Carbon Emitted:** [More Information Needed]
162
-
163
- ## Technical Specifications [optional]
164
-
165
- ### Model Architecture and Objective
166
-
167
- [More Information Needed]
168
-
169
- ### Compute Infrastructure
170
-
171
- [More Information Needed]
172
-
173
- #### Hardware
174
-
175
- [More Information Needed]
176
-
177
- #### Software
178
-
179
- [More Information Needed]
180
-
181
- ## Citation [optional]
182
-
183
- <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
184
-
185
- **BibTeX:**
186
-
187
- [More Information Needed]
188
-
189
- **APA:**
190
-
191
- [More Information Needed]
192
-
193
- ## Glossary [optional]
194
-
195
- <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
196
-
197
- [More Information Needed]
198
-
199
- ## More Information [optional]
200
-
201
- [More Information Needed]
202
-
203
- ## Model Card Authors [optional]
204
-
205
- [More Information Needed]
206
-
207
- ## Model Card Contact
208
 
209
- [More Information Needed]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
 
24
  ## Model Details
25
 
26
+ The model takes as input a natural image of a cetacean and returns the three most probable cetacean species identified in this image.
27
 
28
  ### Model Description
29
 
30
  This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
31
 
32
+ - **Developed by:** HappyWhale
33
+ - **Shared by [optional]:** The Saving-Willy organization
 
34
  - **Model type:** EfficientNet
 
35
 
36
+ ### Model Sources
37
 
38
+ - **Repository:** https://github.com/knshnb/kaggle-happywhale-1st-place
39
+ - **Paper:** https://besjournals.onlinelibrary.wiley.com/doi/10.1111/2041-210X.14167
 
40
 
41
  ## Uses
42
 
43
  This model is intended for research use cases. It is intended to be fine-tuned on new data gathered by research institutions around the World.
44
 
45
+ ### Downstream Use
 
 
 
 
46
 
47
  We think that an interesting downstream use case would be identifying whale IDs based on our model (and future extensions of it).
48
 
 
 
 
 
49
  ### Out-of-Scope Use
50
 
51
  This model is not intended to facilitate marine tourism or the exploitation of cetaceans in the wild and marine wildlife.
52
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
  ## How to Get Started with the Model
54
 
55
+ Install the necessary libraries to run our model (`transformers` and the extra requirements.txt):
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
 
57
+ ```
58
+ pip install requirements.txt
59
+ ```
60
 
61
+ Use the code below to get started with the model.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62
 
63
+ ```
64
+ import cv2
65
+ from transformers import AutoModelForImageClassification
66
+
67
+ cetacean_classifier = AutoModelForImageClassification.from_pretrained("Saving-Willy/cetacean-classifier", trust_remote_code=True)
68
+ img = cv2.imread("tail.jpg")
69
+ predictions = cetacean_classifier(img)
70
+ ```
71
+
72
+ ## Training and Evaluation Details
73
+
74
+ To learn more about how the model was trained and evaluated, see [1st Place Solution of Kaggle Happywhale Competition](https://github.com/knshnb/kaggle-happywhale-1st-place).
75
+
76
+ ## Citation
77
+
78
+ If you use this model in your research, please cite:
79
+
80
+ the original model authors:
81
+
82
+ ```
83
+ @article{patton2023deep,
84
+ title={A deep learning approach to photo--identification demonstrates high performance on two dozen cetacean species},
85
+ author={Patton, Philip T and Cheeseman, Ted and Abe, Kenshin and Yamaguchi, Taiki and Reade, Walter and Southerland, Ken and Howard, Addison and Oleson, Erin M and Allen, Jason B and Ashe, Erin and others},
86
+ journal={Methods in ecology and evolution},
87
+ volume={14},
88
+ number={10},
89
+ pages={2611--2625},
90
+ year={2023},
91
+ publisher={Wiley Online Library}
92
+ }
93
+ ```
94
+
95
+ the HappyWhale project:
96
+
97
+ ```
98
+ @misc{happy-whale-and-dolphin,
99
+ author = {Ted Cheeseman and Ken Southerland and Walter Reade and Addison Howard},
100
+ title = {Happywhale - Whale and Dolphin Identification},
101
+ year = {2022},
102
+ howpublished = {\url{https://kaggle.com/competitions/happy-whale-and-dolphin}},
103
+ note = {Kaggle}
104
+ }
105
+ ```