Comments (3)
@haimat hello! The output you're seeing, where it appears that height and width are switched (listed as 1216x1920 instead of 1920x1216), is due to the format typically used in deep learning where dimensions are often described as height x width rather than the conventional width x height. This format is standard in many frameworks and tools that deal with image processing including PyTorch and Ultralytics YOLO.
Regarding your question about using the rect
training parameter: using rect
can be beneficial as it trains the model using rectangular images rather than square. This can lead to better memory utilization and potentially faster training times, especially if your input images are naturally rectangular (like yours). It adjusts the network to more effectively handle the aspect ratios of your input images during training, which can improve detection accuracy on similarly shaped test images.
Hope this clarifies your concerns! 😊
from ultralytics.
@glenn-jocher Thanks your response.
So in my case, if I would use the rect
parameter, would that also mean
I should provide both width and height for the imgsz
parameter?
from ultralytics.
Hello @haimat! Yes, using the rect
parameter allows the model to train on non-square images, which can be beneficial for handling different aspect ratios more effectively. When using rect
, it's a good idea to specify both width and height in the imgsz
parameter to match your typical image dimensions, like so: imgsz=1920,1200
. This setup helps the model to better adapt to the dimensions of your input images during training. 😊
from ultralytics.
Related Issues (20)
- Can YOLOv8 Simultaneously Support Rotated Object Detection (OBB) and Keypoint Detection? HOT 3
- yolov8 when train,raise error OSError: [WinError 87] parameters error HOT 1
- Will you support YOLOv10 in the future? HOT 5
- YOLOv8 OBB HOT 1
- YOLOv8 with KAN HOT 2
- A question about validation set drawing image results HOT 2
- Determine the Class of a Specific Pixel-Coordinate from YOLOv8 Segmentation Results HOT 2
- Custom train for table structure HOT 8
- Please change this misleading tip HOT 2
- Tracking with 1 model and N multi-stream HOT 9
- edgetpu.ftlite is numpy.int8 but Coral only support uint8 input type HOT 1
- Getting error while Converting to tensorRT HOT 5
- Unable to Export RTDETR Large Model(best.pt) to TFLite or NCNN for Raspberry Pi 4 Deployment HOT 5
- Deepsparse provides empty results with custom yolov8 model HOT 5
- No inference with best.pt HOT 1
- YOLO HOT 6
- Training slow with large training imgsz HOT 4
- classification .pt to onnx predict error HOT 5
- onnx detect HOT 2
- ModuleNotFoundError: No module named 'ultralytics.nn.modules.conv'; 'ultralytics.nn.modules' is not a package 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.