Update README.md
Browse files
README.md
CHANGED
|
@@ -57,196 +57,42 @@ model-index:
|
|
| 57 |
|
| 58 |
# Model Card for baseline
|
| 59 |
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
|
| 64 |
## Model Details
|
| 65 |
|
| 66 |
-
|
| 67 |
|
| 68 |
-
|
| 69 |
|
| 70 |
-
|
| 71 |
|
| 72 |
-
- **Developed by:**
|
| 73 |
-
- **Shared by [optional]:** [More Information Needed]
|
| 74 |
-
- **Model type:** [More Information Needed]
|
| 75 |
-
- **Language(s) (NLP):** en
|
| 76 |
- **License:** mit
|
| 77 |
-
- **
|
| 78 |
|
| 79 |
### Model Sources [optional]
|
| 80 |
|
| 81 |
<!-- Provide the basic links for the model. -->
|
| 82 |
|
| 83 |
-
- **Repository:**
|
| 84 |
-
- **Paper
|
| 85 |
-
- **
|
| 86 |
-
|
| 87 |
-
## Uses
|
| 88 |
-
|
| 89 |
-
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 90 |
-
|
| 91 |
-
### Direct Use
|
| 92 |
-
|
| 93 |
-
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 94 |
-
|
| 95 |
-
[More Information Needed]
|
| 96 |
-
|
| 97 |
-
### Downstream Use [optional]
|
| 98 |
-
|
| 99 |
-
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 100 |
-
|
| 101 |
-
[More Information Needed]
|
| 102 |
-
|
| 103 |
-
### Out-of-Scope Use
|
| 104 |
-
|
| 105 |
-
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 106 |
-
|
| 107 |
-
[More Information Needed]
|
| 108 |
-
|
| 109 |
-
## Bias, Risks, and Limitations
|
| 110 |
-
|
| 111 |
-
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 112 |
-
|
| 113 |
-
[More Information Needed]
|
| 114 |
-
|
| 115 |
-
### Recommendations
|
| 116 |
-
|
| 117 |
-
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 118 |
-
|
| 119 |
-
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 120 |
-
|
| 121 |
-
## How to Get Started with the Model
|
| 122 |
-
|
| 123 |
-
Use the code below to get started with the model.
|
| 124 |
-
|
| 125 |
-
[More Information Needed]
|
| 126 |
-
|
| 127 |
-
## Training Details
|
| 128 |
-
|
| 129 |
-
### Training Data
|
| 130 |
-
|
| 131 |
-
<!-- This should link to a Data 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. -->
|
| 132 |
-
|
| 133 |
-
[More Information Needed]
|
| 134 |
-
|
| 135 |
-
### Training Procedure
|
| 136 |
-
|
| 137 |
-
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 138 |
-
|
| 139 |
-
#### Preprocessing [optional]
|
| 140 |
-
|
| 141 |
-
[More Information Needed]
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
#### Training Hyperparameters
|
| 145 |
-
|
| 146 |
-
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 147 |
-
|
| 148 |
-
#### Speeds, Sizes, Times [optional]
|
| 149 |
-
|
| 150 |
-
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 151 |
-
|
| 152 |
-
[More Information Needed]
|
| 153 |
-
|
| 154 |
-
## Evaluation
|
| 155 |
-
|
| 156 |
-
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 157 |
-
|
| 158 |
-
### Testing Data, Factors & Metrics
|
| 159 |
-
|
| 160 |
-
#### Testing Data
|
| 161 |
-
|
| 162 |
-
<!-- This should link to a Data Card if possible. -->
|
| 163 |
-
|
| 164 |
-
[More Information Needed]
|
| 165 |
-
|
| 166 |
-
#### Factors
|
| 167 |
-
|
| 168 |
-
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 169 |
-
|
| 170 |
-
[More Information Needed]
|
| 171 |
-
|
| 172 |
-
#### Metrics
|
| 173 |
-
|
| 174 |
-
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 175 |
-
|
| 176 |
-
[More Information Needed]
|
| 177 |
-
|
| 178 |
-
### Results
|
| 179 |
-
|
| 180 |
-
[More Information Needed]
|
| 181 |
-
|
| 182 |
-
#### Summary
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
## Model Examination [optional]
|
| 187 |
-
|
| 188 |
-
<!-- Relevant interpretability work for the model goes here -->
|
| 189 |
-
|
| 190 |
-
[More Information Needed]
|
| 191 |
-
|
| 192 |
-
## Environmental Impact
|
| 193 |
-
|
| 194 |
-
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 195 |
-
|
| 196 |
-
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).
|
| 197 |
-
|
| 198 |
-
- **Hardware Type:** [More Information Needed]
|
| 199 |
-
- **Hours used:** [More Information Needed]
|
| 200 |
-
- **Cloud Provider:** [More Information Needed]
|
| 201 |
-
- **Compute Region:** [More Information Needed]
|
| 202 |
-
- **Carbon Emitted:** [More Information Needed]
|
| 203 |
-
|
| 204 |
-
## Technical Specifications [optional]
|
| 205 |
-
|
| 206 |
-
### Model Architecture and Objective
|
| 207 |
-
|
| 208 |
-
[More Information Needed]
|
| 209 |
-
|
| 210 |
-
### Compute Infrastructure
|
| 211 |
-
|
| 212 |
-
[More Information Needed]
|
| 213 |
-
|
| 214 |
-
#### Hardware
|
| 215 |
-
|
| 216 |
-
[More Information Needed]
|
| 217 |
-
|
| 218 |
-
#### Software
|
| 219 |
-
|
| 220 |
-
[More Information Needed]
|
| 221 |
-
|
| 222 |
-
## Citation [optional]
|
| 223 |
-
|
| 224 |
-
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 225 |
-
|
| 226 |
-
**BibTeX:**
|
| 227 |
-
|
| 228 |
-
[More Information Needed]
|
| 229 |
-
|
| 230 |
-
**APA:**
|
| 231 |
-
|
| 232 |
-
[More Information Needed]
|
| 233 |
-
|
| 234 |
-
## Glossary [optional]
|
| 235 |
-
|
| 236 |
-
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 237 |
-
|
| 238 |
-
[More Information Needed]
|
| 239 |
-
|
| 240 |
-
## More Information [optional]
|
| 241 |
-
|
| 242 |
-
[More Information Needed]
|
| 243 |
-
|
| 244 |
-
## Model Card Authors [optional]
|
| 245 |
|
| 246 |
-
|
| 247 |
|
| 248 |
-
|
| 249 |
|
| 250 |
-
|
| 251 |
|
|
|
|
|
|
|
| 252 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
# Model Card for baseline
|
| 59 |
|
| 60 |
+
Geolocation baseline on OSV-5M. More details to be released upon publication (\<tbr\>).
|
| 61 |
+
Everything is based on the OSV-5M benchmark dataset.
|
|
|
|
| 62 |
|
| 63 |
## Model Details
|
| 64 |
|
| 65 |
+
\<tbr\>
|
| 66 |
|
| 67 |
+
### Model Description
|
| 68 |
|
| 69 |
+
\<tbr\>
|
| 70 |
|
| 71 |
+
- **Developed by:** <\<tbr\>>
|
|
|
|
|
|
|
|
|
|
| 72 |
- **License:** mit
|
| 73 |
+
- **Based on hf models:** \<tbr\>
|
| 74 |
|
| 75 |
### Model Sources [optional]
|
| 76 |
|
| 77 |
<!-- Provide the basic links for the model. -->
|
| 78 |
|
| 79 |
+
- **Repository:** \<tbr\>
|
| 80 |
+
- **Paper:** \<tbr\>
|
| 81 |
+
- **Human Evaluation** \<tbr\>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
|
| 83 |
+
## Usage
|
| 84 |
|
| 85 |
+
The main purpose of this model is academic usage. We provide a hugging face repo both to facilitate accessing and run inference to our model.
|
| 86 |
|
| 87 |
+
### Example usage
|
| 88 |
|
| 89 |
+
First download the repo `!git clone <tbr>`.
|
| 90 |
+
Then from any script whose `cwd` is the repos main directory (`cd <tbr>`) run:
|
| 91 |
|
| 92 |
+
```python
|
| 93 |
+
from PIL import Image
|
| 94 |
+
from huggingface import Geolocalizer
|
| 95 |
+
Geolocalizer.from_pretrained('osv5m/baseline')
|
| 96 |
+
img = Image.open('.media/examples/img1.jpeg')
|
| 97 |
+
gps = geoloc(geoloc.transform(image).unsqueeze(0)) # B, 2 (lat, lon - tensor)
|
| 98 |
+
```
|