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

Unable to Run #1

Closed
swarmt opened this issue Oct 6, 2018 · 5 comments
Closed

Unable to Run #1

swarmt opened this issue Oct 6, 2018 · 5 comments

Comments

@swarmt
Copy link

swarmt commented Oct 6, 2018

Results look excellent however unfortunately I am unable to run.

OS: Ubuntu 18.04
GPU: 1050ti

python3 ./pytorch/train.py evaluate --config_path=./configs/car.config --model_dir=pretrained_models/car/

Results in Segmentation fault (core dumped)

pip3 freeze

@traveller59
Copy link
Owner

  1. you need to change batch size to 1 in config file because 1050ti only have 4gb memory.
  2. use gdb or pdb to find problem location, I can't find problem in my environment, please provide more information.

@traveller59
Copy link
Owner

Do you modify files in SparseConvNet? I think your problem may due to this. pretrained model doesn't support SparseConvNet master, you need to follow README.md to modify some line after you install SparseConvNet.

@swarmt
Copy link
Author

swarmt commented Oct 6, 2018

That could be the issue.

Installing in a conda env I get the error.

g++ /tmp/tmp5yesv3u8.cc -o tmp5yesv3u8 -I/usr/include -L/usr/lib64 -lcudart /tmp/tmp5yesv3u8.cc:4:23: error: ‘::main’ must return ‘int’ void main(){ ^ g++ /tmp/tmpvyirytjp.cc -o tmpvyirytjp -I/usr/include -L/usr/lib64 -lcudart /tmp/tmpvyirytjp.cc:4:23: error: ‘::main’ must return ‘int’ void main(){ ^ Traceback (most recent call last): File "/home/code/second.pytorch/second/core/non_max_suppression/nms_cpu.py", line 10, in <module> from second.core.non_max_suppression.nms import ( ModuleNotFoundError: No module named 'second.core.non_max_suppression.nms'

Would you like me to create an installation script to replicate the install steps exactly? Might need to specify the pip versions as well.

@traveller59
Copy link
Owner

traveller59 commented Oct 6, 2018

@swarmt g++ error should be a problem during finding cuda arch, see this.. I have change the code to int main()... and fixed a serious bug, remember to update the code.
No, the install step only contains three step: 1) install dependencies. 2) install SparseConvNet. 3) prepare dataset.

@swarmt
Copy link
Author

swarmt commented Oct 6, 2018

Excellent. I think we can call it fixed.

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