terratorch


Nameterratorch JSON
Version 0.99.3 PyPI version JSON
download
home_pageNone
SummaryTerraTorch - A model training toolkit for geospatial tasks
upload_time2024-09-11 12:25:36
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseApache License, Version 2.0
keywords fine-tuning geospatial foundation models artificial intelligence
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # TerraTorch

:book: [Documentation](https://IBM.github.io/terratorch/)

## Overview
TerraTorch is a library based on [PyTorch Lightning](https://lightning.ai/docs/pytorch/stable/) and the [TorchGeo](https://github.com/microsoft/torchgeo) domain library
for geospatial data. 

TerraTorch’s main purpose is to provide a flexible fine-tuning framework for Geospatial Foundation Models, which can be interacted with at different abstraction levels.

The library provides:

- Easy access to open source pre-trained Geospatial Foundation Model backbones (e.g., [Prithvi](https://huggingface.co/ibm-nasa-geospatial/Prithvi-100M), [SatMAE](https://sustainlab-group.github.io/SatMAE/) and [ScaleMAE](https://github.com/bair-climate-initiative/scale-mae), other backbones available in the [timm](https://github.com/huggingface/pytorch-image-models) (Pytorch image models) or [SMP](https://github.com/qubvel/segmentation_models.pytorch) (Pytorch Segmentation models with pre-training backbones) packages, as well as fine-tuned models such as [granite-geospatial-biomass](https://huggingface.co/ibm-granite/granite-geospatial-biomass)
- Flexible trainers for Image Segmentation, Classification and Pixel Wise Regression fine-tuning tasks
- Launching of fine-tuning tasks through flexible configuration files

## Install
### Pip
In order to use th file `pyproject.toml` it is necessary to guarantee `pip>=21.8`. If necessary upgrade `pip` using `python -m pip install --upgrade pip`. 

For a stable point-release, use `pip install terratorch`. 
If you prefer to get the most recent version of the main branch, install the library with `pip install git+https://github.com/IBM/terratorch.git`.

Another alternative is to install using [pipx](https://github.com/pypa/pipx) via `pipx install terratorch`, which creates an isolated environment and allows the user to run the application as 
a common CLI tool, with no need of installing dependencies or activating environments. 

TerraTorch requires gdal to be installed, which can be quite a complex process. If you don't have GDAL set up on your system, we reccomend using a conda environment and installing it with `conda install -c conda-forge gdal`.

To install as a developer (e.g. to extend the library) clone this repo, install dependencies using `pip install -r requirements/required.txt -r requirements/dev.txt` and run `pip install -e .`

## Quick start

To get started, check out the [quick start guide](https://ibm.github.io/terratorch/quick_start)

## For developers

Check out the [architecture overview](https://ibm.github.io/terratorch/architecture)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "terratorch",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "fine-tuning, geospatial foundation models, artificial intelligence",
    "author": null,
    "author_email": "Carlos Gomes <carlos.gomes@ibm.com>, Joao Lucas de Sousa Almeida <joao.lucas.sousa.almeida@ibm.com>",
    "download_url": "https://files.pythonhosted.org/packages/54/71/2dd13b1405d2d70851570340feff2622e62d2b702425cd1c2f6dcdb906d1/terratorch-0.99.3.tar.gz",
    "platform": null,
    "description": "# TerraTorch\n\n:book: [Documentation](https://IBM.github.io/terratorch/)\n\n## Overview\nTerraTorch is a library based on [PyTorch Lightning](https://lightning.ai/docs/pytorch/stable/) and the [TorchGeo](https://github.com/microsoft/torchgeo) domain library\nfor geospatial data. \n\nTerraTorch\u2019s main purpose is to provide a flexible fine-tuning framework for Geospatial Foundation Models, which can be interacted with at different abstraction levels.\n\nThe library provides:\n\n- Easy access to open source pre-trained Geospatial Foundation Model backbones (e.g., [Prithvi](https://huggingface.co/ibm-nasa-geospatial/Prithvi-100M), [SatMAE](https://sustainlab-group.github.io/SatMAE/) and [ScaleMAE](https://github.com/bair-climate-initiative/scale-mae), other backbones available in the [timm](https://github.com/huggingface/pytorch-image-models)\u00a0(Pytorch image models) or\u00a0[SMP](https://github.com/qubvel/segmentation_models.pytorch) (Pytorch Segmentation models with pre-training backbones)\u00a0packages, as well as fine-tuned models such as [granite-geospatial-biomass](https://huggingface.co/ibm-granite/granite-geospatial-biomass)\n- Flexible trainers for Image Segmentation, Classification and Pixel Wise Regression fine-tuning tasks\n- Launching of fine-tuning tasks through flexible configuration files\n\n## Install\n### Pip\nIn order to use th file `pyproject.toml` it is necessary to guarantee `pip>=21.8`. If necessary upgrade `pip` using `python -m pip install --upgrade pip`. \n\nFor a stable point-release, use `pip install terratorch`. \nIf you prefer to get the most recent version of the main branch, install the library with `pip install git+https://github.com/IBM/terratorch.git`.\n\nAnother alternative is to install using [pipx](https://github.com/pypa/pipx) via `pipx install terratorch`, which creates an isolated environment and allows the user to run the application as \na common CLI tool, with no need of installing dependencies or activating environments. \n\nTerraTorch requires gdal to be installed, which can be quite a complex process. If you don't have GDAL set up on your system, we reccomend using a conda environment and installing it with `conda install -c conda-forge gdal`.\n\nTo install as a developer (e.g. to extend the library) clone this repo, install dependencies using `pip install -r requirements/required.txt -r requirements/dev.txt` and run `pip install -e .`\n\n## Quick start\n\nTo get started, check out the [quick start guide](https://ibm.github.io/terratorch/quick_start)\n\n## For developers\n\nCheck out the [architecture overview](https://ibm.github.io/terratorch/architecture)\n",
    "bugtrack_url": null,
    "license": "Apache License, Version 2.0",
    "summary": "TerraTorch - A model training toolkit for geospatial tasks",
    "version": "0.99.3",
    "project_urls": {
        "Documentation": "https://github.com/IBM/terratorch#readme",
        "Issues": "https://github.com/IBM/terratorch/issues",
        "Source": "https://github.com/IBM/terratorch"
    },
    "split_keywords": [
        "fine-tuning",
        " geospatial foundation models",
        " artificial intelligence"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4a4ba207e3bfe6f895eb3c280052cc53c77006d23190e2e838ebcbd7edcd7018",
                "md5": "48532e42138d67abdaed30433c6caa19",
                "sha256": "58564e3d642e1f1033956dd9711ecf881d9dcdfa1e5c8f509d28605f9d65ee0b"
            },
            "downloads": -1,
            "filename": "terratorch-0.99.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "48532e42138d67abdaed30433c6caa19",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 152049,
            "upload_time": "2024-09-11T12:25:33",
            "upload_time_iso_8601": "2024-09-11T12:25:33.952040Z",
            "url": "https://files.pythonhosted.org/packages/4a/4b/a207e3bfe6f895eb3c280052cc53c77006d23190e2e838ebcbd7edcd7018/terratorch-0.99.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "54712dd13b1405d2d70851570340feff2622e62d2b702425cd1c2f6dcdb906d1",
                "md5": "118993ff053c69883718834ce53ee48f",
                "sha256": "a9c058b02b6542b9d6cc06d3b1ec4788379d57762e532ed8c12e2e7588f8ad4b"
            },
            "downloads": -1,
            "filename": "terratorch-0.99.3.tar.gz",
            "has_sig": false,
            "md5_digest": "118993ff053c69883718834ce53ee48f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 92998,
            "upload_time": "2024-09-11T12:25:36",
            "upload_time_iso_8601": "2024-09-11T12:25:36.571099Z",
            "url": "https://files.pythonhosted.org/packages/54/71/2dd13b1405d2d70851570340feff2622e62d2b702425cd1c2f6dcdb906d1/terratorch-0.99.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-11 12:25:36",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "IBM",
    "github_project": "terratorch#readme",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "terratorch"
}
        
Elapsed time: 1.07771s