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

very excellent job and I add something #4

Open
ju1987yetchung opened this issue Aug 27, 2024 · 0 comments
Open

very excellent job and I add something #4

ju1987yetchung opened this issue Aug 27, 2024 · 0 comments

Comments

@ju1987yetchung
Copy link

this programm file: "train_surrogates.py" is designed only recieve one channel data. for example, the shape should be (h,w,d).
and the model is designed to use 5D data, whose shape should be like (b,c,h,w,d), so, in the file".\neurop_invdes-main\fno_field_prediction\models_base.py", will add a dimension in position one, to make the shape be like (b,1,h,w,d).

so, if somebody want to train the data which already contains 2 or more channels, you should go to _base.py, and replace line 15 “y_pred = self(x.unsqueeze(1))” to be "y_pred = self(x)". And replace line 25 "y_pred = self(x.unsqueeze(1))" to "y_pred = self(x)" also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant