Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FNO, show loss again in trainer and fix some small bugs #44

Merged
merged 31 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
75e5d40
update tutorial
kenaj123 Aug 19, 2024
db5d894
update
kenaj123 Aug 19, 2024
f362469
Updated trainer, removed some unneccessary cells
kenaj123 Aug 19, 2024
a72a094
Add loss to progress bar
Aug 20, 2024
f995ea6
Merge branch 'main' of https://github.com/TomF98/torchphysics into main
Aug 20, 2024
de46fd4
Update
kenaj123 Aug 20, 2024
b5e89ac
Merge branch 'main' of https://github.com/TomF98/torchphysics
kenaj123 Aug 20, 2024
758c06e
Simple ODE as a first-step tutorial
kenaj123 Aug 20, 2024
be393b3
Update
kenaj123 Aug 20, 2024
ca25559
update
kenaj123 Aug 20, 2024
3f093d1
Merge branch 'main' of https://github.com/TomF98/torchphysics
kenaj123 Aug 21, 2024
45a35e4
update
kenaj123 Aug 21, 2024
8d0b4fd
Tutorial for physics-informed DeepONets
kenaj123 Aug 22, 2024
200f9aa
update
kenaj123 Aug 22, 2024
7a37bae
Update tests and fix callback
Sep 2, 2024
1d39f6f
Merge branch 'main' of https://github.com/TomF98/torchphysics into main
Sep 2, 2024
2dcf411
Update callbacks
Sep 2, 2024
110b129
fix test
Sep 2, 2024
23a37ee
add tensorboard to test suite
Sep 2, 2024
1cefbb1
Remove os line to set GPU in examples
Sep 3, 2024
207ccec
typo
kenaj123 Sep 9, 2024
55dd44a
Small updates and comments
Sep 25, 2024
b6c1192
Merge branch 'main' of https://github.com/TomF98/torchphysics into main
Sep 25, 2024
6909866
uniform title size in examples
Nov 12, 2024
2fc7464
First FNO implementation
Nov 12, 2024
826f46b
FNO 2d diffusion example
Nov 12, 2024
5c4d0a4
Merge branch 'main' of https://github.com/boschresearch/torchphysics …
Nov 18, 2024
ef18b74
fix callback
Nov 18, 2024
524d15b
fix callbacks
Nov 18, 2024
9313b48
update setup file and dont test optional tensorboard
Nov 18, 2024
a9d4f3a
try to fix github testing
Nov 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
python -m pip install --upgrade pip
pip install -U setuptools setuptools_scm wheel
python -m pip install flake8 pytest pytest-cov
python -m pip install -e .
python -m pip install -e .[all]
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
Expand Down
464 changes: 0 additions & 464 deletions examples/deeponet/.ipynb_checkpoints/oscillator-checkpoint.ipynb

This file was deleted.

4 changes: 1 addition & 3 deletions examples/deeponet/inverse_ode.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Inverse DeepONet\n",
"### Inverse DeepONet\n",
"In this notebook, we present the learning of the inverse operator, that maps solution data to some input data. \n",
"To keep things simple we again consider the ODE:\n",
"\\begin{align*}\n",
Expand All @@ -28,8 +28,6 @@
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"os.environ[\"CUDA_VISIBLE_DEVICES\"] = \"1\"\n",
"import torch\n",
"import numpy as np\n",
"import torchphysics as tp\n",
Expand Down
4 changes: 1 addition & 3 deletions examples/deeponet/ode.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Physics-informed DeepONet: Solving a ODE for different right hand sides\n",
"### Physics-informed DeepONet: Solving a ODE for different right hand sides\n",
"In this notebook, we present an introduction to the physics-informed DeepONet [(paper)](https://arxiv.org/abs/2103.10974) utilities of TorchPhysics. \n",
"As an example, we try to learn the integral operator of the ODE:\n",
"\\begin{align*}\n",
Expand All @@ -27,8 +27,6 @@
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"os.environ[\"CUDA_VISIBLE_DEVICES\"] = \"2\"\n",
"import torch\n",
"import torchphysics as tp\n",
"import pytorch_lightning as pl"
Expand Down
2 changes: 0 additions & 2 deletions examples/deeponet/oscillator.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"os.environ[\"CUDA_VISIBLE_DEVICES\"] = \"3\"\n",
"import torchphysics as tp\n",
"import torch\n",
"import pytorch_lightning as pl"
Expand Down
2 changes: 0 additions & 2 deletions examples/deepritz/corner_pde.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"os.environ[\"CUDA_VISIBLE_DEVICES\"] = \"1\"\n",
"import torchphysics as tp \n",
"import torch\n",
"X = tp.spaces.R1('x') \n",
Expand Down
2 changes: 0 additions & 2 deletions examples/deepritz/poisson-equation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"os.environ[\"CUDA_VISIBLE_DEVICES\"] = \"0\"\n",
"import torch\n",
"import torchphysics as tp\n",
"import pytorch_lightning as pl"
Expand Down
376 changes: 376 additions & 0 deletions examples/fno/diffusion_2D.ipynb

Large diffs are not rendered by default.

Loading