The version of Ultralytics for inference is not the same as the version of Ultralytics for training #16433
Replies: 2 comments
-
👋 Hello @wangyit1an, thank you for reaching out and your interest in Ultralytics 🚀! This is an automated response, but rest assured, an Ultralytics engineer will assist you soon. To address the issue where the Ultralytics version seems inconsistent between environments, make sure both your terminal and Python environment are aligned. It looks like there may be different installations on your system. You might need to check and update the package across your environments.
pip uninstall ultralytics
pip install -U ultralytics If this is a 🐛 Bug Report, please provide a minimum reproducible example to help us debug it further. For any custom training ❓ Questions, please provide as much information as possible, such as dataset samples and training logs, ensuring you're following the Tips for Best Training Results. Feel free to join the Ultralytics community for more support:
UpgradeEnsure you have the latest pip install -U ultralytics EnvironmentsYOLOv8 can be run in the following verified environments:
StatusA green badge indicates passing Ultralytics CI tests for all YOLOv8 Modes and Tasks on macOS, Windows, and Ubuntu. |
Beta Was this translation helpful? Give feedback.
-
@wangyit1an it seems like you have multiple versions of Ultralytics installed. Please ensure you are using the correct environment by running |
Beta Was this translation helpful? Give feedback.
-
When I use the command to enter in the terminal
(yolo8) PS F:\yolov8\ultralytics-main\ultralytics-main> pip show ultralytics
Name: ultralytics
Version: 8.2.99
But when I run the py program
import ultralytics
print(f"Current Ultralytics version: {ultralytics.version}")
Here the run shows
E:\anaconda\envs\yolo8\python.exe F:\yolov8\ultralytics-main\ultralytics-main\datasets\pose\shipingxielvceshi.py
Current Ultralytics version: 8.0.166
Traceback (most recent call last):
File "F:\yolov8\ultralytics-main\ultralytics-main\datasets\pose\shipingxielvceshi.py", line 33, in
results = model(frame)
.........
AttributeError: 'Pose' object has no attribute 'detect'
What should I do?
Beta Was this translation helpful? Give feedback.
All reactions