Skip to content
This repository was archived by the owner on Nov 20, 2023. It is now read-only.

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

@whuhxb

Description

@whuhxb

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 initialize_weights
m.bias.data.zero
()
AttributeError: 'NoneType' object has no attribute 'data'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions