ifzhang / FairMOT

[IJCV-2021] FairMOT: On the Fairness of Detection and Re-Identification in Multi-Object Tracking
MIT License
3.99k stars 935 forks source link

Undefined name 'dla' in models/networks/dlav0.py #14

Closed cclauss closed 4 years ago

cclauss commented 4 years ago

https://github.com/ifzhang/FairMOT/blob/master/src/lib/models/networks/dlav0.py#L417

flake8 testing of https://github.com/ifzhang/FairMOT on Python 3.8.1

$ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics

./src/lib/models/networks/dlav0.py:417:5: F821 undefined name 'dla'
    dla.BatchNorm = bn
    ^
1     F821 undefined name 'dla'
1

https://flake8.pycqa.org/en/latest/user/error-codes.html

On the flake8 test selection, this PR does not focus on "style violations" (the majority of flake8 error codes that psf/black can autocorrect). Instead these tests are focus on runtime safety and correctness:

ifzhang commented 4 years ago

We do not use the model dlav0 and I will delete the error, so you can just ignore it.