Skip to content

AttributeError: 'NoneType' object has no attribute 'encodels' #5

@peteli25

Description

@peteli25

Traceback (most recent call last):
File "/root/miniconda3/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/root/miniconda3/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/root/PLNet-master/hawp/fsl/train.py", line 271, in
train(cfg, model, train_dataset, optimizer, scheduler, loss_reducer, checkpointer, arguments)
File "/root/PLNet-master/hawp/fsl/train.py", line 117, in train
loss_dict, extra_info = model(images,annotations)
File "/root/miniconda3/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
return forward_call(*input, **kwargs)
File "/root/PLNet-master/hawp/fsl/model/models.py", line 215, in forward
return self.forward_train(images, annotations=annotations)
File "/root/PLNet-master/hawp/fsl/model/models.py", line 540, in forward_train
targets , metas = self.hafm_encoder(annotations)
File "/root/PLNet-master/hawp/fsl/model/hafm.py", line 18, in call
t,m = self._process_per_image(ann)
File "/root/PLNet-master/hawp/fsl/model/hafm.py", line 67, in _process_per_image
lmap, _, _ = _C.encodels(lines,height,width,height,width,lines.size(0))
AttributeError: 'NoneType' object has no attribute 'encodels'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions