<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/db/ec/d71a24fff469942ff8ec60327b7f7d30743d21a7cbee993519a73d940aa1/seisbench-0.8.2.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.8.2",
"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": "f391fdc848aaf9b457609ddad120fd31d067beab24b4419cf00335eabc078ddb",
"md5": "2188cbe95f9b38be3cdf98b43b33ba3c",
"sha256": "f58d207b50a3e6626cd3667f59dffec633978af07a92e51245783288cbda07ce"
},
"downloads": -1,
"filename": "seisbench-0.8.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2188cbe95f9b38be3cdf98b43b33ba3c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 172233,
"upload_time": "2024-10-31T20:13:59",
"upload_time_iso_8601": "2024-10-31T20:13:59.059564Z",
"url": "https://files.pythonhosted.org/packages/f3/91/fdc848aaf9b457609ddad120fd31d067beab24b4419cf00335eabc078ddb/seisbench-0.8.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "dbecd71a24fff469942ff8ec60327b7f7d30743d21a7cbee993519a73d940aa1",
"md5": "d7f1a01a924a25fd343792cba978452f",
"sha256": "436db0d5eb21033f45b54137396b9741458872a2d54b2c8815af7df086f55163"
},
"downloads": -1,
"filename": "seisbench-0.8.2.tar.gz",
"has_sig": false,
"md5_digest": "d7f1a01a924a25fd343792cba978452f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 19767432,
"upload_time": "2024-10-31T20:14:01",
"upload_time_iso_8601": "2024-10-31T20:14:01.685198Z",
"url": "https://files.pythonhosted.org/packages/db/ec/d71a24fff469942ff8ec60327b7f7d30743d21a7cbee993519a73d940aa1/seisbench-0.8.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-31 20:14:01",
"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"
}