Giter Site home page Giter Site logo

Comments (7)

ilaij0810 avatar ilaij0810 commented on May 18, 2024 2

in models.py, from line 64, should be modified:
nn.Conv2d(ins,int(outs//2),1),
nn.BatchNorm2d(int(outs//2)),
nn.ReLU(inplace=True),
nn.Conv2d(int(outs//2),int(outs//2),3,1,1),
nn.BatchNorm2d(int(outs//2)),
nn.ReLU(inplace=True),
nn.Conv2d(int(outs//2),outs,1)

from hourglass-facekeypoints-detection.

raymon-tian avatar raymon-tian commented on May 18, 2024

@ailias No, I didn't meet the problem. Did you set net.eval() before evaluation?

from hourglass-facekeypoints-detection.

thruster1996 avatar thruster1996 commented on May 18, 2024

@ailias ,I meet the same problem just like you. After finishing training, if I set the net to eval, then output of the net seems to be much more worse than the train mode:(

from hourglass-facekeypoints-detection.

TingmanYan avatar TingmanYan commented on May 18, 2024

I have met the same problem when training the hg model on MPII dataset.
I'm training on a Titan Xp GPU, Pytorch 0.4.1.
Changing hg.py, line 22-23

self.res2 = Residual(128, 128)
self.res3 = Residual(128, self._nFeats)

to

self.res2 = Residual(128, self._nFeats)
self.res3 = Residual(self._nFeats, self._nFeats)

solved my problem.
Hope it will help you too.

from hourglass-facekeypoints-detection.

4Statistics avatar 4Statistics commented on May 18, 2024

When I trained hg model using 300w datasets, and the training result showed is good, but is worse when I use eval mode. Maybe it's because of the bn layer. Have you met this problem? What should I do for it?

Can you tell me how to run the code ?
python train.py

Traceback (most recent call last):
File "train.py", line 123, in
net = KFSGNet()

TypeError: new() received an invalid combination of arguments - got (float, int, int, int), but expected one of:

  • (torch.device device)
  • (torch.Storage storage)
  • (Tensor other)
  • (tuple of ints size, torch.device device)
  • (object data, torch.device device)

Thank you very much .
Best wishes.

from hourglass-facekeypoints-detection.

silvercherry avatar silvercherry commented on May 18, 2024

请问能将训练集分享出来吗

from hourglass-facekeypoints-detection.

silvercherry avatar silvercherry commented on May 18, 2024

When I trained hg model using 300w datasets, and the training result showed is good, but is worse when I use eval mode. Maybe it's because of the bn layer. Have you met this problem? What should I do for it?

Can you tell me how to run the code ?

python train.py
Traceback (most recent call last):
File "train.py", line 123, in
net = KFSGNet()

TypeError: new() received an invalid combination of arguments - got (float, int, int, int), but expected one of:

  • (torch.device device)
  • (torch.Storage storage)
  • (Tensor other)
  • (tuple of ints size, torch.device device)
  • (object data, torch.device device)

Thank you very much .
Best wishes.

have you solve this problem?

from hourglass-facekeypoints-detection.

Related Issues (10)

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.