portal-cornell/game-theoretic-forecasting-planning

No module named 'crowd_nav.snce'

Closed this issue · 1 comments

Depblu commented

Hi

When running train_nom_planner.py, import error occurs for crowd_nav.snce module. The snce directory does not exist in the source repository.

(py3.6) [deplu@deplu-laptop crowd_nav]$ python train_nom_planner.py
Traceback (most recent call last):
  File "train_nom_planner.py", line 2, in <module>
    from crowd_nav.snce.model import ProjHead, SpatialEncoder, EventEncoder
ModuleNotFoundError: No module named 'crowd_nav.snce'

python train_mle_forecaster.py has been running successfully

(py3.6) [deplu@deplu-laptop crowd_nav]$ python train_mle_forecaster.py
torch.Size([10000, 1])
0.334
0.235
...
0.151
Epoch 200
0.151

My directory structure:

.
├── crowd_nav
│   ├── data
│   ├── evaluate.py
│   ├── __init__.py
│   ├── logs
│   ├── mle_forecasters
│   ├── policy
│   ├── train_forecaster_planner_game.py
│   ├── train_mle_forecaster.py
│   ├── train_nom_planner.py
│   └── utils
├── crowdnav.egg-info
│   ├── dependency_links.txt
│   ├── PKG-INFO
│   ├── requires.txt
│   ├── SOURCES.txt
│   └── top_level.txt
├── crowd_sim
│   ├── envs
│   ├── __init__.py
│   └── README.md
├── docs
│   ├── framework.png
│   ├── MLE.gif
│   ├── SAFE.gif
│   └── SETUP.md
├── Python-RVO2
│   └── Python-RVO2-main
├── README.md
└── setup.py

I have resolved this problem in this commit. We are not using any of the code in the snce utils, so it should be removed from this file.