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

something wrong with create_data.py #83

Open
shaonianG opened this issue Oct 23, 2024 · 5 comments
Open

something wrong with create_data.py #83

shaonianG opened this issue Oct 23, 2024 · 5 comments

Comments

@shaonianG
Copy link

i have download the scannet data set,then i try to run create_data.py to build train data,but this program show me this message

Traceback (most recent call last): File "tools/create_data.py", line 51, in <module> scannet_data_prep( File "tools/create_data.py", line 18, in scannet_data_prep create_indoor_info_file( File "D:\project\python\oneformer3d\tools\indoor_converter.py", line 54, in create_indoor_info_file infos_train = train_dataset.get_infos( File "D:\project\python\oneformer3d\tools\scannet_data_utils.py", line 281, in get_infos return list(infos) File "D:\software\anaconda3\envs\oneformer3d\lib\concurrent\futures\_base.py", line 619, in result_iterator yield fs.pop().result() File "D:\software\anaconda3\envs\oneformer3d\lib\concurrent\futures\_base.py", line 437, in result return self.__get_result() File "D:\software\anaconda3\envs\oneformer3d\lib\concurrent\futures\_base.py", line 389, in __get_result raise self._exception File "D:\software\anaconda3\envs\oneformer3d\lib\concurrent\futures\thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "D:\project\python\oneformer3d\tools\scannet_data_utils.py", line 185, in process_single_scene points = np.load(pts_filename) File "D:\software\anaconda3\envs\oneformer3d\lib\site-packages\numpy\lib\npyio.py", line 405, in load fid = stack.enter_context(open(os_fspath(file), "rb")) FileNotFoundError: [Errno 2] No such file or directory: '.\\data\\scannet\\scannet_instance_data\\scene0191_00_vert.npy
i want know how to solve this problem,thank you

@shaonianG
Copy link
Author

i execute this in terminal
python tools/create_data.py scannet --root-path .\data\scannet\ --out-dir .\data\scannet\ --extra-tag scannet

@col14m
Copy link
Collaborator

col14m commented Oct 23, 2024

Please follow the instruction provided here and run python batch_load_scannet_data.py before.

@shaonianG
Copy link
Author

thank you for your reply,
python batch_load_scannet_data.pyshow that
ModuleNotFoundError: No module named 'segmentator'
is anything worng with wy install about [mmdetection3d]?

@filaPro
Copy link
Owner

filaPro commented Oct 24, 2024

Please follow installation process from our Dockerfile including this line to install segmentor.

@shaonianG
Copy link
Author

thank you for you help,finally i decide to use s3dis data set and successfully prepared this data set
then i follow the
Backbone is pretrained on Structured3D and ScanNet. It can be [downloaded](https://github.com/oneformer3d/oneformer3d/releases/download/v1.0/instance-only-oneformer3d_1xb2_scannet-and-structured3d.pth) and put to work_dirs/tmp before training or trained
download this model and put it in
image
i run this line and get this error
# pre-train python tools/train.py configs/instance-only-oneformer3d_1xb2_scannet-and-structured3d.py

Traceback (most recent call last): File "tools/train.py", line 138, in <module> main() File "tools/train.py", line 127, in main runner = Runner.from_cfg(cfg) File "D:\software\anaconda3\envs\oneformer3d\lib\site-packages\mmengine\runner\runner.py", line 462, in from_cfg runner = cls( File "D:\software\anaconda3\envs\oneformer3d\lib\site-packages\mmengine\runner\runner.py", line 429, in __init__ self.model = self.build_model(model) File "D:\software\anaconda3\envs\oneformer3d\lib\site-packages\mmengine\runner\runner.py", line 836, in build_model model = MODELS.build(model) File "D:\software\anaconda3\envs\oneformer3d\lib\site-packages\mmengine\registry\registry.py", line 570, in build return self.build_func(cfg, *args, **kwargs, registry=self) File "D:\software\anaconda3\envs\oneformer3d\lib\site-packages\mmengine\registry\build_functions.py", line 232, in build_model_from_cfg return build_from_cfg(cfg, registry, default_args) File "D:\software\anaconda3\envs\oneformer3d\lib\site-packages\mmengine\registry\build_functions.py", line 100, in build_from_cfg raise KeyError( KeyError: 'InstanceOnlyOneFormer3D is not in the mmdet3d::model registry. Please check whether the value of InstanceOnlyOneFormer3Dis correct or it was registered as expected. More details can be found at https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#import-the-custom-module'
i read this code and mmdected3d's document but can't solve this error
looking for you help,thank you!

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

3 participants