Traceback (most recent call last):


 "tools/train.py", line 323, in <module>

main()


 "tools/train.py", line 116, in main

train_fetches = model.train(feed_vars)


 "/home/aistudio/work/PaddleDetection-release-0.2/ppdet/modeling/architectures/yolactplus.py", line 98, in train

return self.build(feed_vars, 'train')


 "/home/aistudio/work/PaddleDetection-release-0.2/ppdet/modeling/architectures/yolactplus.py", line 88, in build

gt_box, gt_class, gt_segm, is_crowd, gt_num)


 "/home/aistudio/work/PaddleDetection-release-0.2/ppdet/modeling/anchor_heads/yolact_head.py", line 683, in get_loss

get_target_tensor(gt_box, priors, gt_class, is_crowd, gt_num, loc_data, batch_size, num_priors)


 "/home/aistudio/work/PaddleDetection-release-0.2/ppdet/modeling/anchor_heads/yolact_head.py", line 1385, in get_target_tensor

loc_t[idx] = loc
TypeError: 'Variable' object does not support item assignment

Traceback (most recent call last):


 "main.py", line 64, in <module>

model = LitModel.load_from_checkpoint(hparams.checkpoint)


 "/home/siahuat0727/.local/lib/python3.8/site-packages/pytorch_lightning/core/saving.py", line 138, in load_from_checkpoint

model = cls._load_model_state(checkpoint, *args, **kwargs)


 "/home/siahuat0727/.local/lib/python3.8/site-packages/pytorch_lightning/core/saving.py", line 174, in _load_model_state

model = cls(*cls_args, **cls_kwargs)


 "main.py", line 46, in __init__

super().__init__(*args, **kwargs)
TypeError: __init__() missing 1 required positional argument: 'hparams'
