Giter Club home page Giter Club logo

Comments (7)

anibali avatar anibali commented on July 17, 2024

You haven't provided much detail here. What is the complete shape of the tensor that you are passing into the DSNT function when using batch size 16? How many keypoints are you trying to predict?

from dsntnn.

Lagom92 avatar Lagom92 commented on July 17, 2024

I want to predict 16 points.
I edit FCN's input channel 3 to 1.

in my code.
...

print(img.shape)
coords, heatmaps = model(img)

...

torch.Size([16, 1, 224, 224])

from dsntnn.

anibali avatar anibali commented on July 17, 2024

What is the shape of the heatmaps (FCN output)?

from dsntnn.

Lagom92 avatar Lagom92 commented on July 17, 2024

print(heatmaps.shape)

torch.Size([16, 16, 224, 224])

from dsntnn.

anibali avatar anibali commented on July 17, 2024

You probably have a problem somewhere in your code. I recommend trying a batch size that is quite different from your number of keypoints (e.g. 5) since you may be hiding an incorrect permutation of axes somewhere. Then take a careful look at any view/reshape operations that you might be using.

from dsntnn.

Lagom92 avatar Lagom92 commented on July 17, 2024

Ok i set batch size = 8

now

coords, heatmaps = model(img)

print(img.shape)
print(coords.shape)
print(heatmaps.shape)

torch.Size([8, 1, 224, 224])
torch.Size([8, 16, 2])
torch.Size([8, 16, 224, 224])

but i don't know what this means.

 Then take a careful look at any view/reshape operations that you might be using.

May you explain more thoroughly to me?

Which part should I watch in my code?
(e.g. dataset? loss function?)

from dsntnn.

anibali avatar anibali commented on July 17, 2024

I'm sorry, but unless you can produce a specific example of an issue with DSNTNN I'm going to have to close this issue. There are just too many possible reasons why your particular project might be failing.

from dsntnn.

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.