Comments (3)
Hello! It looks like you're encountering an issue with running the YOLOv8 segmentation model with batching on a GPU using ONNX Runtime. The error message suggests that some operations are being assigned to the CPU instead of the GPU, which might be affecting performance.
Here are a couple of suggestions to potentially resolve this issue:
-
Ensure GPU Support: Make sure that your ONNX Runtime installation supports GPU execution. You might need to install the GPU-specific package for ONNX Runtime if not already done.
-
Execution Providers: In your script, you're specifying
"webgpu"
and"cpu"
as execution providers. If you're aiming to run the model on an NVIDIA GPU, you should use"cuda"
instead of"webgpu"
. Modify your script as follows:let model = await ort.InferenceSession.create(modelName, { executionProviders: ["cuda","cpu"] });
-
Verbose Logging: As the warning suggests, enabling verbose logging might provide more insights into why certain nodes are not being assigned to the GPU. This can help in diagnosing the issue further.
-
Dynamic Batching: You've mentioned using
dynamic=True
during export, which is great for flexibility in input sizes but can sometimes complicate execution provider optimizations. Ensure that your model and the ONNX Runtime version are compatible with dynamic batching.
If these steps don't resolve the issue, consider providing more details or the verbose logs as suggested by the error message. This could help in pinpointing the exact problem. Hope this helps! 😊
from ultralytics.
👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help.
For additional resources and information, please see the links below:
- Docs: https://docs.ultralytics.com
- HUB: https://hub.ultralytics.com
- Community: https://community.ultralytics.com
Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!
Thank you for your contributions to YOLO 🚀 and Vision AI ⭐
from ultralytics.
webgpu to cuda ??
no it under web env.
i met same problem, yolo v8-pose pt model to onnx cannot running under onnx/webgpu
from ultralytics.
Related Issues (20)
- How to use bfloat for inference with a pytorch pt weight? HOT 4
- Ground truth masks that contain holes in training of segmentation tasks HOT 5
- The meaning of the two training maps HOT 12
- Is it possible to stratify metrics? HOT 3
- i need to modify the behavior of mlflow integration HOT 6
- Creating engine on NVIDIA AGX ORIN 64GB DevKit gets stuck HOT 4
- why callback function not executed in tune() HOT 6
- 如何在训练的时候取消LetterBox直接resize,我改了之后,可是没有效果 HOT 6
- Error in Multiple GPU Training AWS HOT 14
- How to parse the object detection results from deepsparse pipeline HOT 4
- How to improve the metrics for night vision object detection? HOT 3
- yolov8 default.yaml Hyperparameters HOT 2
- How to obtain the number of samples for each class in the training set HOT 2
- Train Yolov8m Incremental HOT 2
- Custom Data and RKNN HOT 4
- How to use yolov8 algorithm combined with botsort algorithm to obtain video tracking results and obtain detailed tracking result files for subsequent tracking algorithm evaluation? HOT 5
- YOLOv8-OBB - All the losses are 0 or nan during training and ) precision, recall metrics. HOT 5
- Training process killed sometimes with ultralytics v8.2.91 HOT 11
- Region counter HOT 3
- Explanation of Parameter pretrained=True HOT 3
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.