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

DeepONet should support arbitrary trunk/branch networks #71

Closed
samuelburbulla opened this issue Feb 29, 2024 · 4 comments · Fixed by #149
Closed

DeepONet should support arbitrary trunk/branch networks #71

samuelburbulla opened this issue Feb 29, 2024 · 4 comments · Fixed by #149
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@samuelburbulla
Copy link
Collaborator

samuelburbulla commented Feb 29, 2024

Currently, we implement the DeepONet with fully connected networks for branch and trunk. Depending on the problem, one would like to replace these networks by more appropriate ones (e.g. CNNs as branch network).

Generalize DeepONet to take branch/trunk network in constructor. Per default, it should use DeepResidualNetwork.

@samuelburbulla samuelburbulla added enhancement New feature or request good first issue Good for newcomers labels Mar 1, 2024
@JinglaiZheng
Copy link

Thank you so much for your library. As a PhD student who regularly uses PINN, I intend to use continuiti to start my deeponet journey. My goal is very clear, to achieve PDE solution when the input of the branch network is in the form of images, such as spatially distributed material parameters, which I think can provide information in the form of images. Knowing that your library can implement CNN as a branch network, I started researching continuiti. Could you provide an example of CNN as a branch network or any other insights, thank you very much!

@samuelburbulla
Copy link
Collaborator Author

samuelburbulla commented Jul 9, 2024

Hi Jinglai, thank you for reaching out!
Our current implementation of DeepONet does not allow custom branch/trunk networks, but it can be extended to include this functionality - that's why this issue exists. Given your interest, I will prioritize this issue and we will open a PR in the coming days with an example.
We welcome any feedback you have once you start using it.

@samuelburbulla samuelburbulla self-assigned this Jul 9, 2024
@samuelburbulla samuelburbulla added this to the 0.2 milestone Jul 9, 2024
@JinglaiZheng
Copy link

Thank you very much for your attention! I think that when vanilla CNN is introduced into DeepONet, advanced image processing networks such as U-net, TransUnet will be easily implemented, which will provide great progress for the development of the community. Looking forward to your example, thank you again!

@samuelburbulla
Copy link
Collaborator Author

Hi @JinglaiZheng,

I implemented the possibility to use custom branch/trunk network in DeepONet in #149.

See this test for an example on how to use it with a CNN as branch network.

Will this suit your needs?

Best,
Samuel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants