nbouziani / physics-driven-ml Goto Github PK
View Code? Open in Web Editor NEWPhysics-driven machine learning using PyTorch and Firedrake
License: MIT License
Physics-driven machine learning using PyTorch and Firedrake
License: MIT License
Hi,
I installed firedrake successfully by following the instructions on firedrake website and also installed pytorch as well as physics-driven-ml. However, while testing pytest tests
it is throwing me error. I think its because of pytorch-coupling, I did not use 'curl -O https://raw.githubusercontent.com/firedrakeproject/firedrake/master/scripts/firedrake-install
python3 firedrake-install --package-branch firedrake pytorch_coupling' .
How to do coupling manually?
Here is the error-
=================================== ERRORS ====================================
_______________ ERROR collecting tests/test_pytorch_coupling.py ________________
ImportError while importing test module '/home/teamacoustics/Downloads/physics-driven-ml/tests/test_pytorch_coupling.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/test_pytorch_coupling.py:9: in <module>
from physics_driven_ml.models import EncoderDecoder
physics_driven_ml/__init__.py:3: in <module>
from physics_driven_ml.dataset_processing import * # noqa: F401
physics_driven_ml/dataset_processing/__init__.py:3: in <module>
from physics_driven_ml.dataset_processing.pde_dataset import PDEDataset # noqa: F401
physics_driven_ml/dataset_processing/pde_dataset.py:6: in <module>
from firedrake import CheckpointFile, load_backend
E ImportError: cannot import name 'load_backend' from 'firedrake' (/home/teamacoustics/Downloads/firedrake/src/firedrake/firedrake/__init__.py)
------------------------------- Captured stderr --------------------------------
firedrake:WARNING OMP_NUM_THREADS is not set or is set to a value greater than 1, we suggest setting OMP_NUM_THREADS=1 to improve performance
=========================== short test summary info ============================
ERROR tests/test_pytorch_coupling.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 2.18s ===============================
Hi Nacime,
Executing following
cd physics_driven_ml
pytest tests
ERROR: file or directory not found: tests
If I run the command pytest tests
from directory 'physics-driven-ml'. It is giving me farrowing error.
_______________ ERROR collecting tests/test_pytorch_coupling.py ________________
ImportError while importing test module '/Users/asaini/physics-driven-ml/tests/test_pytorch_coupling.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/test_pytorch_coupling.py:3: in <module>
import torch
E ModuleNotFoundError: No module named 'torch'
=========================== short test summary info ============================
ERROR tests/test_pytorch_coupling.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 0.03s ===============================
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.