Giter Club home page Giter Club logo

Comments (2)

KoniHD avatar KoniHD commented on July 22, 2024 1

Doing the work of @Youho99 here :)
Your issue looks the same as #315 or #302.
Probably you used a Yolov9 model with train.py. However, you need to use train_dual.py with a yolov9 model as train.py is only for Gelan models. Meaning you can either use a Gelan model with train.py as @Mecanight mentioned or use train_dual.py with the yolov9 model. (See #1)

from yolov9.

Mecanight avatar Mecanight commented on July 22, 2024

I had a similar problem
But in my case it was:

Traceback (most recent call last):
  File "yolov9/segment/train.py", line 646, in <module>
    main(opt)
  File "yolov9/segment/train.py", line 542, in main
    train(opt.hyp, opt, device, callbacks)
  File "yolov9/segment/train.py", line 297, in train
    loss, loss_items = compute_loss(pred, targets.to(device), masks=masks.to(device).float())
  File "yolov9/utils/segment/loss_tal.py", line 173, in __call__
    batch_size, _, mask_h, mask_w = proto.shape
AttributeError: 'list' object has no attribute 'shape'

To fix this, I started using the models/segment/gelan-c-seg.yaml file instead of models/segment/yolov9-c-dseg.yaml

I don't think this is the solution for your case
But, I hope this helps

from yolov9.

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.