엔지니어스 - Engineeus

from sklearn.utils.linear_assignment_ import linear_assignmentModuleNotFoundError: No module named 'sklearn.utils.linear_assignment_' 본문

Autonomous Tech./Error (Windows & Ubuntu)

from sklearn.utils.linear_assignment_ import linear_assignmentModuleNotFoundError: No module named 'sklearn.utils.linear_assignment_'

Engineeus 2021. 8. 23. 19:11
728x90

from sklearn.utils.linear_assignment_ import linear_assignment
ModuleNotFoundError: No module named 'sklearn.utils.linear_assignment_'

 

<problum is>

from sklearn.utils.linear_assignment_ import linear_assignment

 

<solution>

from scipy.optimize import linear_sum_assignment as linear_assignment

 

 

<if anotion error with sort.py>

sort.py", line 149, in associate_detections_to_trackers
    if(d not in matched_indices[:,0]):
TypeError: tuple indices must be integers or slices, not tuple

 

follow below post

https://mickael-k.tistory.com/215

 

TypeError: tuple indices must be integers or slices, not tuple

TypeError: tuple indices must be integers or slices, not tuple sklearn.utils.linear_assignment_ was replaced with scipy.optimize.linear_sum_assignment since the latter was pruned in the..

mickael-k.tistory.com

 

Comments