JonasSchult / Mask3D

Mask3D predicts accurate 3D semantic instances achieving state-of-the-art on ScanNet, ScanNet200, S3DIS and STPLS3D.
MIT License
528 stars 105 forks source link

TypeError: __init__() got an unexpected keyword argument 'gpus' #70

Closed TobyZhouWei closed 1 year ago

TobyZhouWei commented 1 year ago

Hi, I am working to reproduce your excellent work on cloud server. I meet the problems like below: Traceback (most recent call last): File "/root/Mask3D-main/main_instance_segmentation.py", line 99, in main test(cfg) File "/root/miniconda3/envs/mask3d/lib/python3.9/site-packages/hydra/main.py", line 27, in decorated_main return task_function(cfg_passthrough) File "/root/Mask3D-main/main_instance_segmentation.py", line 86, in test runner = Trainer( File "/root/miniconda3/envs/mask3d/lib/python3.9/site-packages/pytorch_lightning/utilities/argparse.py", line 69, in insert_env_defaults return fn(self, **kwargs) TypeError: init() got an unexpected keyword argument 'gpus'. How can I solve this problems, thank you so much!

promesse commented 1 year ago

I met the same problem. How to fix it? Thanks

Wang-pengfei commented 1 year ago

I met the same problem. How to fix it? Thanks

I met the same problem. Did you solve this problem?

Wang-pengfei commented 1 year ago

Hi, I am working to reproduce your excellent work on cloud server. I meet the problems like below: Traceback (most recent call last): File "/root/Mask3D-main/main_instance_segmentation.py", line 99, in main test(cfg) File "/root/miniconda3/envs/mask3d/lib/python3.9/site-packages/hydra/main.py", line 27, in decorated_main return task_function(cfg_passthrough) File "/root/Mask3D-main/main_instance_segmentation.py", line 86, in test runner = Trainer( File "/root/miniconda3/envs/mask3d/lib/python3.9/site-packages/pytorch_lightning/utilities/argparse.py", line 69, in insert_env_defaults return fn(self, kwargs) TypeError: init**() got an unexpected keyword argument 'gpus'. How can I solve this problems, thank you so much!

I met the same problem. Did you solve this problem?

JonasSchult commented 1 year ago

Hi! :) Potentially some dependencies do not match. Try to set up the environment like this. Please let me know if it helped.

Best, Jonas

Wang-pengfei commented 1 year ago

Yes,you are right! I solved this problem by pip install pytorch-lightning==1.7.2

promesse commented 1 year ago

Yes,you are right! I soloved this problem by pip install pytorch-lightning==1.7.2

yes, the same way for me

TobyZhouWei commented 1 year ago

Hi, @JonasSchult Could you give me some suggestions about https://github.com/JonasSchult/Mask3D/issues/77. This has bothered me for a long time. Looking forward to your rely. Thank you!!!

JonasSchult commented 1 year ago

Hi! :)

Thanks for your interest in our work!

we have just released a fix which most likely will solve your issue. Just pull the latest version of the project and recreate your virtual python environment following the instructions here.

Previously, the issue occurred because we did not lock the packages in the Python environment to specific versions. We now made sure that the packages in the environment remain the same.

I will close the issue now. Please feel free to reopen it again if you continue to experience issues.

Best, Jonas