geoelements / gns

Graph Network Simulator
https://www.geoelements.org/gns/
Other
124 stars 30 forks source link

GNS Installation issue #84

Open ramc77 opened 1 month ago

ramc77 commented 1 month ago

Dear Developers, I am unable to install GNS on my macOS and also on Windows 10 (anaconda or WSL). Whenever I run this command I get erros:

python3 -m gns.train --data_path="" --model_path="" --model_file="model.pt" --train_state_file="train_state.pt" --ntraining_steps=100

It says: /usr/bin/python3: No module named gns.train

I couldn't find step-by-step instructions on the installation of gns anywhere. Thank you, Ram

yjchoi1 commented 1 month ago

Thanks for your question. Could you let me know where did you run the above command?

ramc77 commented 1 month ago

Thank you for your reply. I follow up on all instructions given on the github as follows:

Building GNS on MacOS pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu pip3 install torch_geometric pip3 install pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-2.3.0+cpu.html pip3 install -r requirements.txt

Also, I did the same for (on Windows 10):

conda install -y pytorch torchvision torchaudio cpuonly -c pytorch conda install -y pyg -c pyg conda install -y pytorch-cluster -c pyg conda install -y absl-py -c anaconda conda install -y numpy dm-tree matplotlib-base pyevtk -c conda-forge

After that, I downloaded the datasets as per instructions and run this command:

Run GNS/MeshNet Training GNS/MeshNet on simulation data

python3 -m gns.train --data_path="" --model_path="" --ntraining_steps=100

I tried the other ways too but failed to run the code.

ramc77 commented 1 month ago

I am trying to install and run this: https://github.com/geoelements/gns