Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Detection Class for TensorFlow 2.x and NumPy Compatibility #337

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

i-ninte
Copy link

@i-ninte i-ninte commented Nov 4, 2024

Pull Request Description:
This update refactors the Detection class to ensure compatibility with TensorFlow 2.x and current NumPy standards. Key changes include:

  • Replaced deprecated np.int and np.float types with standard int and float, aligning with modern NumPy practices.
  • Ensured confidence is explicitly set as float and feature uses np.float32 for optimal memory usage and compatibility with neural network models.
  • Refactored code for improved readability and adherence to Python 3 object-oriented practices.
    -Updated the import statement to utilize linear_sum_assignment from scipy.optimize, ensuring efficient assignment in optimization tasks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant