Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos in README and code comments #6

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed .DS_Store
Binary file not shown.
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,13 @@ repos:
"--convention=google",
"--match=^((?!test).)*$",
]

- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
name: codespell
description: Checks for common misspellings in text files.
entry: codespell -L fallow
language: python
types: [text]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ python -m "instageo.data.chip_creator" \

#### Launch Training

Before launching training, modify the path to chips and segementation maps in each split
Before launching training, modify the path to chips and segmentation maps in each split
```python
for split in ["train", "val", "test"]:
root_dir = "locust_breeding"
Expand Down
2 changes: 1 addition & 1 deletion instageo/data/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ By providing gelocated observation records containing longitude, latitude, date
- For each record, create a corresponding temporal series of HLS granules
- Create a set of all HLS granules
- Download the required bands from each granule
- Create and save chips and segementation maps
- Create and save chips and segmentation maps

Chip creator is particularly useful for geospatial image segmentation where large satellite images are segmented into smaller chips for training geospatial models (such as [Prithvi](https://huggingface.co/ibm-nasa-geospatial/Prithvi-100M)) using image segmentation objective.

Expand Down
2 changes: 1 addition & 1 deletion instageo/data/hls_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def get_hls_tile_info(

Retrieves a summary of all tiles required for a given dataset. The summary contains
the desired start and end date for each HLS tile. Also retrieves a list of queries
that can be used to retieve the tiles for each observation in `data`.
that can be used to retrieve the tiles for each observation in `data`.

Args:
data (pd.DataFrame): A dataframe containing observation records.
Expand Down
2 changes: 1 addition & 1 deletion instageo/model/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The InstaGeo Model component is designed for training, validation and inference
See `requirements.txt`

## Features
- Supports both classsification and regression tasks
- Supports both classification and regression tasks
- Accepts both temporal and non-temporal inputs
- Custom models with [Prithvi_100M](https://huggingface.co/ibm-nasa-geospatial/Prithvi-100M) backbone
- Training, Validation and Inference runs
Expand Down
2 changes: 1 addition & 1 deletion notebooks/InstaGeo_Demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@
"outputs": [],
"source": [
"import urllib\n",
"print(\"Password/Enpoint IP for localtunnel is:\",urllib.request.urlopen('https://ipv4.icanhazip.com').read().decode('utf8').strip(\"\\n\"))"
"print(\"Password/Endpoint IP for localtunnel is:\",urllib.request.urlopen('https://ipv4.icanhazip.com').read().decode('utf8').strip(\"\\n\"))"
]
},
{
Expand Down
Loading