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

ImportError:cannot import name 'SceneManager' from 'scene_manager' #86

Closed
LHXhh opened this issue Oct 26, 2022 · 5 comments
Closed

ImportError:cannot import name 'SceneManager' from 'scene_manager' #86

LHXhh opened this issue Oct 26, 2022 · 5 comments

Comments

@LHXhh
Copy link

LHXhh commented Oct 26, 2022

It works on lego dataset, but ween I try the llff dataset, There is an ImportError, could you please help me.
And I have seen the package in /root/miniconda3/envs/nerfacc/lib/python3.9/site-packages/scene_manager, There is nothing package such as SceneManager.
Thank you very much.

(nerfacc) root@container-0f5011ad3c-f66f17d1:~/autodl-tmp/nerfacc# python examples/train_mlp_nerf.py --scene garden --unbounded
Using unbounded rendering
Traceback (most recent call last):
File "/root/autodl-tmp/nerfacc/examples/train_mlp_nerf.py", line 113, in
from datasets.nerf_360_v2 import SubjectLoader
File "/root/autodl-tmp/nerfacc/examples/datasets/nerf_360_v2.py", line 22, in
from scene_manager import SceneManager
ImportError: cannot import name 'SceneManager' from 'scene_manager' (/root/miniconda3/envs/nerfacc/lib/python3.9/site-packages/scene_manager/init.py)

scene-manager 0.1.0

@liruilong940607
Copy link
Collaborator

please see #69 (comment)

@LHXhh
Copy link
Author

LHXhh commented Oct 26, 2022

Thank you very much!

@LHXhh
Copy link
Author

LHXhh commented Oct 26, 2022

One more question, I want to train the llff dataset by python ./examples/train_mlp_nerf.py --train_split train --scene garden --unbounded --cone_angle=0.004,but there is something wrong with it.
If I want to train the llff dataset, what should I do? Thank you very much.

(nerfacc) root@container-0f5011ad3c-f66f17d1:~/autodl-tmp/nerfacc# python ./examples/train_mlp_nerf.py --train_split train --scene garden --unbounded
Using unbounded rendering
Traceback (most recent call last):
File "/root/autodl-tmp/nerfacc/./examples/train_mlp_nerf.py", line 128, in
train_dataset = SubjectLoader(
File "/root/autodl-tmp/nerfacc/examples/datasets/nerf_360_v2.py", line 186, in init
self.images, self.camtoworlds, self.K = _load_colmap(
File "/root/autodl-tmp/nerfacc/examples/datasets/nerf_360_v2.py", line 101, in _load_colmap
assert params is None, "Only support pinhole camera model."
AssertionError: Only support pinhole camera model.

@liruilong940607
Copy link
Collaborator

liruilong940607 commented Oct 26, 2022

Hi I'm not quite familiar with llff dataset so I'm afraid I can't help you with that.

@LHXhh
Copy link
Author

LHXhh commented Oct 27, 2022

Never mind, Thank you very much.

@LHXhh LHXhh closed this as completed Oct 27, 2022
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