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

Problem of running dataset/make_training_data.py script #14

Open
ruqing00 opened this issue Dec 25, 2022 · 5 comments
Open

Problem of running dataset/make_training_data.py script #14

ruqing00 opened this issue Dec 25, 2022 · 5 comments

Comments

@ruqing00
Copy link

Hi

When I tried to run the make_training_data.py script to generate the gridworld.npz file, I got the following error:

FileNotFoundError: [Errno 2] No such file or directory: 'dataset/gridworld_28x28.npz'

And I found that line 101 should be modified as follows:

save_path = "gridworld_{0}x{1}".format(dom_size[0], dom_size[1])
@JYTCV
Copy link

JYTCV commented Mar 12, 2023

Have you implemented the program of Mars data experiment? Can you share how to generate a Mars data set?

@LTH40025
Copy link

hi ,i faced this problem , can you show your floder for me?
Traceback (most recent call last): File ".\make_training_data.py", line 9, in <module> from domains.gridworld import * ModuleNotFoundError: No module named 'domains'

@ruqing00
Copy link
Author

hi ,i faced this problem , can you show your floder for me? Traceback (most recent call last): File ".\make_training_data.py", line 9, in <module> from domains.gridworld import * ModuleNotFoundError: No module named 'domains'

Surely, I run this project in Pycharm with Windows, and here is my floder structure:
E:\PROJECT\PYTHON_PROJECT\VALUE_ITERATION_NETWORKS\KENTSOMMER_PYTORCH
│ download_weights_and_datasets.sh
│ LICENSE
│ model.py
│ README.md
│ requirements.txt
│ test.py
│ train.py

├─.idea
│ │ .gitignore
│ │ encodings.xml
│ │ kentsommer_pytorch.iml
│ │ misc.xml
│ │ modules.xml
│ │ other.xml
│ │ vcs.xml
│ │ workspace.xml
│ │
│ └─inspectionProfiles
│ profiles_settings.xml
│ Project_Default.xml

├─dataset
│ │ dataset.py
│ │ gridworld_16x16.npz
│ │ gridworld_28x28.npz
│ │ gridworld_8x8.npz
│ │ make_training_data.py
│ │ README.MD
│ │ init.py
│ │
│ └─__pycache__
│ dataset.cpython-37.pyc
init.cpython-37.pyc

├─domains
│ │ gridworld.py
│ │ init.py
│ │
│ └─__pycache__
│ gridworld.cpython-37.pyc
init.cpython-37.pyc

├─generators
│ │ obstacle_gen.py
│ │ init.py
│ │
│ └─__pycache__
│ obstacle_gen.cpython-37.pyc
init.cpython-37.pyc

├─results
│ 16x16_1.png
│ 16x16_2.png
│ 28x28_1.png
│ 28x28_2.png
│ 8x8_1.png
│ 8x8_2.png

├─trained
│ README.md
│ vin_8x8.pth

├─utility
│ │ utils.py
│ │ init.py
│ │
│ └─__pycache__
│ utils.cpython-37.pyc
init.cpython-37.pyc

└─__pycache__
model.cpython-37.pyc

@LTH40025
Copy link

Hi

When I tried to run the make_training_data.py script to generate the gridworld.npz file, I got the following error:

FileNotFoundError: [Errno 2] No such file or directory: 'dataset/gridworld_28x28.npz'

And I found that line 101 should be modified as follows:

save_path = "gridworld_{0}x{1}".format(dom_size[0], dom_size[1])

I think your problem is your save_path error
save_path = "C:\\Users\\Desktop\\dataset\\gridworld_{0}x{1}".format(dom_size[0], dom_size[1])

@ruqing00
Copy link
Author

Hi
When I tried to run the make_training_data.py script to generate the gridworld.npz file, I got the following error:

FileNotFoundError: [Errno 2] No such file or directory: 'dataset/gridworld_28x28.npz'

And I found that line 101 should be modified as follows:

save_path = "gridworld_{0}x{1}".format(dom_size[0], dom_size[1])

I think your problem is your save_path error save_path = "C:\\Users\\Desktop\\dataset\\gridworld_{0}x{1}".format(dom_size[0], dom_size[1])

Thank you very much for suggesting a solution, I have successfully solved the problem!
modify line 101 can also solve the problem:

save_path = "gridworld_{0}x{1}".format(dom_size[0], dom_size[1])

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

3 participants