NVIDIA / modulus-sym

Framework providing pythonic APIs, algorithms and utilities to be used with Modulus core to physics inform model training as well as higher level abstraction for domain experts
https://developer.nvidia.com/modulus
Apache License 2.0
165 stars 68 forks source link

🐛[BUG]: can not download dataset for training reservoir_simulation/3D case: #59

Closed sangnguyens closed 1 year ago

sangnguyens commented 1 year ago

Version

23.08

On which installation method(s) does this occur?

Pip

Describe the issue

I have the problem to load dataset from examples/reservoir_simulation/3D/Forward_problem_PINO.py as follow:

...Downloading Please hold.........
Error executing job with overrides: []
Traceback (most recent call last):
  File "Forward_problem_PINO.py", line 1263, in run
    download_file_from_google_drive(
  File "Forward_problem_PINO.py", line 57, in download_file_from_google_drive
    save_response_content(response, destination)
  File "Forward_problem_PINO.py", line 71, in save_response_content
    with open(destination, "wb") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/datausers2/vpi/lnanh/modulus-sym/examples/reservoir_simulation/3D/src/../PACKETS/Training4.mat'

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.

Can you please check the availability of current dataset from google drive?

thanks, Sang

Minimum reproducible example

No response

Relevant log output

No response

Environment details

No response

Other/Misc.

No response

clementetienam commented 1 year ago

Hi,sangnguyens, I just ran the code and could download the dataset, can you please check you are not on a vpn on your work machine?

clementetienam commented 1 year ago

Is there a PACKETS folder formed anywhere?

sangnguyens commented 1 year ago

hi @clementetienam, I run the simulation for FNO case and could download dataset. start with PINO case seems to be failed, no folder name PACKETS exist in mother directory.

clementetienam commented 1 year ago

That is strange. simply download the dataset using the FNO. the same datasets are used for both FNO and PINOa

sangnguyens commented 1 year ago

thanks @clementetienam for your helps. I suppose to close this issue.

clementetienam commented 1 year ago

You are welcome. we will update this example with an Inverse methodology workflow to solve reservoir characterisation/History matching.

ipe-zhangyz commented 3 weeks ago

Seems that the bug still exists. I'm using the modulus docker image 24.04 download from NGC, and encounter exactly the same error. what's more, even though I can download the dataset using the FNO case, the dataset file Training4.mat is only 4 KB in size, and the script exits with this error:

Load simulated labelled training data from MAT file
Error executing job with overrides: []
Traceback (most recent call last):
  File "Forward_problem_FNO.py", line 798, in run
    matt = sio.loadmat(to_absolute_path("../PACKETS/Training4.mat"))
  File "/home/miniconda3/envs/MDLO/lib/python3.8/site-packages/scipy/io/matlab/_mio.py", line 226, in loadmat
    MR, _ = mat_reader_factory(f, **kwargs)
  File "/home/miniconda3/envs/MDLO/lib/python3.8/site-packages/scipy/io/matlab/_mio.py", line 74, in mat_reader_factory
    mjv, mnv = _get_matfile_version(byte_stream)
  File "/home/miniconda3/envs/MDLO/lib/python3.8/site-packages/scipy/io/matlab/_miobase.py", line 251, in _get_matfile_version
    raise ValueError('Unknown mat file type, version %s, %s' % ret)
ValueError: Unknown mat file type, version 32, 99

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.

There is the same error in both FNO and PINO cases, and in both 2D and 3D cases. And the Training4.mat files downloaded in 2D and 3D cases are both 4.0 KB in size. Maybe the dataset file I downloaded is not the right one?