-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 integrating custom data parser #3491
Comments
I managed to solve the problem by adding a custom union type
and use it as the type hint for |
This solved my problem, too! But note that it is not "typo" package, its name is "tyro". pip install tyro==0.8.12 |
LoL, look at what a |
Describe the bug
I am currently trying to implement my own variant of splafacto which include a custom data parser. However, while I am trying to run ns-install-cli I got an error saying
subprocess.CalledProcessError: Command '['ns-train', '--tyro-print-completion', 'zsh']' returned non-zero exit status 1.
. This also breaksns-train -h
as I am getting errorAssertionError:
pipeline.datamanager.dataparserwas provided a default value of type <class 'splatfactoenv.splatfactoenv_dataparser.SplatfactoEnvDataParserConfig'> but no matching subcommand was found.
. I am running the code on wsl 20.04 with python 3.8 in conda environment. The nerfstudio version is 1.1.4.I am sort of confident about my code as the exact same code works on a ubuntu 20.04 machine with python 3.8, nerfstudio version 1.1.3 inside a virtual environment, but I am getting warning
/home/younger/work/nerfstudio/venv/lib/python3.8/site-packages/tyro/_resolver.py:437: UserWarning: <class 'splatfactoenv.splatfactoenv_dataparser.SplatfactoEnvDataParserConfig'> does not match any type in Union:
which looks similar to the error I am getting.To Reproduce
Steps to reproduce the behavior:
python3 -m pip install -e .
ns-install-cli
.Additional context
I think the problem is coming from splatfactoenv_config.py:L38 and splatfactoenv_datamanager.py:L29 as I require the
datapaser
fieldSplatfactoEnvDataManagerConfig
to have typeAnnotatedDataParserUnion
which doesn't include the data parser I am using (SplatfactoEnvDataParserConfig
). However, I am wondering how I should solve this issue?Full error message
The text was updated successfully, but these errors were encountered: