liuzhengzhe / One-Thing-One-Click

https://arxiv.org/abs/2104.02246 One Thing One Click (CVPR 2021) https://arxiv.org/abs/2303.14727 One Thing One Click++ (Arxiv)
53 stars 8 forks source link

ImportErrors on spconv #17

Closed Kaisyouu closed 2 years ago

Kaisyouu commented 2 years ago

Hello, I followed your instructions and got everything (environment) ready to run the code. However, I found it difficult to run the self training part.

CUDA_VISIBLE_DEVICES=0 python train.py --config config/pointgroup_run1_scannet.yaml 

It shows ImportError: cannot import name 'spconv_utils' from 'spconv' (/.../One-Thing-One-Click/3D-U-Net/spconv/__init__.py) I managed to fix spconv by reinstalling it, and it can be imported smoothly in other folders.

Kindly notice that there is a folder /.../One-Thing-One-Click/3D-U-Net/spconv called spconv, and python will automatically refer to this folder while doing like import spconv. But the folder is apparently not the right path that can start up spconv, the right path is /.../One-Thing-One-Click/relations/lib/spconv right? As we mentioned in the installation part.

It's not a proper way to understand what this folder /.../One-Thing-One-Click/3D-U-Net/spconv is used to do by reading EVERY FILE in it.

So I got a little bit confused. Can you please give some instructions on this issue? ^w^

liuzhengzhe commented 2 years ago

Hi, can you try to copy the spconv folder in the folder where you run the code? make sure /the_folder_calling_the_program/spconv/utils exists.

Kaisyouu @.***> 于2022年3月1日周二 18:27写道:

Hello, I followed your instructions and got everything (environment) ready to run the code. However, I found it difficult to run the self training part.

CUDA_VISIBLE_DEVICES=0 python train.py --config config/pointgroup_run1_scannet.yaml

It shows ImportError: cannot import name 'spconv_utils' from 'spconv' (/.../One-Thing-One-Click/3D-U-Net/spconv/init.py) I managed to fix spconv by reinstalling it, and it can be imported smoothly in other folders.

Kindly notice that there is a folder /.../One-Thing-One-Click/3D-U-Net/spconv called spconv, and python will automatically refer to this folder while doing like import spconv. But the folder is apparently not the right path that can start up spconv, the right path is /.../One-Thing-One-Click/relations/lib/spconv right? As we mentioned in the installation part.

It's not a proper way to understand what this folder /.../One-Thing-One-Click/3D-U-Net/spconv is used to do by reading EVERY FILE in it.

So I got a little bit confused. Can you please give some instructions on this issue? ^w^

— Reply to this email directly, view it on GitHub https://github.com/liuzhengzhe/One-Thing-One-Click/issues/17, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB7WPDCXTJ3IA6YSQ7DYX4TU5XWKBANCNFSM5PTUD2EA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

Kaisyouu commented 2 years ago

Hi, can you try to copy the spconv folder in the folder where you run the code? make sure /the_folder_calling_the_program/spconv/utils exists. Kaisyouu @.***> 于2022年3月1日周二 18:27写道:

Hi, really appreciate your reply. Should I rename the file while copying? If rename is needed, which should be renamed, The installer-folder or the folder-in-running-path?

liuzhengzhe commented 2 years ago

Do not need rename.

Kaisyouu @.***> 于2022年3月2日周三 09:04写道:

Hi, can you try to copy the spconv folder in the folder where you run the code? make sure /the_folder_calling_the_program/spconv/utils exists. Kaisyouu @.***> 于2022年3月1日周二 18:27写道: … <#m8945584810058691981>

Hi, really appreciate your reply. Should I rename the file while copying? If rename is needed, which should be renamed, The installer-folder or the folder-in-running-path?

— Reply to this email directly, view it on GitHub https://github.com/liuzhengzhe/One-Thing-One-Click/issues/17#issuecomment-1056026190, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB7WPDF2ITHKTGD5PGOAU53U525ANANCNFSM5PTUD2EA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

Kaisyouu commented 2 years ago

Do not need rename. Kaisyouu @.> 于2022年3月2日周三 09:04写道: Hi, can you try to copy the spconv folder in the folder where you run the code? make sure /the_folder_calling_the_program/spconv/utils exists. Kaisyouu @.> 于2022年3月1日周二 18:27写道: … <#m8945584810058691981> Hi, really appreciate your reply. Should I rename the file while copying? If rename is needed, which should be renamed, The installer-folder or the folder-in-running-path? — Reply to this email directly, view it on GitHub <#17 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB7WPDF2ITHKTGD5PGOAU53U525ANANCNFSM5PTUD2EA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you commented.Message ID: @.***>

Thanks a lot, I will close this issue since it's been solved.