AlanLi1997 / slim-neck-by-gsconv

Pytorch implementation of the 'Slim-neck by GSConv: a lightweight-design for real-time detector architectures'
https://link.springer.com/article/10.1007/s11554-024-01436-6
GNU General Public License v3.0
188 stars 12 forks source link

TypeError: forward() takes 1 positional argument but 2 were given #15

Open jccmoing-bit opened 1 year ago

jccmoing-bit commented 1 year ago

Hello, I cloned your source code and tested it on the local server, and the following error message appeared: TypeError: forward() takes 1 positional argument but 2 were given

AlanLi1997 commented 1 year ago

forward() takes 1 positional argument but 2 were given

Hi, You need to provide a complete TraceBack to allow me to locate where the error occurred and find the cause. Please provide the complete reproducible code snippet. Please tell me more about the problem you're having (an example: I got an error at line100 when running the train.py, TraceBack: TypeError: forward() takes 1 positional argument but 2 were given).

jccmoing-bit commented 1 year ago

forward() takes 1 positional argument but 2 were given

Hi, You need to provide a complete TraceBack to allow me to locate where the error occurred and find the cause. Please provide the complete reproducible code snippet. Please tell me more about the problem you're having (an example: I got an error at line100 when running the train.py, TraceBack: TypeError: forward() takes 1 positional argument but 2 were given).

Thank you for your reply I have solved this problem .Thank you very much for your contribution