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

python nerfstudio/scripts/train.py neurad pandaset-data meets error #35

Closed
zjcs opened this issue Jun 20, 2024 · 10 comments
Closed

python nerfstudio/scripts/train.py neurad pandaset-data meets error #35

zjcs opened this issue Jun 20, 2024 · 10 comments
Assignees

Comments

@zjcs
Copy link

zjcs commented Jun 20, 2024

thans for your great work.when i use the docker,and root@4133cb1494b4:/workspace# python nerfstudio/scripts/train.py neurad pandaset-data
╭─ Parsing error ──────────────────────────────────────────────────────────────╮
│ Argument │
│ {depth-nerfacto,dnerf,generfacto,instant-ngp,instant-ngp-bounded,mipnerf,ner │
│ facto,nerfacto-big,nerfacto-huge,neus,neus-facto,phototourism,semantic-nerfw │
│ ,splatfacto,splatfacto-big,tensorf,vanilla-nerf,BioNeRF,igs2gs,in2n,in2n-sma │
│ ll,in2n-tiny,kplanes,kplanes-dynamic,lerf,lerf-big,lerf-lite,nerfgs,nerfplay │
│ er-nerfacto,nerfplayer-ngp,nerfsh,pynerf,pynerf-occupancy-grid,pynerf-synthe │
│ tic,seathru-nerf,seathru-nerf-lite,signerf,signerf_nerfacto,tetra-nerf,tetra │
│ -nerf-original,volinga,zipnerf}: invalid choice: 'neurad' (choose from │
│ 'depth-nerfacto', 'dnerf', 'generfacto', 'instant-ngp', │
│ 'instant-ngp-bounded', 'mipnerf', 'nerfacto', 'nerfacto-big', │
│ 'nerfacto-huge', 'neus', 'neus-facto', 'phototourism', 'semantic-nerfw', │
│ 'splatfacto', 'splatfacto-big', 'tensorf', 'vanilla-nerf', 'BioNeRF', │
│ 'igs2gs', 'in2n', 'in2n-small', 'in2n-tiny', 'kplanes', 'kplanes-dynamic', │
│ 'lerf', 'lerf-big', 'lerf-lite', 'nerfgs', 'nerfplayer-nerfacto', │
│ 'nerfplayer-ngp', 'nerfsh', 'pynerf', 'pynerf-occupancy-grid', │
│ 'pynerf-synthetic', 'seathru-nerf', 'seathru-nerf-lite', 'signerf', │
│ 'signerf_nerfacto', 'tetra-nerf', 'tetra-nerf-original', 'volinga', │
│ 'zipnerf') │
│ ──────────────────────────────────────────────────────────────────────────── │
│ For full helptext, run train.py --help │

also,pandaset-data is not work

@Andyshen555
Copy link

Andyshen555 commented Jun 25, 2024

Hi, when I am building the docker, I ran into

> [15/18] RUN cd /nerfstudio && python3.10 -m pip install --no-cache-dir -e .:                  
0.554 Obtaining file:///nerfstudio                                                               
0.554 ERROR: file:///nerfstudio does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.
------
Dockerfile:146
--------------------
 144 |     
 145 |     # Install nerfstudio dependencies.
 146 | >>> RUN cd /nerfstudio && python3.10 -m pip install --no-cache-dir -e .
 147 |     
 148 |     # Make sure viser client is built
--------------------
ERROR: failed to solve: process "/bin/bash -c cd /nerfstudio && python3.10 -m pip install --no-cache-dir -e ." did not complete successfully: exit code: 1

Can you please elaborate on how to solve this problem? Thank you.

@georghess georghess self-assigned this Jul 2, 2024
@georghess
Copy link
Owner

How are you building your docker? Did you clone this repo and then run docker build -t neurad .?

@zjcs your trace looks like you are trying to run nerfstudio, not neurad-studio, as many of those methods are not in our method_config.py.

@zjcs
Copy link
Author

zjcs commented Jul 2, 2024

Hi, when I am building the docker, I ran into

> [15/18] RUN cd /nerfstudio && python3.10 -m pip install --no-cache-dir -e .:                  
0.554 Obtaining file:///nerfstudio                                                               
0.554 ERROR: file:///nerfstudio does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.
------
Dockerfile:146
--------------------
 144 |     
 145 |     # Install nerfstudio dependencies.
 146 | >>> RUN cd /nerfstudio && python3.10 -m pip install --no-cache-dir -e .
 147 |     
 148 |     # Make sure viser client is built
--------------------
ERROR: failed to solve: process "/bin/bash -c cd /nerfstudio && python3.10 -m pip install --no-cache-dir -e ." did not complete successfully: exit code: 1

Can you please elaborate on how to solve this problem? Thank you.

It seems a long time after I met this issue. In my memory, it seems that you should update the setuptools to higher version. But I am not sure, this issue is due to the new python projection manangement, toml instead of setup.py.

@zjcs
Copy link
Author

zjcs commented Jul 2, 2024

How are you building your docker? Did you clone this repo and then run docker build -t neurad .?

@zjcs your trace looks like you are trying to run nerfstudio, not neurad-studio, as many of those methods are not in our method_config.py.

Thanks for your reply. I almost have forgot this issuse since other work. It seems that you are right, but I have no time to check it.

@georghess
Copy link
Owner

I should mention that there seem to be some installation issues, as raised in #33. Investigating this currently.

@Andyshen555
Copy link

@zjcs @georghess Thank you very much for the help. I was new to docker and had no idea that running docker build -< Dockerfile does not link to my local folder. For anyone that runs into time out during pip install -e ., I had the problem solved by tightening the version check in .toml for torch and torchmetrics.

@georghess
Copy link
Owner

@Andyshen555 could you elaborate on what spans of versions you used?

@Andyshen555
Copy link

I specifically set:

"setuptools==69.5.1,"
...
"torch==2.0.1",
"torchvision==0.15.2",
"torchmetrics[image]==1.3.2"

Works with cu117 and cu118, both tested.
When using the original .toml, both my docker and my conda env had a problem that tried to install torchmetrics 1.4.0 but could not solve dependencies conflicts with torch.

@zjcs
Copy link
Author

zjcs commented Jul 2, 2024 via email

@georghess
Copy link
Owner

After some digging, I found that pinning numpy<2.0 should resolve installation issues. Let me know if you need any further help.

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