amdegroot / ssd.pytorch

A PyTorch Implementation of Single Shot MultiBox Detector
MIT License
5.12k stars 1.74k forks source link

Why match function in layers.box_utils.py has no return stuff? #576

Closed KimJunejune closed 2 years ago

KimJunejune commented 2 years ago

the annotation in the defination of the func said, it will return (The matched indices corresponding to 1)location and 2)confidence preds.). However, there is no return at the end of the func. And the func is used in multibox_loss.py to calculate loss. I wonder, without return, how can it be useful? I'd appreciate if anyone can answer my question.