Update YOLOv8 Dependency Management and Import Path #17
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request aims to update the YOLOv8 project's installation and dependency management process in accordance with the latest PEP 517 and PEP 518 standards. Additionally, based on the discussion in Issue #14, I have updated the import path for the
select_device
function. These changes are intended to simplify the installation process, make dependency management more standardized and maintainable, and ensure compatibility with the latest version of the code.The specific changes are as follows:
pyproject.toml
file, and using pip (version 19.0 or higher) to run the installation command directly in the project's root directory, automatically installs the project and its dependencies. This simplifies the installation process and improves the standardization and maintainability of dependency management.select_device
function has been updated fromultralytics.yolo.utils.torch_utils
toultralytics.utils.torch_utils
to ensure compatibility with the project's latest structure, making the code clearer, easier to understand, and maintain.These updates aim to improve the overall quality and user experience of the project.