Coder Social home page Coder Social logo

Comments (1)

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

@useruser2023 hello! Thanks for reaching out and for your efforts in searching for a solution before posting your issue.

The error you're encountering, AttributeError: 'DetectionModel' object has no attribute 'hyp', suggests that the model object you're trying to use does not have the hyperparameters (hyp) attribute that the ComputeLoss function expects.

The ComputeLoss function requires the model's hyperparameters to calculate the loss. When you load the model using YOLO("best.pt"), it does not automatically load the hyperparameters used during training.

To resolve this, you should ensure that the hyperparameters are correctly loaded and associated with your model object. Typically, these hyperparameters are stored in a .yaml file or within the training script. Make sure to load these hyperparameters and pass them to the ComputeLoss function or the model object as required.

For further guidance on how to properly set up the loss computation for validation, please refer to the Ultralytics Docs, which provide comprehensive information on using the YOLOv3 repository.

If you continue to face issues, please provide more details about how you're loading the model and where the hyperparameters are defined, and we'll be happy to help you further. Remember, the community and the Ultralytics team are here to support you! ๐Ÿ˜Š

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.