mrnabati / CenterFusion

CenterFusion: Center-based Radar and Camera Fusion for 3D Object Detection
MIT License
545 stars 140 forks source link

Compatibility with Ubuntu 20.04? (`scikit-learn` version) #40

Open fabrizioschiano opened 3 years ago

fabrizioschiano commented 3 years ago

I am trying to install the packages required in the requirements.txt file but I get the following error:

pip install -r requirements.txt
ERROR: Could not find a version that satisfies the requirement scikit-learn==0.21.0 (from versions: 0.9, 0.10, 0.11, 0.12, 0.12.1, 0.13, 0.13.1, 0.14, 0.14.1, 0.15.0b1, 0.15.0b2, 0.15.0, 0.15.1, 0.15.2, 0.16b1, 0.16.0, 0.16.1, 0.17b1, 0.17, 0.17.1, 0.18, 0.18.1, 0.18.2, 0.19b2, 0.19.0, 0.19.1, 0.19.2, 0.20rc1, 0.20.0, 0.20.1, 0.20.2, 0.20.3, 0.20.4, 0.21rc2, 0.21.1, 0.21.2, 0.21.3, 0.22rc2.post1, 0.22rc3, 0.22, 0.22.1, 0.22.2, 0.22.2.post1, 0.23.0rc1, 0.23.0, 0.23.1, 0.23.2, 0.24.dev0, 0.24.0rc1, 0.24.0, 0.24.1, 0.24.2, 1.0rc1, 1.0rc2, 1.0)
ERROR: No matching distribution found for scikit-learn==0.21.0

@mrnabati , is there a specific reason for using this version of scikit-learn?

thanks!

fabrizioschiano commented 3 years ago

I forgot to mention that I tried to just remove the hard constraint on the scikit-learn library. therefore, i just removed the ==0.21.0

The problem with this is that I then have the following error when running bash experiments/test.sh

Using tensorboardX
Traceback (most recent call last):
  File "test.py", line 19, in <module>
    from detector import Detector
  File "/home/fabrizioschiano/repositories/CenterFusion/src/lib/detector.py", line 20, in <module>
    from utils.tracker import Tracker
  File "/home/fabrizioschiano/repositories/CenterFusion/src/lib/utils/tracker.py", line 2, in <module>
    from sklearn.utils.linear_assignment_ import linear_assignment
ModuleNotFoundError: No module named 'sklearn.utils.linear_assignment_'

For now I mitigated the error thanks to this answer: https://stackoverflow.com/a/62391260/2761849

But I am not sure it is a good solution and that it won't give me problems in the future.