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

FileNotFoundError: stats.txt not found #11

Open
Shuhul24 opened this issue Feb 5, 2025 · 0 comments
Open

FileNotFoundError: stats.txt not found #11

Shuhul24 opened this issue Feb 5, 2025 · 0 comments

Comments

@Shuhul24
Copy link

Shuhul24 commented Feb 5, 2025

After git clone and setting the path of data to directory: data/7Scenes/, following is the command that I executed:

python run_nerf.py --config config_nerf.txt

Following is the error that I ended up with:

Traceback (most recent call last):
  File "direct-posenet/script/run_nerf.py", line 901, in <module>
    train()
  File "direct-posenet/script/run_nerf.py", line 604, in train
    train_dl, val_dl, hwf, i_split, bds, render_poses, render_img = load_7Scenes_dataloader_NeRF(args)
  File "direct-posenet/script/../dataset_loaders/load_7Scenes.py", line 489, in load_7Scenes_dataloader_NeRF
    stats = np.loadtxt(stats_filename)
  File "anaconda3/envs/directpose/lib/python3.9/site-packages/numpy/lib/_npyio_impl.py", line 1381, in loadtxt
    arr = _read(fname, dtype=dtype, comment=comment, delimiter=delimiter,
  File "anaconda3/envs/directpose/lib/python3.9/site-packages/numpy/lib/_npyio_impl.py", line 997, in _read
    fh = np.lib._datasource.open(fname, 'rt', encoding=encoding)
  File "anaconda3/envs/directpose/lib/python3.9/site-packages/numpy/lib/_datasource.py", line 192, in open
    return ds.open(path, mode, encoding=encoding, newline=newline)
  File "anaconda3/envs/directpose/lib/python3.9/site-packages/numpy/lib/_datasource.py", line 532, in open
    raise FileNotFoundError(f"{path} not found.")
FileNotFoundError: /data/7Scenes/heads/stats.txt not found.

How to overcome this? Do I need to do some sort of preprocessing (as mentioned in the repo) as done in MapNet?

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