Comments (1)
@complete-dope hello! It looks like you need some help interpreting and post-processing the output from the YOLOv8-pose ONNX model in JavaScript.
The shape 1 x 56 x 8400
indicates a common format where:
- 1: Represents the batch size.
- 56: Is the number of channels. Each channel in this context likely represents a different component or attribute of the keypoints and their confidence values.
- 8400: Stands for the flattened dimensions of output data for the keypoints, with each keypoint possibly having its own X, Y coordinates and a confidence score.
To process these outputs in JavaScript, you’ll typically want to reshape or decode them into a more interpretable format (like separate X, Y coordinates and confidence for each keypoint). Here's an example snippet that might help guide you:
const output = modelOutput.data; // pseudo code, replace with actual ONNX model output retrieval
const keypoints = [];
const numKeypoints = (8400 / 3); // if each keypoint has x, y, and confidence
for(let i = 0; i < numKeypoints; i++) {
const x = output[i * 3];
const y = output[i * 3 + 1];
const confidence = output[i * 3 + 2];
keypoints.push({x, y, confidence});
}
// Now you can use the 'keypoints' array as needed
This code assumes that each set of 3 values in the flat 8400-length array corresponds to the x-coordinate, y-coordinate, and confidence level of a keypoint. Modify the above as necessary to match the specific structure of your output.
Happy coding! 😊 If you need further clarification, feel free to ask!
from ultralytics.
Related Issues (20)
- can anyone guide to do quantization for custom trained yolov8 HOT 2
- Implement Resnet Backbone into YOLOv3 and YOLOv5 HOT 3
- Is there any implementation of yolov8 in cpp using tensorflow lite? HOT 3
- Angle representation method of YOLOV8-obb HOT 1
- Ultralytics not working on Jetpack 6.0? HOT 1
- The YOLOv8 segmentation model with batching option doesn't run on the GPU ? HOT 1
- yolov8n's coco pre-training? HOT 2
- Can not extract predicted classes from the results as a variable. HOT 2
- Changing the Yolov8-OBB head to output Polygonal Bounding Box with Four Corners instead of Oriented Bounding Box HOT 2
- annotation type HOT 1
- How to improve the accuracy of yolov8-obb in detecting large targets HOT 2
- The parameters printed through model.info are different from those printed through the val command HOT 1
- YOLOv8 Training Your Own Dataset HOT 2
- Image prediction HOT 5
- Train the selected model structure for your dataset HOT 3
- Overfitting issues while using pre-trained weights HOT 8
- Incorrect type hint HOT 2
- Multi-class pose estimation with class weights HOT 3
- Problem of replacing Conv with LightConv in yolov8.yaml HOT 2
- How to train a model after carrying out hyperparameter tuning? HOT 7
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.