seisbench


Nameseisbench JSON
Version 0.7.0 PyPI version JSON
download
home_pageNone
SummaryThe seismological machine learning benchmark collection
upload_time2024-04-22 11:14:39
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseGPLv3
keywords seismology machine learning signal processing earthquake
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <p align="center">
  <img src="https://raw.githubusercontent.com/seisbench/seisbench/main/docs/_static/seisbench_logo_subtitle_outlined.svg" />
</p>

---

[![PyPI - License](https://img.shields.io/pypi/l/seisbench)](https://github.com/seisbench/seisbench/blob/main/LICENSE)
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/seisbench/seisbench/main_push.yml?branch=main)](https://github.com/seisbench/seisbench)
[![Read the Docs](https://img.shields.io/readthedocs/seisbench)](https://seisbench.readthedocs.io/en/latest/)
[![PyPI](https://img.shields.io/pypi/v/seisbench)](https://pypi.org/project/seisbench/)
[![Python 3.9](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/downloads/release/python-390/)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5568813.svg)](https://doi.org/10.5281/zenodo.5568813)

The Seismology Benchmark collection (*SeisBench*) is an open-source python toolbox for
machine learning in seismology.
It provides a unified API for accessing seismic datasets and both training and applying machine learning algorithms to seismic data.
SeisBench has been built to reduce the overhead when applying or developing machine learning techniques for seismological tasks.

## Getting started

SeisBench offers three core modules, `data`, `models`, and `generate`.
`data` provides access to benchmark datasets and offers functionality for loading datasets.
`models` offers a collection of machine learning models for seismology.
You can easily create models, load pretrained models or train models on any dataset.
`generate` contains tools for building data generation pipelines.
They bridge the gap between `data` and `models`.

The easiest way of getting started is through our colab notebooks.

| Examples                                         |  |
|--------------------------------------------------|---|
| Dataset basics                                   | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/seisbench/seisbench/blob/main/examples/01a_dataset_basics.ipynb) |
| Model API                                        | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/seisbench/seisbench/blob/main/examples/01b_model_api.ipynb) |
| Generator Pipelines                              | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/seisbench/seisbench/blob/main/examples/01c_generator_pipelines.ipynb) |
| Applied picking                                  | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/seisbench/seisbench/blob/main/examples/02a_deploy_model_on_streams_example.ipynb) |
| Using DeepDenoiser                               | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/seisbench/seisbench/blob/main/examples/02b_deep_denoiser.ipynb) |
| Depth phases and earthquake depth                | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/seisbench/seisbench/blob/main/examples/02c_depth_phases.ipynb) |
| Training PhaseNet (advanced)                     | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/seisbench/seisbench/blob/main/examples/03a_training_phasenet.ipynb) |
| Creating a dataset (advanced)                    | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/seisbench/seisbench/blob/main/examples/03b_creating_a_dataset.ipynb) |
| Building an event catalog with GaMMA (advanced)  | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/seisbench/seisbench/blob/main/examples/03c_catalog_seisbench_gamma.ipynb) |
| Building an event catalog with PyOcto (advanced) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/seisbench/seisbench/blob/main/examples/03d_catalog_seisbench_pyocto.ipynb)        |

Alternatively, you can clone the repository and run the same [examples](https://github.com/seisbench/seisbench/tree/main/examples) locally.

For more detailed information on Seisbench check out the [SeisBench documentation](https://seisbench.readthedocs.io/).

## Installation

SeisBench can be installed in two ways.
In both cases, you might consider installing SeisBench in a virtual environment, for example using [conda](https://docs.conda.io/en/latest/).

The recommended way is installation through pip.
Simply run:
```
pip install seisbench
```

Alternatively, you can install the latest version from source.
For this approach, clone the repository, switch to the repository root and run:
```
pip install .
```
which will install SeisBench in your current python environment.

### CPU only installation

SeisBench is built on pytorch, which in turn runs on CUDA for GPU acceleration.
Sometimes, it might be preferable to install pytorch without CUDA, for example, because CUDA will not be used and the CUDA binaries are rather large.
To install such a pure CPU version, the easiest way is to follow a two-step installation.
First, install pytorch in a pure CPU version [as explained here](https://pytorch.org/).
Second, install SeisBench the regular way through pip.
Example instructions would be:
```
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
pip install seisbench
```

## Contributing
There are many ways to contribute to SeisBench and we are always looking forward to your contributions.
Check out the [contribution guidelines](https://github.com/seisbench/seisbench/blob/main/CONTRIBUTING.md) for details on how to contribute.

## Known issues

- Some institutions and internet providers are blocking access to our data and model repository, as it is running on a non-standard port (2880).
  This usually manifests in timeouts when trying to download data or model weights.
  To verify the issue, try accessing [https://hifis-storage.desy.de:2880/](https://hifis-storage.desy.de:2880/) directly from the same machine.
  As a mitigation, you can use our backup repository. Just run `seisbench.use_backup_repository()`.
  Please note that the backup repository will usually show lower download speeds.
  We recommend contacting your network administrator to allow outgoing access to TCP port 2880 on our server as a higher performance solution.
- We've recently changed the URL of the SeisBench repository. To use the new URL update to SeisBench 0.4.1.
  It this is not possible, you can use the following commands within your runtime to update the URL manually:
  ```python
  import seisbench
  from urllib.parse import urljoin

  seisbench.remote_root = "https://hifis-storage.desy.de:2880/Helmholtz/HelmholtzAI/SeisBench/"
  seisbench.remote_data_root = urljoin(seisbench.remote_root, "datasets/")
  seisbench.remote_model_root = urljoin(seisbench.remote_root, "models/v3/")
  ```
- On the Apple M1 and M2 chips, pytorch seems to not always work when installed directly within `pip install seisbench`.
  As a workaround, follow the instructions at (https://pytorch.org/) to install pytorch and then install SeisBench as usual through pip.
- EQTransformer model weights "original" in version 1 and 2 are incompatible with SeisBench >=0.2.3. Simply use `from_pretrained("original", version="3")` or `from_pretrained("original", update=True)`. The weights will not differ in their predictions.

## References
Reference publications for SeisBench:

---

* [SeisBench - A Toolbox for Machine Learning in Seismology](https://doi.org/10.1785/0220210324)

  _Reference publication for software._

---

* [Which picker fits my data? A quantitative evaluation of deep learning based seismic pickers](https://doi.org/10.1029/2021JB023499)

  _Example of in-depth bencharking study of deep learning-based picking routines using the SeisBench framework._

---

## Acknowledgement

The initial version of SeisBench has been developed at [GFZ Potsdam](https://www.gfz-potsdam.de/) and [KIT](https://www.gpi.kit.edu/) with funding from [Helmholtz AI](https://www.helmholtz.ai/).
The SeisBench repository is hosted by [HIFIS - Helmholtz Federated IT Services](https://www.hifis.net/).

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "seisbench",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "Jack Woolam <jack.woollam@kit.edu>, Jannes M\u00fcnchmeyer <munchmej@gfz-potsdam.de>",
    "keywords": "seismology, machine learning, signal processing, earthquake",
    "author": null,
    "author_email": "Jack Woolam <jack.woollam@kit.edu>, Jannes M\u00fcnchmeyer <munchmej@gfz-potsdam.de>",
    "download_url": "https://files.pythonhosted.org/packages/bb/2d/dfd7f9813dfb80bdd2d8834b079e5dcfacffb630e773bd06dd4eaaa71b97/seisbench-0.7.0.tar.gz",
    "platform": null,
    "description": "<p align=\"center\">\n  <img src=\"https://raw.githubusercontent.com/seisbench/seisbench/main/docs/_static/seisbench_logo_subtitle_outlined.svg\" />\n</p>\n\n---\n\n[![PyPI - License](https://img.shields.io/pypi/l/seisbench)](https://github.com/seisbench/seisbench/blob/main/LICENSE)\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/seisbench/seisbench/main_push.yml?branch=main)](https://github.com/seisbench/seisbench)\n[![Read the Docs](https://img.shields.io/readthedocs/seisbench)](https://seisbench.readthedocs.io/en/latest/)\n[![PyPI](https://img.shields.io/pypi/v/seisbench)](https://pypi.org/project/seisbench/)\n[![Python 3.9](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/downloads/release/python-390/)\n[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5568813.svg)](https://doi.org/10.5281/zenodo.5568813)\n\nThe Seismology Benchmark collection (*SeisBench*) is an open-source python toolbox for\nmachine learning in seismology.\nIt provides a unified API for accessing seismic datasets and both training and applying machine learning algorithms to seismic data.\nSeisBench has been built to reduce the overhead when applying or developing machine learning techniques for seismological tasks.\n\n## Getting started\n\nSeisBench offers three core modules, `data`, `models`, and `generate`.\n`data` provides access to benchmark datasets and offers functionality for loading datasets.\n`models` offers a collection of machine learning models for seismology.\nYou can easily create models, load pretrained models or train models on any dataset.\n`generate` contains tools for building data generation pipelines.\nThey bridge the gap between `data` and `models`.\n\nThe easiest way of getting started is through our colab notebooks.\n\n| Examples                                         |  |\n|--------------------------------------------------|---|\n| Dataset basics                                   | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/seisbench/seisbench/blob/main/examples/01a_dataset_basics.ipynb) |\n| Model API                                        | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/seisbench/seisbench/blob/main/examples/01b_model_api.ipynb) |\n| Generator Pipelines                              | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/seisbench/seisbench/blob/main/examples/01c_generator_pipelines.ipynb) |\n| Applied picking                                  | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/seisbench/seisbench/blob/main/examples/02a_deploy_model_on_streams_example.ipynb) |\n| Using DeepDenoiser                               | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/seisbench/seisbench/blob/main/examples/02b_deep_denoiser.ipynb) |\n| Depth phases and earthquake depth                | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/seisbench/seisbench/blob/main/examples/02c_depth_phases.ipynb) |\n| Training PhaseNet (advanced)                     | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/seisbench/seisbench/blob/main/examples/03a_training_phasenet.ipynb) |\n| Creating a dataset (advanced)                    | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/seisbench/seisbench/blob/main/examples/03b_creating_a_dataset.ipynb) |\n| Building an event catalog with GaMMA (advanced)  | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/seisbench/seisbench/blob/main/examples/03c_catalog_seisbench_gamma.ipynb) |\n| Building an event catalog with PyOcto (advanced) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/seisbench/seisbench/blob/main/examples/03d_catalog_seisbench_pyocto.ipynb)        |\n\nAlternatively, you can clone the repository and run the same [examples](https://github.com/seisbench/seisbench/tree/main/examples) locally.\n\nFor more detailed information on Seisbench check out the [SeisBench documentation](https://seisbench.readthedocs.io/).\n\n## Installation\n\nSeisBench can be installed in two ways.\nIn both cases, you might consider installing SeisBench in a virtual environment, for example using [conda](https://docs.conda.io/en/latest/).\n\nThe recommended way is installation through pip.\nSimply run:\n```\npip install seisbench\n```\n\nAlternatively, you can install the latest version from source.\nFor this approach, clone the repository, switch to the repository root and run:\n```\npip install .\n```\nwhich will install SeisBench in your current python environment.\n\n### CPU only installation\n\nSeisBench is built on pytorch, which in turn runs on CUDA for GPU acceleration.\nSometimes, it might be preferable to install pytorch without CUDA, for example, because CUDA will not be used and the CUDA binaries are rather large.\nTo install such a pure CPU version, the easiest way is to follow a two-step installation.\nFirst, install pytorch in a pure CPU version [as explained here](https://pytorch.org/).\nSecond, install SeisBench the regular way through pip.\nExample instructions would be:\n```\npip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu\npip install seisbench\n```\n\n## Contributing\nThere are many ways to contribute to SeisBench and we are always looking forward to your contributions.\nCheck out the [contribution guidelines](https://github.com/seisbench/seisbench/blob/main/CONTRIBUTING.md) for details on how to contribute.\n\n## Known issues\n\n- Some institutions and internet providers are blocking access to our data and model repository, as it is running on a non-standard port (2880).\n  This usually manifests in timeouts when trying to download data or model weights.\n  To verify the issue, try accessing [https://hifis-storage.desy.de:2880/](https://hifis-storage.desy.de:2880/) directly from the same machine.\n  As a mitigation, you can use our backup repository. Just run `seisbench.use_backup_repository()`.\n  Please note that the backup repository will usually show lower download speeds.\n  We recommend contacting your network administrator to allow outgoing access to TCP port 2880 on our server as a higher performance solution.\n- We've recently changed the URL of the SeisBench repository. To use the new URL update to SeisBench 0.4.1.\n  It this is not possible, you can use the following commands within your runtime to update the URL manually:\n  ```python\n  import seisbench\n  from urllib.parse import urljoin\n\n  seisbench.remote_root = \"https://hifis-storage.desy.de:2880/Helmholtz/HelmholtzAI/SeisBench/\"\n  seisbench.remote_data_root = urljoin(seisbench.remote_root, \"datasets/\")\n  seisbench.remote_model_root = urljoin(seisbench.remote_root, \"models/v3/\")\n  ```\n- On the Apple M1 and M2 chips, pytorch seems to not always work when installed directly within `pip install seisbench`.\n  As a workaround, follow the instructions at (https://pytorch.org/) to install pytorch and then install SeisBench as usual through pip.\n- EQTransformer model weights \"original\" in version 1 and 2 are incompatible with SeisBench >=0.2.3. Simply use `from_pretrained(\"original\", version=\"3\")` or `from_pretrained(\"original\", update=True)`. The weights will not differ in their predictions.\n\n## References\nReference publications for SeisBench:\n\n---\n\n* [SeisBench - A Toolbox for Machine Learning in Seismology](https://doi.org/10.1785/0220210324)\n\n  _Reference publication for software._\n\n---\n\n* [Which picker fits my data? A quantitative evaluation of deep learning based seismic pickers](https://doi.org/10.1029/2021JB023499)\n\n  _Example of in-depth bencharking study of deep learning-based picking routines using the SeisBench framework._\n\n---\n\n## Acknowledgement\n\nThe initial version of SeisBench has been developed at [GFZ Potsdam](https://www.gfz-potsdam.de/) and [KIT](https://www.gpi.kit.edu/) with funding from [Helmholtz AI](https://www.helmholtz.ai/).\nThe SeisBench repository is hosted by [HIFIS - Helmholtz Federated IT Services](https://www.hifis.net/).\n",
    "bugtrack_url": null,
    "license": "GPLv3",
    "summary": "The seismological machine learning benchmark collection",
    "version": "0.7.0",
    "project_urls": {
        "Documentation": "https://seisbench.readthedocs.io/en/latest/",
        "GitHub": "https://github.com/seisbench/seisbench",
        "Issues": "https://github.com/seisbench/seisbench/issues"
    },
    "split_keywords": [
        "seismology",
        " machine learning",
        " signal processing",
        " earthquake"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8fccb4be6e39e47b74d7256ba41048870be533cb1a8d3f44dcb74c3fe3b40d16",
                "md5": "4dc7cce17b0e1175a39e71a377ebfbd5",
                "sha256": "6ce7d50fc6113cb131280db72442f09214d56920f8d7e4e512d2416a7701d5d1"
            },
            "downloads": -1,
            "filename": "seisbench-0.7.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4dc7cce17b0e1175a39e71a377ebfbd5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 167248,
            "upload_time": "2024-04-22T11:14:37",
            "upload_time_iso_8601": "2024-04-22T11:14:37.724970Z",
            "url": "https://files.pythonhosted.org/packages/8f/cc/b4be6e39e47b74d7256ba41048870be533cb1a8d3f44dcb74c3fe3b40d16/seisbench-0.7.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bb2ddfd7f9813dfb80bdd2d8834b079e5dcfacffb630e773bd06dd4eaaa71b97",
                "md5": "870b7a432f2b3fa0516eeed8749307e9",
                "sha256": "27738d02fe71ce0233a4134697b8839a0bf16cbe98e10c9cf4e644da445d5d61"
            },
            "downloads": -1,
            "filename": "seisbench-0.7.0.tar.gz",
            "has_sig": false,
            "md5_digest": "870b7a432f2b3fa0516eeed8749307e9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 17002114,
            "upload_time": "2024-04-22T11:14:39",
            "upload_time_iso_8601": "2024-04-22T11:14:39.805350Z",
            "url": "https://files.pythonhosted.org/packages/bb/2d/dfd7f9813dfb80bdd2d8834b079e5dcfacffb630e773bd06dd4eaaa71b97/seisbench-0.7.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-22 11:14:39",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "seisbench",
    "github_project": "seisbench",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "seisbench"
}
        
Elapsed time: 0.23827s