Skip to content

FileNotFoundError: stats.txt not found #11

Open

Description

@Shuhul24

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?

Activity

  1. chenusc11 commented on Mar 27, 2025

    @chenusc11
    Collaborator

    Hi, are you able to solve this? @Shuhul24

    It looks like a path error

    Please let me know if you still have the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions