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

scannet.py FileNotFoundError #132

Open
guardian1213812138 opened this issue May 20, 2023 · 2 comments
Open

scannet.py FileNotFoundError #132

guardian1213812138 opened this issue May 20, 2023 · 2 comments

Comments

@guardian1213812138
Copy link

When I run the main.py, the error message 'FileNotFoundError: [Errno 2] No such file or directory:'home/////data''appears, which is located in scannet. py. But the corresponding file can be found in the corresponding path. The detailed error information is as follows.

creating log file ./checkpoints/20230520_160409_train.log
Traceback (most recent call last):
File "/home/a123/ShiShi/NeuralRecon/NeuralRecon-master/venv/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3508, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in
runfile('/home/a123/ShiShi/NeuralRecon/NeuralRecon-master/main.py', args=['--cfg', './config/train.yaml'], wdir='/home/a123/ShiShi/NeuralRecon/NeuralRecon-master')
File "/home/a123/pycharm-2021.3/plugins/python/helpers/pydev/_pydev_bundle/pydev_umd.py", line 198, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File "/home/a123/pycharm-2021.3/plugins/python/helpers/pydev/_pydev_imps/pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/home/a123/ShiShi/NeuralRecon/NeuralRecon-master/main.py", line 117, in
train_dataset = MVSDataset(cfg.TRAIN.PATH, "train", transforms, cfg.TRAIN.N_VIEWS, len(cfg.MODEL.THRESHOLDS) - 1)
File "/home/a123/ShiShi/NeuralRecon/NeuralRecon-master/datasets/scannet.py", line 19, in init
self.metas = self.build_list()
File "/home/a123/ShiShi/NeuralRecon/NeuralRecon-master/datasets/scannet.py", line 32, in build_list
with open(os.path.join('home/a123/ShiShi/NeuralRecon/NeuralRecon-master/data', self.tsdf_file, 'fragments
{}.pkl'.format(self.mode)), 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'home/a123/ShiShi/NeuralRecon/NeuralRecon-master/data/all_tsdf_9/fragments_train.pkl'

I would greatly appreciate it if you could solve this problem.

@guardian1213812138
Copy link
Author

scannet.py line 32
with open(os.path.join('home/a123/ShiShi/NeuralRecon/NeuralRecon-master/data', self.tsdf_file, 'fragments_{}.pkl'.format(self.mode)), 'rb') as f:

@Jamesgender
Copy link

If you finished the process of generating GT, the fragments_train.pkl will be there.

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

2 participants