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

KeyError: 'k4' #5

Open
3dhermit opened this issue Sep 8, 2023 · 1 comment
Open

KeyError: 'k4' #5

3dhermit opened this issue Sep 8, 2023 · 1 comment
Assignees

Comments

@3dhermit
Copy link

3dhermit commented Sep 8, 2023

When I try to run the script I get this error, not sure what the issue is and any assistance would be awesome.

Command ran
python "C:\Users\PC\Instant-NGP\scripts\rc2nerf.py" --csv_in "dog.csv" --imgfolder .\images

What returned is :
(ngp) C:\Users\PC\Instant-NGP\data\nerf\example>python "C:\Users\PC\Instant-NGP\scripts\rc2nerf.py" --csv_in "dog.csv" --imgfolder .\images
Processing reality capture csv: 2%|▊ | 1/65 [00:01<01:42, 1.60s/it]Traceback (most recent call last):
File "C:\Users\PC.conda\envs\ngp\lib\site-packages\pandas\core\indexes\base.py", line 3653, in get_loc
return self._engine.get_loc(casted_key)
File "pandas_libs\index.pyx", line 147, in pandas._libs.index.IndexEngine.get_loc
File "pandas_libs\index.pyx", line 176, in pandas._libs.index.IndexEngine.get_loc
File "pandas_libs\hashtable_class_helper.pxi", line 7080, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas_libs\hashtable_class_helper.pxi", line 7088, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'k4'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\PC\Instant-NGP\scripts\rc2nerf.py", line 197, in
k4=row['k4'],
File "C:\Users\PC.conda\envs\ngp\lib\site-packages\pandas\core\series.py", line 1007, in getitem
return self._get_value(key)
File "C:\Users\PC.conda\envs\ngp\lib\site-packages\pandas\core\series.py", line 1116, in _get_value
loc = self.index.get_loc(label)
File "C:\Users\PC.conda\envs\ngp\lib\site-packages\pandas\core\indexes\base.py", line 3655, in get_loc
raise KeyError(key) from err
KeyError: 'k4'
Processing reality capture csv: 2%|▊ | 1/65 [00:03<03:18, 3.10s/it]

@3dhermit
Copy link
Author

3dhermit commented Sep 8, 2023

Figured the issue out, using old version of RC, the file format has changed in the newer version of RC, thank you so much for making this tool!

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