Hello All, I am getting
AttributeError: module ‘supervision’ has no attribute ‘Detection’
Describe your question/issue here! (delete this when you post)
- Project Type:
- Operating System & Browser:
- Project Universe Link or Workspace/Project ID:
Based on the information provided in the extracts, it seems like you’re trying to use a ‘Detection’ attribute from the ‘supervision’ module, but it’s not recognized. This could be due to a few reasons:
- The ‘Detection’ attribute might not exist in the version of ‘supervision’ you’re using. The extracts mention the use of ‘supervision’ version 0.1.0. You can install this specific version using the following command:
pip install supervision==0.1.0
(Source: Roboflow Blog)
You might be trying to use an attribute or method that doesn’t exist in the ‘supervision’ module. The extracts provided don’t mention a ‘Detection’ attribute. You might want to double-check the attribute or method you’re trying to use.
There could be an issue with how you’re importing the ‘supervision’ module or its components. Make sure you’re importing the necessary components correctly. For example:
from supervision.video.dataclasses import VideoInfo
from supervision.video.sink import VideoSink
from supervision.video.source import get_video_frames_generator
(Source: Roboflow Blog)
If you’re still having issues, I recommend checking the Supervision documentation or the Supervision GitHub page for more detailed information.
Hi! I’m Roboflow’s AI powered bot. This is an automated response powered using AI with knowledge from our docs, blog, knowledge base, and previous forum responses. If you find this to be a helpful answer, please mark it as the solution using the checkbox icon below. If this doesn’t solve your issue, please follow up with what you’ve tried/why, and the community will continue to chime in as usual.
Could you please give a detailed description of the code you wrote , or paste a snippet of the code , including the imports , better if you could share the snippet in colab ipynb, so that we can have a look and help you with the solution.
Hi ! I believe you already asked that question on GitHub - AttributeError: module 'supervision' has no attribute 'Detection' · roboflow/supervision · Discussion #451 · GitHub. but let me answer it here as well. You have a typo. It is