-
Notifications
You must be signed in to change notification settings - Fork 2.5k
AttributeError: 'NoneType' object has no attribute 'split' #802
Comments
I have the same problem as you. But then I realize that I download CPU version of pytorch-nightly, so it can't find my GPU. |
I also faced this problem too,and I find the apex/amp/lists/torch._overrides.py and its 69 row is to get a GPU version ,I # it and this problem has been solved. Hope helpful for you. |
Hi.
error: |
comment:
|
I also faced this problem too,and I # (.apex/amp/lists/torch._overrides.py) 77-80 rows; and # (.apex/amp/utils.py) 8-9 rows. Then the problem was sloved, hope it's helpful for you. |
❓ Questions and Help
I have installed the repo following the instruction on INSTALL.md. When I was following this instruction for installing apex, I used "python setup.py install" instead of "python setup.py install --cuda_ext --cpp_ext", as suggested in this issue. When I try to run the demo, I get the following error
(maskrcnn_benchmark) ParisdeMacBook-Air:demo paris$ python webcam.py --min-image-size 300 MODEL.DEVICE cpu
Traceback (most recent call last):
File "webcam.py", line 6, in
from predictor import COCODemo
File "/Users/paris/maskrcnn-benchmark/demo/predictor.py", line 6, in
from maskrcnn_benchmark.modeling.detector import build_detection_model
File "/Users/paris/maskrcnn-benchmark/maskrcnn_benchmark/modeling/detector/init.py", line 2, in
from .detectors import build_detection_model
File "/Users/paris/maskrcnn-benchmark/maskrcnn_benchmark/modeling/detector/detectors.py", line 2, in
from .generalized_rcnn import GeneralizedRCNN
File "/Users/paris/maskrcnn-benchmark/maskrcnn_benchmark/modeling/detector/generalized_rcnn.py", line 11, in
from ..backbone import build_backbone
File "/Users/paris/maskrcnn-benchmark/maskrcnn_benchmark/modeling/backbone/init.py", line 2, in
from .backbone import build_backbone
File "/Users/paris/maskrcnn-benchmark/maskrcnn_benchmark/modeling/backbone/backbone.py", line 7, in
from maskrcnn_benchmark.modeling.make_layers import conv_with_kaiming_uniform
File "/Users/paris/maskrcnn-benchmark/maskrcnn_benchmark/modeling/make_layers.py", line 10, in
from maskrcnn_benchmark.layers import Conv2d
File "/Users/paris/maskrcnn-benchmark/maskrcnn_benchmark/layers/init.py", line 10, in
from .nms import nms
File "/Users/paris/maskrcnn-benchmark/maskrcnn_benchmark/layers/nms.py", line 5, in
from apex import amp
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 668, in _load_unlocked
File "", line 638, in _load_backward_compatible
File "/Users/paris/anaconda3/envs/maskrcnn_benchmark/lib/python3.7/site-packages/apex-0.1-py3.7.egg/apex/init.py", line 2, in
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 668, in _load_unlocked
File "", line 638, in _load_backward_compatible
File "/Users/paris/anaconda3/envs/maskrcnn_benchmark/lib/python3.7/site-packages/apex-0.1-py3.7.egg/apex/amp/init.py", line 1, in
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 668, in _load_unlocked
File "", line 638, in _load_backward_compatible
File "/Users/paris/anaconda3/envs/maskrcnn_benchmark/lib/python3.7/site-packages/apex-0.1-py3.7.egg/apex/amp/amp.py", line 3, in
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 668, in _load_unlocked
File "", line 638, in _load_backward_compatible
File "/Users/paris/anaconda3/envs/maskrcnn_benchmark/lib/python3.7/site-packages/apex-0.1-py3.7.egg/apex/amp/lists/torch_overrides.py", line 69, in
File "/Users/paris/anaconda3/envs/maskrcnn_benchmark/lib/python3.7/site-packages/apex-0.1-py3.7.egg/apex/amp/utils.py", line 9, in get_cuda_version
AttributeError: 'NoneType' object has no attribute 'split'
Can anyone help me figure this out?
The text was updated successfully, but these errors were encountered: