Comments (19)
Error executing job with overrides: ['task=detect', 'mode=predict', 'model=yolov8s.pt', 'source=0']
I think it's because hydra parsed the 0 in source=0
to str.
from ultralytics.
@Laughing-q yeah its treating 0 as null and predicts on the default assets. But it doesn't throw any error for me
from ultralytics.
@udayzee05 your issue may be resolved now in PR #256 that I just merged. Please update your code and let us know if this resolves the issue for you, thank you!
from ultralytics.
@udayzee05 thanks for reporting. Can you please provide the command to reproduce?
from ultralytics.
yolo task=detect mode=predict model=yolov8n.pt source="https://ultralytics.com/images/bus.jpg" I tried with this command as well but same result
from ultralytics.
Thank you, I was trying to pass 0 for webcam, but I am able to run successfully for images stored in local directory, Thank for clarification.
from ultralytics.
@udayzee05 Does this work for you now?
from ultralytics.
Yes, but for webcam what will be argument ?
from ultralytics.
Awesome
from ultralytics.
source becomes ultralytics/assets after this line if you pass source=0
from ultralytics.
@Laughing-q yeah that's what I meant.. hydra is treating "0" as None..not a string..we'll need a different syntax for webcam
from ultralytics.
Yes, even I tried to pass it as string as well as integer but getting error
from ultralytics.
yeah, I can reproduce. that is strange.
from ultralytics.
I could reproduce this problem on Colab with the default source argument, as follows
The version of ultralytics pip package is 8.0.6
from ultralytics.
@zldrobit hey I tested with the same command by using this colab https://colab.research.google.com/github/ultralytics/ultralytics/blob/main/examples/tutorial.ipynb. But it works fine to me, probably there's something wrong with your installation, could check it again?
from ultralytics.
@Laughing-q I think I may find the origin of the problem. If I skip cloning the ultralytics
GitHub repo, the error still occurs
Otherwise, I could also get detection results.
Plz note that the missing images are under /usr/local/lib/python3.8/dist-package
, but the existing images are in /content/ultralytics
being the ROOT
path. I guess these images are not packaged in the PyPI wheel, so barely pip install
is not able to download them.
from ultralytics.
Hey @udayzee05 did you fix the ultralytics issue because i am facing the same issue and i am unable to fix it, if yes please tell me how can i fix it
from ultralytics.
My issue has been resolved after putting source= 'ultralytics/' ; providing Ultralytics root path.
!python predict.py model='best.pt' source='/content/gdrive/MyDrive/yolov8/ultralytics/' data='/content/gdrive/MyDrive/yolov8/ultralytics/xyz.mp4'
2023-11-03 05:49:40.932793: E tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:9342] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2023-11-03 05:49:40.932848: E tensorflow/compiler/xla/stream_executor/cuda/cuda_fft.cc:609] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2023-11-03 05:49:40.932883: E tensorflow/compiler/xla/stream_executor/cuda/cuda_blas.cc:1518] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2023-11-03 05:49:40.940297: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 AVX512F FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-11-03 05:49:42.094048: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
Ultralytics YOLOv8.0.3 π Python-3.10.12 torch-2.1.0+cu118 CUDA:0 (Tesla T4, 15102MiB)
Fusing layers...
Model summary: 218 layers, 25840339 parameters, 0 gradients, 78.7 GFLOPs
image 1/2 /content/gdrive/MyDrive/yolov8/ultralytics/figure1.png: 384x640 1 licence, 74.4ms
image 2/2 /content/gdrive/MyDrive/yolov8/ultralytics/figure3.png: 384x640 1 licence, 25.8ms
Speed: 0.5ms pre-process, 50.1ms inference, 2.4ms postprocess per image at shape (1, 3, 640, 640)
Results saved to /content/gdrive/MyDrive/yolov8/runs/detect/train6
from ultralytics.
@shaowngp great to hear that your issue has been resolved by providing the correct root path for Ultralytics as your source. It appears the initially configured root path couldn't find the necessary files. Now, the program can successfully locate them and everything runs smoothly. The TensorFlow errors that are being shown are warnings and should not impact the overall functionality of YOLOv8, those are related to the TensorFlow-TensorRT integration and not finding TensorRT, which is a high-performance deep learning inference optimizer and runtime library. Lastly, Ultralytics YOLOv8 seems to be working efficiently as indicated by the speed of the pre-process, inference, and postprocess per image.
from ultralytics.
Related Issues (20)
- YOLOv5 or YOLOv8 for color recognition of small targets HOT 4
- How to calculate TP, FN, FP, and TN? HOT 1
- YOLOv8 classification HOT 4
- Comparison of YOLOv8 model HOT 1
- MLflow and YOLOv8 HOT 2
- Error in W&B Callback HOT 2
- yolov8-obb angle HOT 2
- YOLOv8 oriented bounding box losses HOT 3
- can algorism only do localization not classification? HOT 1
- Start multiple models at the same time
- Tensorrt c++ inference HOT 1
- yolov8 detection on small objects HOT 2
- Model load results in 'indexerror : list out of range ' HOT 4
- How to run YOLOv8 .engine but only need to obtain the output of the model in Jetson Xavier NX? HOT 1
- Why is yolov5n better than yolov8n in my own dataset (e.g., P, R, MAP50, etc.)οΌeven in coco128 HOT 2
- About loading model weights HOT 3
- I'm also having the same problem, I use botsort to track the target to detect the target but can't, the confidence level is also very high, the threshold setting should be fine. How to solve it, I thought it was a confidence threshold, but I can't debug it HOT 1
- yolov8 keypoint detection results HOT 2
- can anyone guide to do quantization for custom trained yolov8 HOT 1
- Implement Resnet Backbone into YOLOv3 and YOLOv5 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ultralytics.