Skip to main content

The seismological machine learning benchmark collection

Project description


PyPI - License GitHub Workflow Status Read the Docs PyPI Python 3.10 DOI

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. Just click on the "Open in Colab" link to run them in your browser. Alternatively, you can clone the repository and run the same examples locally.

Note: If an example notebooks has been added very recently, it might rely on functionality that is not yet part of a numbered version. To run it nonetheless, you can replace the installation line with pip install "seisbench[das] @ git+https://github.com/seisbench/seisbench" to use the latest development branch.

Basic examples

These examples introduce you to the key modules of SeisBench.

Examples
Dataset basics Open In Colab
Model API Open In Colab
Generator Pipelines Open In Colab

Advanced topics

This section covers topics like training models, creating datasets or building earthquake catalogs.

Examples
Applied picking Open In Colab
Training PhaseNet Open In Colab
Creating a dataset Open In Colab
Building an event catalog with GaMMA Open In Colab
Building an event catalog with PyOcto Open In Colab

Using SeisBench for DAS data

These tutorials introduce how to use SeisBench to train and apply models for distributed acoustic sensing (DAS) data.

Examples
Applying DAS models Open In Colab
Training DeepSubDAS Open In Colab

Miscellaneous

A collection of notebooks for miscellaneous topics, such as denoising or depth estimation.

Examples
Training DKPN Open In Colab
Using DeepDenoiser Open In Colab
Training Denoiser Open In Colab
Depth phases and earthquake depth Open In Colab

For more detailed information on Seisbench check out the SeisBench documentation.

Installation

SeisBench can be installed in two ways. In both cases, you might consider installing SeisBench in a virtual environment, for example using conda.

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.

If you want to run SeisBench on DAS data, make sure to pass the [das] argument, i.e., pip install seisbench[das].

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. 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 for details on how to contribute.

Known issues

  • We've experienced occasional issues with access to our repository. To verify the issue, try accessing https://hifis-storage.desy.de 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've recently changed the URL of the SeisBench repository. To use the new URL update to SeisBench 0.11.5. It this is not possible, you can use the following commands within your runtime to update the URL manually:
    import seisbench
    from urllib.parse import urljoin
    
    seisbench.remote_root = "https://hifis-storage.desy.de/Helmholtz/HelmholtzAI/SeisBench/"
    seisbench.remote_data_root = urljoin(seisbench.remote_root, "datasets/")
    seisbench.remote_model_root = urljoin(seisbench.remote_root, "models/v3/")
    

References

Reference publications for SeisBench:




Acknowledgements

The initial version of SeisBench has been developed at GFZ Potsdam and KIT with funding from Helmholtz AI. The SeisBench repository is hosted by HIFIS - Helmholtz Federated IT Services.

This development of the LFE detection model has been supported by MIAI@Grenoble Alpes (ANR-19-P3IA-0003) and the European Union through the Marie Skłodowska-Curie Actions (n°101104996 - DECODE).

The initial DAS model and data interface was supported by the European Commission under the Horizon Europe programme, through the project SUBMERSE (https://submerse.eu/) (Grant Agreement No. 101095055), funded within the HORIZON-INFRA-2022-TECH-01 call.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

seisbench-0.12.0a0.tar.gz (33.5 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

seisbench-0.12.0a0-cp314-cp314-win_arm64.whl (273.5 kB view details)

Uploaded CPython 3.14Windows ARM64

seisbench-0.12.0a0-cp314-cp314-win_amd64.whl (273.9 kB view details)

Uploaded CPython 3.14Windows x86-64

seisbench-0.12.0a0-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.0 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

seisbench-0.12.0a0-cp314-cp314-macosx_11_0_arm64.whl (270.8 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

seisbench-0.12.0a0-cp313-cp313-win_arm64.whl (273.7 kB view details)

Uploaded CPython 3.13Windows ARM64

seisbench-0.12.0a0-cp313-cp313-win_amd64.whl (274.1 kB view details)

Uploaded CPython 3.13Windows x86-64

seisbench-0.12.0a0-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (284.9 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

seisbench-0.12.0a0-cp313-cp313-macosx_11_0_arm64.whl (270.8 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

seisbench-0.12.0a0-cp312-cp312-win_arm64.whl (273.7 kB view details)

Uploaded CPython 3.12Windows ARM64

seisbench-0.12.0a0-cp312-cp312-win_amd64.whl (274.1 kB view details)

Uploaded CPython 3.12Windows x86-64

seisbench-0.12.0a0-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (284.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

seisbench-0.12.0a0-cp312-cp312-macosx_11_0_arm64.whl (270.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

seisbench-0.12.0a0-cp311-cp311-win_arm64.whl (273.7 kB view details)

Uploaded CPython 3.11Windows ARM64

seisbench-0.12.0a0-cp311-cp311-win_amd64.whl (274.1 kB view details)

Uploaded CPython 3.11Windows x86-64

seisbench-0.12.0a0-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (284.8 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

seisbench-0.12.0a0-cp311-cp311-macosx_11_0_arm64.whl (270.8 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

seisbench-0.12.0a0-cp310-cp310-win_arm64.whl (273.7 kB view details)

Uploaded CPython 3.10Windows ARM64

seisbench-0.12.0a0-cp310-cp310-win_amd64.whl (274.1 kB view details)

Uploaded CPython 3.10Windows x86-64

seisbench-0.12.0a0-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (283.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

seisbench-0.12.0a0-cp310-cp310-macosx_11_0_arm64.whl (270.8 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file seisbench-0.12.0a0.tar.gz.

File metadata

  • Download URL: seisbench-0.12.0a0.tar.gz
  • Upload date:
  • Size: 33.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for seisbench-0.12.0a0.tar.gz
Algorithm Hash digest
SHA256 79b9fa47874faa6c62aaff2a58ad6e42b22a44205f50370389ee1f8a93ea379c
MD5 61792f9cb8078db1a785ea9b0a5045aa
BLAKE2b-256 f9447e12c603612e8cc8e254e7b3796e03b5e5cfeaf333ba7c88d6c6bf373f33

See more details on using hashes here.

File details

Details for the file seisbench-0.12.0a0-cp314-cp314-win_arm64.whl.

File metadata

File hashes

Hashes for seisbench-0.12.0a0-cp314-cp314-win_arm64.whl
Algorithm Hash digest
SHA256 473abf6bd7d08ee9e8a96023b43fc3aecf660761857bccefd0aa13413c817875
MD5 8448b5eb015ca2855e4bc0d35edfc951
BLAKE2b-256 1ff062b045955402dbceac9c78c5d4227ec1d6f8514f8f1f3a19ed9612e60f91

See more details on using hashes here.

File details

Details for the file seisbench-0.12.0a0-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for seisbench-0.12.0a0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 60b0c549adea92d053fcfd907c45e89ba0997703589f7f27162f52aadf3ea074
MD5 a7ee6a66e1eff90f708e21748f1e1f39
BLAKE2b-256 cfae6cda14b1413500879056fc9003a01d4e454a7b5ee4ca1e0936e81362fe1f

See more details on using hashes here.

File details

Details for the file seisbench-0.12.0a0-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for seisbench-0.12.0a0-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 01cd4c84bb9a7109278dcfe84682e8c15e27c27b35c80af61acb780abf417552
MD5 a6fda1f90555e59f97e84a1e952c3af4
BLAKE2b-256 9c4fdc8925f52b97ada8f11453c28c9e98d70fd4a8428b04b3fe57e19c9d017c

See more details on using hashes here.

File details

Details for the file seisbench-0.12.0a0-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for seisbench-0.12.0a0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 31cd666046d9322b0c1c352d852f0a8a86b0ef596f11a8097a9e353dca554129
MD5 7dd24707a42d9bb65c7545314037b8d5
BLAKE2b-256 c7d29cfa4064d3856a6e4a2af102f2fdd5d7bae47c420f6c6de1b04468f9f2aa

See more details on using hashes here.

File details

Details for the file seisbench-0.12.0a0-cp313-cp313-win_arm64.whl.

File metadata

File hashes

Hashes for seisbench-0.12.0a0-cp313-cp313-win_arm64.whl
Algorithm Hash digest
SHA256 6704239aeb882f13fcca5b8b0bbd267378938002fd366672ecd064efdaa30865
MD5 2779b7aa0c1146823248988e3997005e
BLAKE2b-256 c9fe8eb5dad39a1e25bfc12a11984c35a9cb35ed2d204f0936b33d03c9e656f0

See more details on using hashes here.

File details

Details for the file seisbench-0.12.0a0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for seisbench-0.12.0a0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b26ff67689b39e069626bbbb22bfb979243315fce2dd1b29318e0f5f424a7cc0
MD5 b70674cea900cc53e5108f0662f5a7ea
BLAKE2b-256 8409db0d56f891dfa8873ab86d97f04b061ea5c289644df5069d0ff7dd19b4d6

See more details on using hashes here.

File details

Details for the file seisbench-0.12.0a0-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for seisbench-0.12.0a0-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7e0712352b845517b18b02941e092e459922df8357f7a69b5d63a7b67979d8c9
MD5 f1666ddf4c9b095789022db8a06df4d1
BLAKE2b-256 fa12bd56f626bfc5488abf71bc5b192742021bff9bb2366322c187c3b3b8f789

See more details on using hashes here.

File details

Details for the file seisbench-0.12.0a0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for seisbench-0.12.0a0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7f162169fa22a119a77b007dceadb412eb25dfef6a9435caac3f14f1de9f7c7f
MD5 de7afd06afa3e2531ba527a5403022cd
BLAKE2b-256 d29a969b7142a5168aeb104217951acebe3d168dbd88cc87e3ac2debc1450a64

See more details on using hashes here.

File details

Details for the file seisbench-0.12.0a0-cp312-cp312-win_arm64.whl.

File metadata

File hashes

Hashes for seisbench-0.12.0a0-cp312-cp312-win_arm64.whl
Algorithm Hash digest
SHA256 47c105688a975d3d623371dfad2c7b6c281af6b90df28896d3287f4fad505cc7
MD5 b9a1fc37fe61e8113dd4f88827e70812
BLAKE2b-256 24fef058c8f2de958a651664fe0b1fa4900df595d7d0ef2f963c4f4da565d44a

See more details on using hashes here.

File details

Details for the file seisbench-0.12.0a0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for seisbench-0.12.0a0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6ab43c21a926cedb240190cee261b8c0c5653f1c40afe99f68c8622331a94d1c
MD5 2f07b8111057710466e31b6597b43dff
BLAKE2b-256 9e55a81f2247255d46c10a7213635c96491d6222d139874308dd8950c6378f25

See more details on using hashes here.

File details

Details for the file seisbench-0.12.0a0-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for seisbench-0.12.0a0-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d561759fbdf8f7e63e84a0dac0f2970605aa558106d4571d9cebb0b4fe072b63
MD5 7082ef6fd4c960f137bd04e676c9ac35
BLAKE2b-256 ba52a8eaca7e4ee3e9395847d028eb977ba58ac8b55c660a499d8e8640b4e586

See more details on using hashes here.

File details

Details for the file seisbench-0.12.0a0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for seisbench-0.12.0a0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f6de2649b67b3282db6e981819768917edd51edc3d5fe09d628849561ab15e15
MD5 39ade326e87e6d91986c18dc047cc280
BLAKE2b-256 1617d6cce7e9063664c0afda55ea5c536f20fa53cbb21177b46ce11c0aec514f

See more details on using hashes here.

File details

Details for the file seisbench-0.12.0a0-cp311-cp311-win_arm64.whl.

File metadata

File hashes

Hashes for seisbench-0.12.0a0-cp311-cp311-win_arm64.whl
Algorithm Hash digest
SHA256 5652b1d634876712ca92f39ce97f817e48a292d4a43157e12df8c8cd160c1b9d
MD5 9eded116f1d136cd382876c9228ebfb0
BLAKE2b-256 75b6074e142f3301803a0112f0651a9cc5228067f553938f172b2fcec1b1f614

See more details on using hashes here.

File details

Details for the file seisbench-0.12.0a0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for seisbench-0.12.0a0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6ad8ceb7cfa9dd6899bc24a1e8679fb2e54a1da3767797b3dd0dae18eef83e61
MD5 49c0c0526954d34d343cb87ca14ecff3
BLAKE2b-256 12726f63db634a0ba396d1297ce6e55c0ccf0b826bf66757980d1eed99991509

See more details on using hashes here.

File details

Details for the file seisbench-0.12.0a0-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for seisbench-0.12.0a0-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1d5007d62a8cf8bedf1526284de45a53d5e6f702d113e9e8fb07a831099e2852
MD5 156b63f541be828582173b5bf844815f
BLAKE2b-256 08cf7f2411e43baa35074383ce2d4d7b2d9640cf1012859cbbad7f8224374735

See more details on using hashes here.

File details

Details for the file seisbench-0.12.0a0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for seisbench-0.12.0a0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2ca053891b8f39107d4a0f2d7067a37d34b91528b29c96c3ea079cd1eb33677c
MD5 39afc37de62853c8b0af873274c3a490
BLAKE2b-256 4451d2ede334adb48f49afd458ab0bd9c0de06087df8e14f3a23af4c3cf1c54e

See more details on using hashes here.

File details

Details for the file seisbench-0.12.0a0-cp310-cp310-win_arm64.whl.

File metadata

File hashes

Hashes for seisbench-0.12.0a0-cp310-cp310-win_arm64.whl
Algorithm Hash digest
SHA256 f23bdd931aa9ffb2e85b79033c06ed25afa3cb4fc61ed6899e5b4b88be715b92
MD5 50ed71926aa6189c5c72892a5fe8bef6
BLAKE2b-256 0b5fe7b6161de85cd9534e634f493945df47877164749ce29b9cd412bb6cc1f4

See more details on using hashes here.

File details

Details for the file seisbench-0.12.0a0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for seisbench-0.12.0a0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5b00369b5d0d83e791f4b5e2ac8aec96d7348926a84c1af08951b39265780b5c
MD5 b5bc028a88010e8f08123c5fcc2dbebe
BLAKE2b-256 5e5005ac031e459dcd6cb798333397e49c2907bee7a785ab8a7a6ac8feedf710

See more details on using hashes here.

File details

Details for the file seisbench-0.12.0a0-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for seisbench-0.12.0a0-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 68ed5b8935667accd00cb36a3f1bf3ffc5093de6aaccea0b47b59e09d29dfcc9
MD5 2829fb98fe8dc07e8c195aa1355c2785
BLAKE2b-256 99b10cc7480547ceb95cd357c7653b939d49a9e0cdcad127f4d3b29df42bda53

See more details on using hashes here.

File details

Details for the file seisbench-0.12.0a0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for seisbench-0.12.0a0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 81aad22eeb51b7b8eafeec23096656b9bb420ef90eff102bdac2eb5e7ffc02c4
MD5 5fb00067c6391bff7ac5579bed548e30
BLAKE2b-256 d4686c7f3c1c68c46ab4cef62937fbc9d608733aaf1960387ec6cdb3372c3601

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page