Giter VIP home page Giter VIP logo

Comments (4)

github-actions avatar github-actions commented on May 26, 2024

๐Ÿ‘‹ Hello @Shassk, thank you for your interest in YOLOv3 ๐Ÿš€! Please visit our โญ๏ธ Tutorials to get started, where you can find quickstart guides for simple tasks like Custom Data Training all the way to advanced concepts like Hyperparameter Evolution.

If this is a ๐Ÿ› Bug Report, please provide a minimum reproducible example to help us debug it.

If this is a custom training โ“ Question, please provide as much information as possible, including dataset image examples and training logs, and verify you are following our Tips for Best Training Results.

Requirements

Python>=3.7.0 with all requirements.txt installed including PyTorch>=1.7. To get started:

git clone https://github.com/ultralytics/yolov3  # clone
cd yolov3
pip install -r requirements.txt  # install

Environments

YOLOv3 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):

Status

YOLOv3 CI

If this badge is green, all YOLOv3 GitHub Actions Continuous Integration (CI) tests are currently passing. CI tests verify correct operation of YOLOv3 training, validation, inference, export and benchmarks on macOS, Windows, and Ubuntu every 24 hours and on every commit.

Introducing YOLOv8 ๐Ÿš€

We're excited to announce the launch of our latest state-of-the-art (SOTA) object detection model for 2023 - YOLOv8 ๐Ÿš€!

Designed to be fast, accurate, and easy to use, YOLOv8 is an ideal choice for a wide range of object detection, image segmentation and image classification tasks. With YOLOv8, you'll be able to quickly and accurately detect objects in real-time, streamline your workflows, and achieve new levels of accuracy in your projects.

Check out our YOLOv8 Docs for details and get started with:

pip install ultralytics

from yolov3.

glenn-jocher avatar glenn-jocher commented on May 26, 2024

@Shassk hello! Thanks for reaching out with your observations. The size discrepancy you're seeing in the YOLOv3 ONNX model compared to v5 and v8 is indeed unusual. Here are a few things to consider:

  1. Model Complexity: YOLOv3 has a different architecture compared to v5 and v8, which might inherently lead to different model sizes. However, the difference should not be as drastic as you've described.

  2. Export Settings: When exporting to ONNX, ensure that you're using the same settings, such as --simplify, which can reduce the model size by eliminating redundant operations.

  3. Training Configuration: Double-check your training configuration. Differences in layer configurations or model depth can lead to larger models.

  4. Pruning: If model size is a critical factor, consider applying model pruning techniques before exporting to ONNX. This can help reduce the size and complexity of the model.

  5. Optimization: Post-training optimization techniques can also be applied to the ONNX model to reduce its size.

If you've ensured all the above and the issue persists, it might be worth looking into the specifics of how the ONNX model is being saved. Sometimes, additional metadata or training information can bloat the file size.

For further assistance, please refer to our documentation or consider opening an issue with detailed information about your training configuration and export process. We're here to help! ๐Ÿ˜Š

from yolov3.

Shassk avatar Shassk commented on May 26, 2024

It's not so much about export size as it is about primary trained model size in .pt format โ€” 200 MB is not what I expected. But sure, I will create a new issue with all the data.

from yolov3.

glenn-jocher avatar glenn-jocher commented on May 26, 2024

@Shassk apologies for the confusion, and thank you for your patience. A 200 MB .pt file for YOLOv3 is indeed larger than typical. Here are a few quick checks you can do:

  1. Model Architecture: Verify that the model architecture in the .yaml file matches the expected YOLOv3 architecture without unintended modifications.

  2. Weights: Ensure that the model isn't accidentally saving additional weights or data that it shouldn't be.

  3. Optimizer State: The .pt file includes both the model weights and the optimizer state. A large optimizer state could inflate the file size.

  4. Precision: Check if the model is being saved with higher precision (e.g., float64) than necessary (float32 is standard).

If these checks don't reveal any issues, please do open a new issue with the details of your training setup, and we'll take a closer look to help resolve this. Your feedback is invaluable in improving the tools we provide to the community. ๐ŸŒŸ

from yolov3.

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.