DeepINN is a deep-learning framework for solving forward and inverse problem involving PDEs using physics-informed neural networks (PINNs).
- The geometry module has been borrowed from TorchPhysics.
- TODO list.
Create a venv in the root of the repo. Here the assumption is that the python is symlink to python3.
python -m venv .venvActivate the environment.
source .venv/bin/activateConfirm that the Python path is updated.
which pythonThe STDOUT should point to the .venv directory. Now, upgrade the pip.
python -m pip install --upgrade pipInstall the required packages.
pip install -r requirements.txtIf you want to build the docs using the same environment, then install the relevant dependencies.
pip install -r docs/requirements.txtThe testing is very simple. Just run the test.py file in the current Python virtual environment.
python test.pyPull the image with suitable tagname. The image is available here.
docker pull prakhars962/deepinn:tagnameThe image opens a jupyter server by default.
docker run -p 8888:8888 prakhars962/deepinn:pre-releaseYou can override the jupyter server entrypoint using the following command.
docker run -it --entrypoint /bin/bash prakhars962/deepinn:pre-releaseFirst install nvidia-docker using this guide.
Now run the container with nvidia-docker.
nvidia-docker run -it --entrypoint /bin/bash prakhars962/deepinn:pre-releaseThis command will bind the pwd to /workspace/tutorials and open a jupyter-lab with GPU support.
nvidia-docker run -v $(pwd):/workspace/tutorials -p 8888:8888 prakhars962/deepinn:pre-releaseAlternatively, one can run interactive session.
nvidia-docker run -v $(pwd):/workspace/tutorials -it --entrypoint /bin/bash prakhars962/deepinn:pre-releaseEach time you pull the updated image, docker will create a tagless copy of the old one.
╰─ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
prakhars962/deepinn pre-release 886808706155 4 minutes ago 6.99GB
prakhars962/deepinn <none> 0bb744f6159e 38 minutes ago 6.99GB
prakhars962/deepinn <none> 4ffbb67f8447 About an hour ago 6.8GB
prakhars962/deepinn <none> fe16ca34f9d9 About an hour ago 6.8GBThe only solution is to delete them one by one using the IMAGE_ID.
docker image rm -f IMAGE_IDThe UML diagram is generated using pyreverse. This provides an overview of the codebase.
cd UML\ diagrams
pyreverse -o pdf ../DeepINN/