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

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

Closed
sangnguyens opened this issue Sep 12, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@sangnguyens
Copy link

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

@sangnguyens sangnguyens added the bug Something isn't working label Sep 12, 2023
@clementetienam
Copy link
Collaborator

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
Copy link
Collaborator

Is there a PACKETS folder formed anywhere?

@sangnguyens
Copy link
Author

sangnguyens commented Sep 12, 2023

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
Copy link
Collaborator

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

@sangnguyens
Copy link
Author

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

@clementetienam
Copy link
Collaborator

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

@ipe-zhangyz
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants