qianguih / RSNet

This is the official implementation of RSNet.
Other
118 stars 42 forks source link

AttributeError: 'NoneType' object has no attribute 'data' #19

Open whuhxb opened 1 year ago

whuhxb commented 1 year ago

Hi @qianguih Have you ever met this bug? Thanks.

srun -p PV100q -n 1 -w node09 python train.py /export/home/hanxiaobing/Documents/PlaneNet_PlaneRCNN/DGCNN_PointNet2/SensatUrban/RSNet-code/RSNet_PlaneMask/load_data.py:35: H5pyDeprecationWarning: The default file mode will change to 'r' (read-only) in h5py 3.0. To suppress this warning, pass the mode you need to h5py.File(), or set the global default h5.get_config().default_file_mode, or set the environment variable H5PY_DEFAULT_READONLY=1. Available modes are: 'r', 'r+', 'w', 'w-'/'x', 'a'. See the docs for details. f = h5py.File(h5_filename) loading raw data... training set: ((16733, 4096, 9), (16733, 4096)) testing set: ((2212, 4096, 9), (2212, 4096)) Traceback (most recent call last): File "train.py", line 155, in model = RSNet(pool_type, num_slice) File "/export/home/hanxiaobing/Documents/PlaneNet_PlaneRCNN/DGCNN_PointNet2/SensatUrban/RSNet-code/RSNet_PlaneMask/net.py", line 105, in init self._initialize_weights() File "/export/home/hanxiaobing/Documents/PlaneNet_PlaneRCNN/DGCNN_PointNet2/SensatUrban/RSNet-code/RSNet_PlaneMask/net.py", line 249, in _initializeweights m.bias.data.zero() AttributeError: 'NoneType' object has no attribute 'data'