Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dddlli opened this issue Feb 2, 2025 · 0 comments
Open

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

dddlli opened this issue Feb 2, 2025 · 0 comments

Comments

@dddlli
Copy link

dddlli commented Feb 2, 2025

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant