gfabieno / GeoFlow

MIT License
3 stars 1 forks source link

DOI

GeoFlow

Dataset management interface with Keras for geophysics

Contributing

This repository is organized in the following fashion. From highest level to lowest:

Style guide

Code style should follow closely PEP 8. Commits should follow closely git good practices. Refer to STYLEGUIDE.md for a comprehensive guide to this project's style conventions.

Installation

IMPORTANT: Use the latest SeisCL version on the devel branch.

You should clone this repository

git clone https://github.com/gfabieno/SeisCL.git

a) Use Docker (easiest)

We provide a Docker image that contains all necessary python libraries like Tensorflow and the seismic modeling code SeisCL.

You first need to install the Docker Engine, following the instructions here. To use GPUs, you also need to install the Nvidia docker. For the later to work, Nvidia drivers should be installed. Then, when in the project repository, build the docker image as follows:

docker build -t seisai:v0

You can then launch any of the python scripts in this repo as follows:

docker run --gpus all -it\
           -v `pwd`:`pwd` -w `pwd` \
           --user $(id -u):$(id -g) \
           seisai:v0 Case_article.py --logdir=./Case_article

This makes accessible all gpus (--gpus all), mounting the current directory to a to the same path in the docker (second line), running the docker as the current user (for file permission), and runs the script Case_article.py.

b) Install all requirements

It is recommended to create a new virtual environment for this project with Python3. Install all requirements with

pip install .

The main Python requirements are: