Pointnet2_PyTorch icon indicating copy to clipboard operation
Pointnet2_PyTorch copied to clipboard

Pytorch 1.0 running problem

Open Simon-Ace opened this issue 5 years ago • 9 comments

Hello, when I try to run the project with code python -m pointnet2.train.train_sem_seg, I got the following error.

=====>
Initializing visdom env [main]
server: http://localhost, port: 8097
Exception in user code:
------------------------------------------------------------
Traceback (most recent call last):
  File "/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.5/http/client.py", line 1106, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python3.5/http/client.py", line 1151, in _send_request
    self.endheaders(body)
  File "/usr/lib/python3.5/http/client.py", line 1102, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python3.5/http/client.py", line 934, in _send_output
    self.send(msg)
  File "/usr/lib/python3.5/http/client.py", line 877, in send
    self.connect()
  File "/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7facd10fefd0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /env/main (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7facd10fefd0>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/visdom/__init__.py", line 446, in _send
    data=json.dumps(msg),
  File "/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /env/main (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7facd10fefd0>: Failed to establish a new connection: [Errno 111] Connection refused',))
Without the incoming socket you cannot receive events from the server or register event handlers to your Visdom client.
<=====
Exception in user code:
------------------------------------------------------------
Traceback (most recent call last):
  File "/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.5/http/client.py", line 1106, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python3.5/http/client.py", line 1151, in _send_request
    self.endheaders(body)
  File "/usr/lib/python3.5/http/client.py", line 1102, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python3.5/http/client.py", line 934, in _send_output
    self.send(msg)
  File "/usr/lib/python3.5/http/client.py", line 877, in send
    self.connect()
  File "/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7facd111ff60>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /events (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7facd111ff60>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/visdom/__init__.py", line 446, in _send
    data=json.dumps(msg),
  File "/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /events (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7facd111ff60>: Failed to establish a new connection: [Errno 111] Connection refused',))
epochs:   0%|                                           | 0/200 [00:00<?, ?it/s]
Traceback (most recent call last):                                              
  File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/custom/1_project/post_201812/Pointnet2_PyTorch-pytorch-1.0.0/pointnet2/train/train_sem_seg.py", line 151, in <module>
    best_loss=best_loss
  File "/custom/1_project/post_201812/Pointnet2_PyTorch-pytorch-1.0.0/pointnet2/utils/pytorch_utils/pytorch_utils.py", line 756, in train
    res = self._train_it(it, batch)
  File "/custom/1_project/post_201812/Pointnet2_PyTorch-pytorch-1.0.0/pointnet2/utils/pytorch_utils/pytorch_utils.py", line 692, in _train_it
    _, loss, eval_res = self.model_fn(self.model, batch)
  File "/custom/1_project/post_201812/Pointnet2_PyTorch-pytorch-1.0.0/pointnet2/models/pointnet2_msg_sem.py", line 19, in model_fn
    preds = model(inputs)
  File "/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/nn/modules/module.py", line 489, in __call__
    result = self.forward(*input, **kwargs)
  File "/custom/1_project/post_201812/Pointnet2_PyTorch-pytorch-1.0.0/pointnet2/models/pointnet2_msg_sem.py", line 143, in forward
    li_xyz, li_features = self.SA_modules[i](l_xyz[i], l_features[i])
  File "/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/nn/modules/module.py", line 489, in __call__
    result = self.forward(*input, **kwargs)
  File "/custom/1_project/post_201812/Pointnet2_PyTorch-pytorch-1.0.0/pointnet2/utils/pointnet2_modules.py", line 42, in forward
    1, 2).contiguous() if self.npoint is not None else None
  File "/custom/1_project/post_201812/Pointnet2_PyTorch-pytorch-1.0.0/pointnet2/utils/pointnet2_utils.py", line 46, in forward
    return _ext.furthest_point_sampling(xyz, npoint)
AttributeError: module 'pointnet2._ext' has no attribute 'furthest_point_sampling'

the main problem seems to be in the folder _ext doesn't have the function or file which name is furthest_point_sampling. How to solve this problem? thanks

Simon-Ace avatar Dec 21 '18 03:12 Simon-Ace

Did you run python setup.py install? The _ext folder in the source tree only contains the c++/cuda needed to build the _ext module.

erikwijmans avatar Dec 21 '18 04:12 erikwijmans

Thanks for your reply. I have rebuilt my project with your suggestion but still have the same error. (I remember that I have run this command in my first try.)

When I run this command python setup.py install, I got some warnings:

running install
running bdist_egg
running egg_info
creating pointnet2.egg-info
writing top-level names to pointnet2.egg-info/top_level.txt
writing dependency_links to pointnet2.egg-info/dependency_links.txt
writing pointnet2.egg-info/PKG-INFO
writing manifest file 'pointnet2.egg-info/SOURCES.txt'
package init file 'pointnet2/utils/pytorch_utils/__init__.py' not found (or not a regular file)
reading manifest file 'pointnet2.egg-info/SOURCES.txt'
writing manifest file 'pointnet2.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib.linux-x86_64-3.5
creating build/lib.linux-x86_64-3.5/pointnet2
copying pointnet2/__init__.py -> build/lib.linux-x86_64-3.5/pointnet2
creating build/lib.linux-x86_64-3.5/pointnet2/utils
copying pointnet2/utils/pointnet2_modules.py -> build/lib.linux-x86_64-3.5/pointnet2/utils
copying pointnet2/utils/pointnet2_utils.py -> build/lib.linux-x86_64-3.5/pointnet2/utils
copying pointnet2/utils/__init__.py -> build/lib.linux-x86_64-3.5/pointnet2/utils
copying pointnet2/utils/linalg_utils.py -> build/lib.linux-x86_64-3.5/pointnet2/utils
creating build/lib.linux-x86_64-3.5/pointnet2/data
copying pointnet2/data/data_utils.py -> build/lib.linux-x86_64-3.5/pointnet2/data
copying pointnet2/data/Indoor3DSemSegLoader.py -> build/lib.linux-x86_64-3.5/pointnet2/data
copying pointnet2/data/ModelNet40Loader.py -> build/lib.linux-x86_64-3.5/pointnet2/data
copying pointnet2/data/__init__.py -> build/lib.linux-x86_64-3.5/pointnet2/data
creating build/lib.linux-x86_64-3.5/pointnet2/models
copying pointnet2/models/pointnet2_msg_sem.py -> build/lib.linux-x86_64-3.5/pointnet2/models
copying pointnet2/models/pointnet2_msg_cls.py -> build/lib.linux-x86_64-3.5/pointnet2/models
copying pointnet2/models/pointnet2_ssg_sem.py -> build/lib.linux-x86_64-3.5/pointnet2/models
copying pointnet2/models/__init__.py -> build/lib.linux-x86_64-3.5/pointnet2/models
copying pointnet2/models/pointnet2_ssg_cls.py -> build/lib.linux-x86_64-3.5/pointnet2/models
creating build/lib.linux-x86_64-3.5/pointnet2/train
copying pointnet2/train/train_sem_seg.py -> build/lib.linux-x86_64-3.5/pointnet2/train
copying pointnet2/train/__init__.py -> build/lib.linux-x86_64-3.5/pointnet2/train
copying pointnet2/train/train_cls.py -> build/lib.linux-x86_64-3.5/pointnet2/train
running build_ext
/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/utils/cpp_extension.py:166: UserWarning: 

                               !! WARNING !!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Your compiler (x86_64-linux-gnu-g++) is not compatible with the compiler Pytorch was
built with for this platform, which is g++ on linux. Please
use g++ to to compile your extension. Alternatively, you may
compile PyTorch from source using x86_64-linux-gnu-g++, and then you can also use
x86_64-linux-gnu-g++ to compile your extension.

See https://github.com/pytorch/pytorch/blob/master/CONTRIBUTING.md for help
with compiling PyTorch from source.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

                              !! WARNING !!

  platform=sys.platform))
building 'pointnet2._ext' extension
creating build/temp.linux-x86_64-3.5
creating build/temp.linux-x86_64-3.5/pointnet2
creating build/temp.linux-x86_64-3.5/pointnet2/_ext
creating build/temp.linux-x86_64-3.5/pointnet2/_ext/src
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include/TH -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include/THC -I/usr/local/cuda/include -I/usr/include/python3.5m -I/home/bistu/.virtualenvs/py3torch/include/python3.5m -c pointnet2/_ext/src/interpolate.cpp -o build/temp.linux-x86_64-3.5/pointnet2/_ext/src/interpolate.o -O2 -Ipointnet2/_ext/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include/TH -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include/THC -I/usr/local/cuda/include -I/usr/include/python3.5m -I/home/bistu/.virtualenvs/py3torch/include/python3.5m -c pointnet2/_ext/src/bindings.cpp -o build/temp.linux-x86_64-3.5/pointnet2/_ext/src/bindings.o -O2 -Ipointnet2/_ext/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include/TH -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include/THC -I/usr/local/cuda/include -I/usr/include/python3.5m -I/home/bistu/.virtualenvs/py3torch/include/python3.5m -c pointnet2/_ext/src/ball_query.cpp -o build/temp.linux-x86_64-3.5/pointnet2/_ext/src/ball_query.o -O2 -Ipointnet2/_ext/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include/TH -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include/THC -I/usr/local/cuda/include -I/usr/include/python3.5m -I/home/bistu/.virtualenvs/py3torch/include/python3.5m -c pointnet2/_ext/src/group_points.cpp -o build/temp.linux-x86_64-3.5/pointnet2/_ext/src/group_points.o -O2 -Ipointnet2/_ext/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include/TH -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include/THC -I/usr/local/cuda/include -I/usr/include/python3.5m -I/home/bistu/.virtualenvs/py3torch/include/python3.5m -c pointnet2/_ext/src/sampling.cpp -o build/temp.linux-x86_64-3.5/pointnet2/_ext/src/sampling.o -O2 -Ipointnet2/_ext/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
/usr/local/cuda/bin/nvcc -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include/TH -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include/THC -I/usr/local/cuda/include -I/usr/include/python3.5m -I/home/bistu/.virtualenvs/py3torch/include/python3.5m -c pointnet2/_ext/src/interpolate_gpu.cu -o build/temp.linux-x86_64-3.5/pointnet2/_ext/src/interpolate_gpu.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options '-fPIC' -O2 -Ipointnet2/_ext/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
/usr/local/cuda/bin/nvcc -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include/TH -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include/THC -I/usr/local/cuda/include -I/usr/include/python3.5m -I/home/bistu/.virtualenvs/py3torch/include/python3.5m -c pointnet2/_ext/src/group_points_gpu.cu -o build/temp.linux-x86_64-3.5/pointnet2/_ext/src/group_points_gpu.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options '-fPIC' -O2 -Ipointnet2/_ext/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
/usr/local/cuda/bin/nvcc -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include/TH -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include/THC -I/usr/local/cuda/include -I/usr/include/python3.5m -I/home/bistu/.virtualenvs/py3torch/include/python3.5m -c pointnet2/_ext/src/ball_query_gpu.cu -o build/temp.linux-x86_64-3.5/pointnet2/_ext/src/ball_query_gpu.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options '-fPIC' -O2 -Ipointnet2/_ext/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
/usr/local/cuda/bin/nvcc -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include/TH -I/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/torch/lib/include/THC -I/usr/local/cuda/include -I/usr/include/python3.5m -I/home/bistu/.virtualenvs/py3torch/include/python3.5m -c pointnet2/_ext/src/sampling_gpu.cu -o build/temp.linux-x86_64-3.5/pointnet2/_ext/src/sampling_gpu.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options '-fPIC' -O2 -Ipointnet2/_ext/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.5/pointnet2/_ext/src/interpolate.o build/temp.linux-x86_64-3.5/pointnet2/_ext/src/bindings.o build/temp.linux-x86_64-3.5/pointnet2/_ext/src/ball_query.o build/temp.linux-x86_64-3.5/pointnet2/_ext/src/group_points.o build/temp.linux-x86_64-3.5/pointnet2/_ext/src/sampling.o build/temp.linux-x86_64-3.5/pointnet2/_ext/src/interpolate_gpu.o build/temp.linux-x86_64-3.5/pointnet2/_ext/src/group_points_gpu.o build/temp.linux-x86_64-3.5/pointnet2/_ext/src/ball_query_gpu.o build/temp.linux-x86_64-3.5/pointnet2/_ext/src/sampling_gpu.o -L/usr/local/cuda/lib64 -lcudart -o build/lib.linux-x86_64-3.5/pointnet2/_ext.cpython-35m-x86_64-linux-gnu.so
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/pointnet2
creating build/bdist.linux-x86_64/egg/pointnet2/utils
copying build/lib.linux-x86_64-3.5/pointnet2/utils/pointnet2_modules.py -> build/bdist.linux-x86_64/egg/pointnet2/utils
copying build/lib.linux-x86_64-3.5/pointnet2/utils/pointnet2_utils.py -> build/bdist.linux-x86_64/egg/pointnet2/utils
copying build/lib.linux-x86_64-3.5/pointnet2/utils/__init__.py -> build/bdist.linux-x86_64/egg/pointnet2/utils
copying build/lib.linux-x86_64-3.5/pointnet2/utils/linalg_utils.py -> build/bdist.linux-x86_64/egg/pointnet2/utils
creating build/bdist.linux-x86_64/egg/pointnet2/models
copying build/lib.linux-x86_64-3.5/pointnet2/models/pointnet2_msg_sem.py -> build/bdist.linux-x86_64/egg/pointnet2/models
copying build/lib.linux-x86_64-3.5/pointnet2/models/pointnet2_msg_cls.py -> build/bdist.linux-x86_64/egg/pointnet2/models
copying build/lib.linux-x86_64-3.5/pointnet2/models/pointnet2_ssg_sem.py -> build/bdist.linux-x86_64/egg/pointnet2/models
copying build/lib.linux-x86_64-3.5/pointnet2/models/__init__.py -> build/bdist.linux-x86_64/egg/pointnet2/models
copying build/lib.linux-x86_64-3.5/pointnet2/models/pointnet2_ssg_cls.py -> build/bdist.linux-x86_64/egg/pointnet2/models
creating build/bdist.linux-x86_64/egg/pointnet2/train
copying build/lib.linux-x86_64-3.5/pointnet2/train/train_sem_seg.py -> build/bdist.linux-x86_64/egg/pointnet2/train
copying build/lib.linux-x86_64-3.5/pointnet2/train/__init__.py -> build/bdist.linux-x86_64/egg/pointnet2/train
copying build/lib.linux-x86_64-3.5/pointnet2/train/train_cls.py -> build/bdist.linux-x86_64/egg/pointnet2/train
copying build/lib.linux-x86_64-3.5/pointnet2/_ext.cpython-35m-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/egg/pointnet2
creating build/bdist.linux-x86_64/egg/pointnet2/data
copying build/lib.linux-x86_64-3.5/pointnet2/data/data_utils.py -> build/bdist.linux-x86_64/egg/pointnet2/data
copying build/lib.linux-x86_64-3.5/pointnet2/data/Indoor3DSemSegLoader.py -> build/bdist.linux-x86_64/egg/pointnet2/data
copying build/lib.linux-x86_64-3.5/pointnet2/data/ModelNet40Loader.py -> build/bdist.linux-x86_64/egg/pointnet2/data
copying build/lib.linux-x86_64-3.5/pointnet2/data/__init__.py -> build/bdist.linux-x86_64/egg/pointnet2/data
copying build/lib.linux-x86_64-3.5/pointnet2/__init__.py -> build/bdist.linux-x86_64/egg/pointnet2
byte-compiling build/bdist.linux-x86_64/egg/pointnet2/utils/pointnet2_modules.py to pointnet2_modules.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/pointnet2/utils/pointnet2_utils.py to pointnet2_utils.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/pointnet2/utils/__init__.py to __init__.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/pointnet2/utils/linalg_utils.py to linalg_utils.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/pointnet2/models/pointnet2_msg_sem.py to pointnet2_msg_sem.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/pointnet2/models/pointnet2_msg_cls.py to pointnet2_msg_cls.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/pointnet2/models/pointnet2_ssg_sem.py to pointnet2_ssg_sem.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/pointnet2/models/__init__.py to __init__.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/pointnet2/models/pointnet2_ssg_cls.py to pointnet2_ssg_cls.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/pointnet2/train/train_sem_seg.py to train_sem_seg.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/pointnet2/train/__init__.py to __init__.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/pointnet2/train/train_cls.py to train_cls.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/pointnet2/data/data_utils.py to data_utils.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/pointnet2/data/Indoor3DSemSegLoader.py to Indoor3DSemSegLoader.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/pointnet2/data/ModelNet40Loader.py to ModelNet40Loader.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/pointnet2/data/__init__.py to __init__.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/pointnet2/__init__.py to __init__.cpython-35.pyc
creating stub loader for pointnet2/_ext.cpython-35m-x86_64-linux-gnu.so
byte-compiling build/bdist.linux-x86_64/egg/pointnet2/_ext.py to _ext.cpython-35.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying pointnet2.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying pointnet2.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying pointnet2.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying pointnet2.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
pointnet2.__pycache__._ext.cpython-35: module references __file__
pointnet2.data.__pycache__.Indoor3DSemSegLoader.cpython-35: module references __file__
pointnet2.data.__pycache__.ModelNet40Loader.cpython-35: module references __file__
creating dist
creating 'dist/pointnet2-0.1-py3.5-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing pointnet2-0.1-py3.5-linux-x86_64.egg
removing '/home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/pointnet2-0.1-py3.5-linux-x86_64.egg' (and everything under it)
creating /home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/pointnet2-0.1-py3.5-linux-x86_64.egg
Extracting pointnet2-0.1-py3.5-linux-x86_64.egg to /home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages
pointnet2 0.1 is already the active version in easy-install.pth

Installed /home/bistu/.virtualenvs/py3torch/lib/python3.5/site-packages/pointnet2-0.1-py3.5-linux-x86_64.egg
Processing dependencies for pointnet2==0.1
Finished processing dependencies for pointnet2==0.1

Seems like my compiler is not compatible with your compiler. Is this probably the source of the problem?

Simon-Ace avatar Dec 24 '18 01:12 Simon-Ace

Besides the warning, the rest of it looks fine/is what I would expect, so I would take that warning fairly seriously.

I am currently using g++ 5.4.0 to compile things, so I know that works. I don't have any control over the compiler pytorch uses to compile things, so can you give that a try on your end?

erikwijmans avatar Dec 24 '18 08:12 erikwijmans

Hi @Simon-Ace , Maybe you do run python -m pointnet2.train.train_sem_seg from the Pointnet2_PyTorch directory. In this case there is a name conflict for pointnet2 (the python module you built and the directory in Pointnet2_PyTorch).

palanglois avatar Jan 03 '19 22:01 palanglois

@Simon-Ace @erikwijmans I have met the same error. It seems visdom caused the problem. When I comment two lines below https://github.com/erikwijmans/Pointnet2_PyTorch/blob/0c293e8491c2db994795e7b315e4002f38d1d9a7/pointnet2/train/train_cls.py#L139-L140 and set viz = None, then it works well. However, if so we can not see the training visualization. Maybe something in visdomviz.py needs update.

SSSuperMac avatar Jan 12 '19 07:01 SSSuperMac

I’ll take a look. Which version of visdom are you using?

erikwijmans avatar Jan 12 '19 13:01 erikwijmans

I’ll take a look. Which version of visdom are you using?

urllib3: 1.24.1 visdom: 0.1.8.6

SSSuperMac avatar Jan 13 '19 02:01 SSSuperMac

Hmmm. Those are the exact same versions I am using with no trouble. It is also very odd that initializing the visdom client has anything influence on the _ext module.

The PR that I landed in master earlier today changes the default logging to simple prints with train/val loss and accuracy after every epoch, so at least that will provide some level of logging if disabling visdom continues the be on the only fix for you.

erikwijmans avatar Jan 13 '19 02:01 erikwijmans

Yeah, I had tried the master in pytorch 0.4.1, and the same error occurred. So it seems the problem probably is caused by my environment, not your codes. I will try to find out that. Thanks very much for your response!

SSSuperMac avatar Jan 13 '19 08:01 SSSuperMac