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

Error running the Demo #10

Open
samuelcerezoo opened this issue May 14, 2024 · 8 comments
Open

Error running the Demo #10

samuelcerezoo opened this issue May 14, 2024 · 8 comments

Comments

@samuelcerezoo
Copy link

Hi,

When i followed the steps for running the demo, i obtained

Traceback (most recent call last):
  File "visualizer.py", line 34, in <module>
    scalemat = np.load(f'Datasets/processed/Replica/scan{scanid}/cameras.npz')['scale_mat_0']
  File "/home/samuel/anaconda3/envs/nicer-slam/lib/python3.8/site-packages/numpy/lib/npyio.py", line 407, in load
    fid = stack.enter_context(open(os_fspath(file), "rb"))
FileNotFoundError: [Errno 2] No such file or directory: 'Datasets/processed/Replica/scan3/cameras.npz'

Can you help me please?

Thanks!

@OnHaDe
Copy link

OnHaDe commented May 22, 2024

Looks like you are using the wrong configuration.

@YerldSHO
Copy link

I also faced this problem. Haven't found a solution yet

@YerldSHO
Copy link

Where is Datasets/processed/Replica/scan{scanid}/cameras.npz? The error is that the file does not exist at the specified path

@samuelcerezoo
Copy link
Author

Exactly, the file is missing

@OnHaDe
Copy link

OnHaDe commented May 23, 2024

What are the steps you followed?
Demo 1 and 2 use /Datasets/processed/Demo as their data path.
The fact that you get the Replica path in your Error suggests the wrong config file

Call the visualizer script with --output "path"
The path needs to contain the word 'demo'
This is because of:
https://github.com/cvg/nicer-slam/blob/main/visualizer.py#L47-L49

@YerldSHO
Copy link

It's not entirely clear what you meant.

bash scripts/download_vis_replica_room2.sh
OUTPUT_FOLDER=exps/replica_3/2024_02_27_00_12_45sample_vis
python visualizer.py --output $OUTPUT_FOLDER

your example ->
bash scripts/download_vis_replica_room2.sh
OUTPUT_FOLDER=exps/replica_3/2024_02_27_00_12_45sample_vis replica
python visualizer.py --output $OUTPUT_FOLDER ???

@OnHaDe
Copy link

OnHaDe commented May 25, 2024

I answered under the assumption you are trying to run the demo and not the Replica dataset.
The Replica Dataset requires you to run the preprocessing first, which creates the camera.npz file (Unless the Replica dataset comes with one in which case you manually have to move it into the correct directory). I don't know why that is not pointed out except for the "Run" section of the Readme

@Zzh2000
Copy link
Collaborator

Zzh2000 commented Jun 22, 2024

You are right, cameras.npz is generated during the Replica dataset preprocessing, when running Demo many users will not have this file. I will later directly provide a cameras.npz for demo. Sorry for this confusion.

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

4 participants