GithubHelp home page GithubHelp logo

Comments (3)

glenn-jocher avatar glenn-jocher commented on June 18, 2024

@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.

haimat avatar haimat commented on June 18, 2024

@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.

glenn-jocher avatar glenn-jocher commented on June 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.