Giter VIP home page Giter VIP logo

ValueError: Dimension 0 in both shapes must be equal, but are 1 and 255. Shapes are [1,1,1024,75] and [255,1024,1,1]. for 'Assign_360' (op: 'Assign') with input shapes: [1,1,1024,75], [255,1024,1,1]. about tog HOT 7 CLOSED

git-disl avatar git-disl commented on May 26, 2024
ValueError: Dimension 0 in both shapes must be equal, but are 1 and 255. Shapes are [1,1,1024,75] and [255,1024,1,1]. for 'Assign_360' (op: 'Assign') with input shapes: [1,1,1024,75], [255,1024,1,1].

from tog.

Comments (7)

khchow-gt avatar khchow-gt commented on May 26, 2024

Did you use the pre-trained model provided in the repository?

from tog.

Alan7ai avatar Alan7ai commented on May 26, 2024

Did you use the pre-trained model provided in the repository?

Thank for your reply! I have use pre-trained model. it was run successfully.but i am failed in my model.By the way, the h5 model provided by /qqwweee/keras-yolov3 is the same error(he convert .weight to .h5)

from tog.

khchow-gt avatar khchow-gt commented on May 26, 2024

Changes need to be made if you are using another model, especially the model with a different neural architecture. Could you provide more details on the model you are using?

from tog.

Alan7ai avatar Alan7ai commented on May 26, 2024

Changes need to be made if you are using another model, especially the model with a different neural architecture. Could you provide more details on the model you are using?

Thank you, this is the link
https://www.dropbox.com/home?preview=trained_weights_final.h5

from tog.

khchow-gt avatar khchow-gt commented on May 26, 2024

You need to share a public link. The one you provided is private and only works for you.

from tog.

Alan7ai avatar Alan7ai commented on May 26, 2024

sry
https://www.dropbox.com/s/dglx6rrr5vu2wjx/trained_weights_final.h5?dl=0

from tog.

khchow-gt avatar khchow-gt commented on May 26, 2024

Hi, I can reproduce the error you mentioned:

InvalidArgumentError: Dimension 0 in both shapes must be equal, but are 1 and 18. Shapes are [1,1,1024,75] and [18,1024,1,1]. for 'Assign_360' (op: 'Assign') with input shapes: [1,1,1024,75], [18,1024,1,1].

When you train your own model, did you modify the neural architecture? If you did, make sure you update the models/yolov3.py file accordingly. Otherwise, the default architecture provided in this repository is incompatible with the model weights.

from tog.

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.